deepseekcode integrates with Language Server Protocol (LSP) servers to provide IDE-like code intelligence from the terminal.
| Language | Server | Detection File |
|---|---|---|
| Go | gopls | go.mod |
| Rust | rust-analyzer | Cargo.toml |
| TypeScript/JavaScript | typescript-language-server | tsconfig.json |
| Python | pylsp | pyproject.toml or requirements.txt |
lsp tool is registered and can be called by the model or via slash commands.lsp ToolParameters:
action (required): One of hover, definition, references, diagnosticsfile (required): File path to queryline (optional): 1-indexed line number (for hover, definition, references)character (optional): 1-indexed character offset (for hover, definition, references)hover — Show type information and documentation at a position. definition — Find where the symbol at a position is defined. references — Find all references to the symbol at a position. diagnostics — Show compiler/linter errors and warnings for a file.
go install golang.org/x/tools/gopls@latestrustup component add rust-analyzernpm install -g typescript-language-server typescriptpip install python-lsp-serverRun dsc doctor to see which LSP servers are detected for the current project:
deepseekcode doctor
──────────────────────────────────────────────────
✓ lsp available: gopls
If no language servers are detected, the check shows:
✓ lsp no language servers detected for this project