LSP servers
LSP
.lsp.json
Vendor docs
config
| name | type | required | meaning | concept | |
|---|---|---|---|---|---|
| args | string |
Command-line arguments for the LSP server
|
docs ↗ | ||
| command | string | yes |
The LSP binary to execute (must be in PATH)
|
docs ↗ | |
| diagnostics | string |
Whether to push diagnostics into Claude's context after edits (default `true`). Set to `false` to keep code navigation but suppress automatic diagnostic injection.
|
docs ↗ | ||
| env | string |
Environment variables to set when starting the server
|
docs ↗ | ||
| extensionToLanguage | string | yes |
Maps file extensions to language identifiers
|
docs ↗ | |
| initializationOptions | string |
Options passed to the server during initialization
|
docs ↗ | ||
| maxRestarts | string |
Maximum number of restart attempts before giving up
|
docs ↗ | ||
| restartOnCrash | string |
Whether to restart the server after it crashes. Defaults to `true`. Set to `false` to leave a crashed server stopped instead of restarting it
|
docs ↗ | ||
| settings | string |
Settings passed via `workspace/didChangeConfiguration`
|
docs ↗ | ||
| shutdownTimeout | string |
Max time to wait for graceful shutdown (milliseconds). When the timeout elapses, Claude Code terminates the server process. When unset, no timeout applies
|
docs ↗ | ||
| startupTimeout | string |
Max time to wait for server startup (milliseconds)
|
docs ↗ | ||
| transport | string |
Communication transport: `stdio` (default) or `socket`. Claude Code accepts `socket` but runs every server over stdio, so the stdout protocol rules apply to all servers
|
docs ↗ | ||
| workspaceFolder | string |
Workspace folder path for the server
|
docs ↗ |