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

Function documentSemanticTokensRange

src/common/lsp/protocol/protocol.cpp:853–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853QJsonObject documentSemanticTokensRange(const QString &filePath, Range range)
854{
855 auto params = documentSemanticTokensFull(filePath);
856
857 QJsonObject start {
858 { K_LINE, range.start.line },
859 { K_CHARACTER, range.start.character }
860 };
861
862 QJsonObject end {
863 { K_LINE, range.end.line },
864 { K_CHARACTER, range.end.character }
865 };
866
867 QJsonObject rangeObj {
868 { K_START, start },
869 { K_END, end }
870 };
871
872 params[K_RANGE] = rangeObj;
873 return params;
874}
875
876QJsonObject documentSemanticTokensDelta(const QString &filePath)
877{

Callers 1

Calls 1

Tested by

no test coverage detected