MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / documentSemanticTokensFull

Function documentSemanticTokensFull

src/common/lsp/protocol/protocol.cpp:840–851  ·  view source on GitHub ↗

more see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens

Source from the content-addressed store, hash-verified

838
839//more see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens
840QJsonObject documentSemanticTokensFull(const QString &filePath)
841{
842 QJsonObject textDocument {
843 { K_URI, QUrl::fromLocalFile(filePath).toString() }
844 };
845
846 QJsonObject params {
847 { K_TEXTDOCUMENT, textDocument }
848 };
849
850 return params;
851}
852
853QJsonObject documentSemanticTokensRange(const QString &filePath, Range range)
854{

Callers 2

docSemanticTokensFullMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected