READMESource: main@ee61bfb9
dsh-easy-lsp
Language-server (LSP) manager for DeepSeek Harness: a self-contained LSP engine, a one-click installer, and proactive diagnostic injection, all managed from a visual LSP Servers page.
English | 中文

Features
- Code intelligence:
lsptool — goToDefinition / findReferences / goToImplementation / hover. - On-demand diagnostics:
lsp_diagnosticstool checks a file's compile/type errors (requires a server that pushes diagnostics, e.g. pyright). - Symbols:
lsp_symbolstool — document symbol listing (not available in the official LSP tooling). - Proactive diagnostics: after the agent writes/edits code, unresolved errors are injected into the next system prompt automatically; half-finished-code noise is filtered by a stability threshold.
- Visual management: Settings → LSP Servers — add / edit / enable / delete / test.
- One-click installer: 37 presets (30 auto + 7 guides) covering mainstream languages; installs to user-level directories, no sudo.
- Self-contained engine: no dependency on the official
dsh-lsp/dsh-lsp-stdio/dsh-tool-lsp.
Installation
dsh plugin --profile web add dsh-easy-lsp # install
dsh plugin --profile web remove dsh-easy-lsp # uninstall
Restart dsh web, then: Settings → LSP Servers → add a language server (e.g. TypeScript / Python) → one-click install or copy the command → save and enable.
Conflict note: the
lsptool name collides with the officialdsh-tool-lsp— use one or the other.
Configuration
Servers are stored in the lsp section of ~/.dsh/settings.yaml and managed in the UI (manual edits are hot-synced too):
lsp:
servers:
typescript:
enabled: true
command: typescript-language-server
args: ['--stdio']
extensionToLanguage: { '.ts': 'typescript', '.tsx': 'typescript' }
diagnostics:
autoRun: true
inject: true
stabilityRounds: 2
Notes
- typescript-language-server does not push transient diagnostics; pyright-style servers do.
- One extension maps to the first enabled server (conflict hinted in the UI).
- Proactive-injection cache is global per file; sessions share diagnostic state.
- No rename / format / completion / code-actions.
License
MIT
No comments yet. Be the first to write one.