LSP
/lsp/completionsGet code completion suggestions from the LSP server
Request Body
application/json
Completion request
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/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" } ]}/lsp/did-closeNotify the LSP server that a document has been closed
Request Body
application/json
Document request
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/lsp/did-close" \ -H "Content-Type: application/json" \ -d '{ "languageId": "string", "pathToProject": "string", "uri": "string" }'/lsp/did-openNotify the LSP server that a document has been opened
Request Body
application/json
Document request
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/lsp/did-open" \ -H "Content-Type: application/json" \ -d '{ "languageId": "string", "pathToProject": "string", "uri": "string" }'/lsp/document-symbolsGet symbols (functions, classes, etc.) from a document
Query Parameters
Language ID (e.g., python, typescript)
Path to project
Document URI
Response Body
application/json
application/json
curl -X GET "https://example.com/lsp/document-symbols?languageId=string&pathToProject=string&uri=string"[ { "kind": 0, "location": { "range": { "end": { "character": 0, "line": 0 }, "start": { "character": 0, "line": 0 } }, "uri": "string" }, "name": "string" }]/lsp/startStart a Language Server Protocol server for the specified language
Request Body
application/json
LSP server request
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/lsp/start" \ -H "Content-Type: application/json" \ -d '{ "languageId": "string", "pathToProject": "string" }'/lsp/stopStop a Language Server Protocol server
Request Body
application/json
LSP server request
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/lsp/stop" \ -H "Content-Type: application/json" \ -d '{ "languageId": "string", "pathToProject": "string" }'/lsp/workspacesymbolsSearch for symbols across the entire workspace
Query Parameters
Search query
Language ID (e.g., python, typescript)
Path to project
Response Body
application/json
application/json
curl -X GET "https://example.com/lsp/workspacesymbols?query=string&languageId=string&pathToProject=string"[ { "kind": 0, "location": { "range": { "end": { "character": 0, "line": 0 }, "start": { "character": 0, "line": 0 } }, "uri": "string" }, "name": "string" }]