Files
deepseek-harness/packages/lsp
sjw1231 e80eb062a1 fix(lsp): derive query capabilities from the handshake result
The instance's ready promise now resolves to the negotiated server
capabilities, so a query can no longer observe an instance without
them; LSP_NOT_INITIALIZED and its private-state test are removed.

The LSP failures page qualifies the teardown combination (uncoded query
failures surface as AggregateError without error.info) and the stderr
tail of LSP_SERVER_EXITED, and LspQueryTeardownError documents that it
does not keep the query failure's class.
2026-11-06 16:19:12 +08:00
..

description, kind
description kind
The lsp group map: language-server code navigation through the LSP seam, its stdio provider, and the model-facing lsp tool, for users and maintainers navigating the group. package-group

lsp/ — Language-server code navigation

English | 中文

Summary

The lsp group lets agents navigate code through configured language servers: go to definitions, find references and implementations, and read hover documentation. Use lsp-stdio to connect local stdio language-server commands and extension mappings, and tool-lsp to make those operations available to the model. The shared lsp package keeps provider choice and normalized results consistent, so changing servers does not change model requests. Deployments must supply and configure their language servers; this group ships none.

Table of Contents


Packages

Package Role ctx key
lsp/ Defines the code-navigation service: provider selection by file extension, four normalized read-only operations, and structured errors ctx.lsp
lsp-stdio/ Drives configured stdio language-server commands as providers over ctx.fs and ctx.subprocess registers on ctx.lsp
tool-lsp/ Exposes precise code navigation to the model through the lsp tool registers on ctx.tools

Providers register capabilities, not tools: tool-lsp is the only owner of the model-facing name, schema, prompt guidance, and presentation, so swapping a provider never changes how the model asks for navigation.



Dev Note

Working context for maintainers — click to expand

None.