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

Function references

src/common/lsp/protocol/protocol.cpp:796–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794}
795
796QJsonObject references(const QString &filePath, const Position &pos)
797{
798 QJsonObject textDocument {
799 { K_URI, QUrl::fromLocalFile(filePath).toString() }
800 };
801
802 QJsonObject position {
803 { K_CHARACTER, pos.character },
804 { K_LINE, pos.line }
805 };
806
807 QJsonObject context {
808 { K_INCLUDEDECLARATION, true }
809 };
810
811 QJsonObject params {
812 { K_CONTEXT, context },
813 { K_TEXTDOCUMENT, textDocument },
814 { K_POSITION, position }
815 };
816
817 return params;
818}
819
820QJsonObject documentHighlight(const QString &filePath, const Position &pos)
821{

Callers 1

referencesRequestMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected