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

Function definition

src/common/lsp/protocol/protocol.cpp:758–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758QJsonObject definition(const QString &filePath, const Position &pos)
759{
760 QJsonObject textDocument {
761 { K_URI, QUrl::fromLocalFile(filePath).toString() }
762 };
763
764 QJsonObject position {
765 { K_CHARACTER, pos.character },
766 { K_LINE, pos.line }
767 };
768
769 QJsonObject params {
770 { K_TEXTDOCUMENT, textDocument },
771 { K_POSITION, position }
772 };
773
774 return params;
775}
776
777QJsonObject signatureHelp(const QString &filePath, const Position &pos)
778{

Callers 1

definitionRequestMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected