-
Notifications
You must be signed in to change notification settings - Fork 76
Server Capabilities and Functions
Silas Marvin edited this page May 27, 2024
·
5 revisions
LSP-AI provides support for the following requests:
textDocument/completion
textDocument/didOpen
textDocument/didChange
textDocument/rename
LSP-AI also provides the custom capability: textDocument/generation
which takes the following JSON parameters:
{
textDocument: {
uri: "file://home/silas/test.txt/"
},
position: {
line: 0,
character: 10
},
model: "The key of the model to use as specified in `models` in the server initialization parameters",
parameters: "A JSON object of parameters. See https://github.com/SilasMarvin/lsp-ai/wiki/Configuration#completion"
}
For an example using this. See our vscode plugin: https://github.com/SilasMarvin/lsp-ai/blob/main/editors/vscode/src/index.ts