Implement InlayHint (#19)

Co-authored-by: ykiko <ykikoykikoykiko@gmail.com>
This commit is contained in:
Shiyu
2025-01-13 23:28:33 +08:00
committed by GitHub
parent 13a5f6a845
commit ddb4e0ddaa
5 changed files with 1332 additions and 3 deletions

View File

@@ -47,6 +47,24 @@ struct TextDocumentPositionParams {
Position position;
};
struct MarkupKind {
std::string_view m_value;
constexpr MarkupKind(std::string_view value) : m_value(value) {}
constexpr static std::string_view PlainText = "plaintext";
constexpr static std::string_view Markdown = "markdown";
};
struct MarkupContent {
/// The type of the Markup.
MarkupKind kind;
/// The content itself.
string value;
};
struct DidOpenTextDocumentParams {
/// The document that was opened.
TextDocumentItem textDocument;