lsp_close_document
Sends a didClose notification to the language server and removes the document from tracking to free resources.
Instructions
Close a document in the LSP server (textDocument/didClose) and remove it from tracking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>",
"language": "<language>"
},
"name": "lsp_close_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| language | Yes | Language server to use. |