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

Function documentHighlight

src/common/lsp/protocol/protocol.cpp:820–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820QJsonObject documentHighlight(const QString &filePath, const Position &pos)
821{
822 QJsonObject textDocument {
823 { K_URI, QUrl::fromLocalFile(filePath).toString() }
824 };
825
826 QJsonObject position {
827 { K_CHARACTER, pos.character },
828 { K_LINE, pos.line }
829 };
830
831 QJsonObject params {
832 { K_TEXTDOCUMENT, textDocument },
833 { K_POSITION, position }
834 };
835
836 return params;
837}
838
839//more see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens
840QJsonObject documentSemanticTokensFull(const QString &filePath)

Callers 1

docHighlightRequestMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected