LSP
Query textDocument/completion and normalize the reply to the daemon's stable CompletionList wire shape.
application/json- body
Completion request body forwarded to textDocument/completion.
context?null|languageId*stringThe LSP language key (python, typescript).
pathToProject*stringAbsolute project root path used as the server's workspace root.
position*Cursor position for which completions are requested.
uri*stringDocument URI, typically a file:// URI.
Normalized completion list.
application/json- response
Normalized completion response shape.
isIncomplete*booleanWhether the server considers the list incomplete and expects re-querying.
items*array<>Completion items, with non-contract keys pruned.
curl -X POST 'http://sandbox:2280/lsp/completions' \ -H 'Content-Type: application/json' \ -d '{ "languageId": "string", "pathToProject": "string", "position": { "character": 0, "line": 0 }, "uri": "string"}'{ "isIncomplete": true, "items": [ { "detail": "string", "documentation": null, "filterText": "string", "insertText": "string", "kind": 0, "label": "string", "sortText": "string" } ]}Send textDocument/didClose to the running language server.
application/json- body
Identifies one document within a language-server workspace.
languageId*stringThe LSP language key (python, typescript).
pathToProject*stringAbsolute project root path used as the server's workspace root.
uri*stringDocument URI, typically a file:// URI.
Close notification sent.
curl -X POST 'http://sandbox:2280/lsp/did-close' \ -H 'Content-Type: application/json' \ -d '{ "languageId": "string", "pathToProject": "string", "uri": "string"}'Read the document from disk and send textDocument/didOpen to the running language server.
application/json- body
Identifies one document within a language-server workspace.
languageId*stringThe LSP language key (python, typescript).
pathToProject*stringAbsolute project root path used as the server's workspace root.
uri*stringDocument URI, typically a file:// URI.
Open notification sent.
curl -X POST 'http://sandbox:2280/lsp/did-open' \ -H 'Content-Type: application/json' \ -d '{ "languageId": "string", "pathToProject": "string", "uri": "string"}'Query textDocument/documentSymbol for one document and normalize the result to flat SymbolInfo rows.
query?stringWorkspace-symbol search string; required on /lsp/workspacesymbols, omitted on /lsp/document-symbols.
languageId?stringThe LSP language key (python, typescript); required by both symbol routes.
pathToProject?stringAbsolute project root path used as the server's workspace root; required by both symbol routes.
uri?stringDocument URI for /lsp/document-symbols; omitted on /lsp/workspacesymbols.
Normalized document symbols.
application/json- response
[index: integer]?One document or workspace symbol.
curl -X GET 'http://sandbox:2280/lsp/document-symbols'[ { "kind": 0, "location": { "range": { "end": { "character": 0, "line": 0 }, "start": { "character": 0, "line": 0 } }, "uri": "string" }, "name": "string" }]Start or reuse the language server for one (languageId, pathToProject) workspace.
application/json- body
Identifies a language-server instance for one language and one project root.
languageId*stringThe LSP language key (python, typescript).
pathToProject*stringAbsolute project root path used as the server's workspace root.
Server started or was already running.
curl -X POST 'http://sandbox:2280/lsp/start' \ -H 'Content-Type: application/json' \ -d '{ "languageId": "string", "pathToProject": "string"}'Stop the language server for one (languageId, pathToProject) workspace.
application/json- body
Identifies a language-server instance for one language and one project root.
languageId*stringThe LSP language key (python, typescript).
pathToProject*stringAbsolute project root path used as the server's workspace root.
Server stopped.
curl -X POST 'http://sandbox:2280/lsp/stop' \ -H 'Content-Type: application/json' \ -d '{ "languageId": "string", "pathToProject": "string"}'Query workspace/symbol for one workspace and normalize the result to flat SymbolInfo rows.
query?stringWorkspace-symbol search string; required on /lsp/workspacesymbols, omitted on /lsp/document-symbols.
languageId?stringThe LSP language key (python, typescript); required by both symbol routes.
pathToProject?stringAbsolute project root path used as the server's workspace root; required by both symbol routes.
uri?stringDocument URI for /lsp/document-symbols; omitted on /lsp/workspacesymbols.
Normalized workspace symbols.
application/json- response
[index: integer]?One document or workspace symbol.
curl -X GET 'http://sandbox:2280/lsp/workspacesymbols'[ { "kind": 0, "location": { "range": { "end": { "character": 0, "line": 0 }, "start": { "character": 0, "line": 0 } }, "uri": "string" }, "name": "string" }]