MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getURIAndPositionJSON

Function getURIAndPositionJSON

src/tools/ecode/plugins/lsp/lspclientplugin.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static json getURIAndPositionJSON( UICodeEditor* editor ) {
35 json data;
36 auto doc = editor->getDocumentRef();
37 auto sel = doc->getSelection();
38 data["uri"] = doc->getURI().toString();
39 data["position"] = { { "line", sel.start().line() }, { "character", sel.start().column() } };
40 return data;
41}
42
43class LSPSymbolInfoTreeModel : public Model {
44 public:

Callers 1

Calls 6

getDocumentRefMethod · 0.80
getURIMethod · 0.80
columnMethod · 0.80
getSelectionMethod · 0.45
toStringMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected