start_lsp
Initialize the language server for a project directory to enable code analysis features like finding references, getting type information, and checking diagnostics.
Instructions
Initialize or reinitialize the LSP server with a specific project root directory. Call this before using get_references, get_info_on_location, or get_diagnostics when working in a project different from the one the server was started with. root_dir should be the workspace root (directory containing go.mod, package.json, Cargo.toml, etc.). Optional language_id (e.g. "go", "typescript", "rust") selects a specific configured server in multi-server mode — use this when working in a mixed-language repo to ensure the correct server handles the workspace. If unsure which server is active, call get_server_capabilities first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_dir | Yes | ||
| language_id | No |