LSP Features

tcl-ls uses JSON-RPC over stdio. Supported methods are listed below.

Lifecycle And Synchronization

  • initialize and initialized

  • shutdown and exit

  • textDocument/didOpen

  • textDocument/didChange (full-document synchronization)

  • textDocument/didClose

Diagnostics And Semantic Tokens

  • textDocument/publishDiagnostics on open, change, and close

  • textDocument/semanticTokens/full

  • textDocument/semanticTokens/full/delta

Semantic tokens distinguish annotation tags, type names, parameter names, record fields, literal values, and descriptions in Comment Annotations.

Limits

Formatting, code lens, and inlay hints are not implemented. Renaming a body parameter is refused when its source declaration also defines parameters in other procedures. Use definition to find the shared argument list and edit it directly if all those procedures should change.

Some features do not yet account for the negotiated position encoding, so positions after non-ASCII characters can be inaccurate. Code-action request ranges and text edits use the negotiated encoding. See Language Server for workspace loading behavior and Diagnostics for static analysis limits.