diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/semanticHighlighting.h')
-rw-r--r-- | graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/semanticHighlighting.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/semanticHighlighting.h b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/semanticHighlighting.h index 32bc86f5fb..bfb8619559 100644 --- a/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/semanticHighlighting.h +++ b/graphics/asymptote/LspCpp/include/LibLsp/lsp/textDocument/semanticHighlighting.h @@ -10,19 +10,19 @@ */ struct SemanticHighlightingInformation { - /** - * The zero-based line position in the text document. - */ - int line = 0; + /** + * The zero-based line position in the text document. + */ + int line = 0; - /** - * A base64 encoded string representing every single highlighted ranges in the line with its start position, length - * and the "lookup table" index of of the semantic highlighting <a href="https://manual.macromates.com/en/language_grammars"> - * TextMate scopes</a>. If the {@code tokens} is empty or not defined, then no highlighted positions are available for the line. - */ - std::string tokens; + /** + * A base64 encoded string representing every single highlighted ranges in the line with its start position, length + * and the "lookup table" index of of the semantic highlighting <a href="https://manual.macromates.com/en/language_grammars"> + * TextMate scopes</a>. If the {@code tokens} is empty or not defined, then no highlighted positions are available for the line. + */ + std::string tokens; - MAKE_SWAP_METHOD(SemanticHighlightingInformation, line, tokens) + MAKE_SWAP_METHOD(SemanticHighlightingInformation, line, tokens) }; MAKE_REFLECT_STRUCT(SemanticHighlightingInformation, line, tokens); @@ -32,35 +32,35 @@ MAKE_REFLECT_STRUCT(SemanticHighlightingInformation, line, tokens); */ struct SemanticHighlightingParams { - /** - * The text document that has to be decorated with the semantic highlighting information. - */ - - lsVersionedTextDocumentIdentifier textDocument; + /** + * The text document that has to be decorated with the semantic highlighting information. + */ - /** - * An array of semantic highlighting information. - */ + lsVersionedTextDocumentIdentifier textDocument; + + /** + * An array of semantic highlighting information. + */ + + std::vector<SemanticHighlightingInformation> lines; + + MAKE_SWAP_METHOD(SemanticHighlightingParams, textDocument, lines) - std::vector<SemanticHighlightingInformation> lines; - - MAKE_SWAP_METHOD(SemanticHighlightingParams, textDocument, lines) - }; MAKE_REFLECT_STRUCT(SemanticHighlightingParams, textDocument, lines); /** - * The {@code textDocument/semanticHighlighting} notification is pushed from the server to the client - * to inform the client about additional semantic highlighting information that has to be applied - * on the text document. It is the server's responsibility to decide which lines are included in - * the highlighting information. In other words, the server is capable of sending only a delta - * information. For instance, after opening the text document ({@code DidOpenTextDocumentNotification}) - * the server sends the semantic highlighting information for the entire document, but if the server - * receives a {@code DidChangeTextDocumentNotification}, it pushes the information only about - * the affected lines in the document. - * - * <p> - * <b>Note:</b> the <a href= - * "https://github.com/Microsoft/vscode-languageserver-node/pull/367">{@code textDocument/semanticHighlighting} - * language feature</a> is not yet part of the official LSP specification. - */ -DEFINE_NOTIFICATION_TYPE(Notify_semanticHighlighting, SemanticHighlightingParams, "textDocument/semanticHighlighting");
\ No newline at end of file + * The {@code textDocument/semanticHighlighting} notification is pushed from the server to the client + * to inform the client about additional semantic highlighting information that has to be applied + * on the text document. It is the server's responsibility to decide which lines are included in + * the highlighting information. In other words, the server is capable of sending only a delta + * information. For instance, after opening the text document ({@code DidOpenTextDocumentNotification}) + * the server sends the semantic highlighting information for the entire document, but if the server + * receives a {@code DidChangeTextDocumentNotification}, it pushes the information only about + * the affected lines in the document. + * + * <p> + * <b>Note:</b> the <a href= + * "https://github.com/Microsoft/vscode-languageserver-node/pull/367">{@code textDocument/semanticHighlighting} + * language feature</a> is not yet part of the official LSP specification. + */ +DEFINE_NOTIFICATION_TYPE(Notify_semanticHighlighting, SemanticHighlightingParams, "textDocument/semanticHighlighting"); |