Files
deepseek-harness/docs
sjw1231 360216b089 feat(lsp): give lsp tool failures structured error codes
tool-lsp argument checks throw ToolArgsError. lsp-stdio keeps FsError
codes from resolution and reads (adding the LSP operand to the message),
reports a missing or non-directory workspace and an oversized source as
FsError, and adds LspError codes for the stdio provider:
LSP_FILE_OUTSIDE_WORKSPACE, LSP_UNSUPPORTED_ENCODING, LSP_SPAWN_FAILED,
LSP_SERVER_EXITED, LSP_PROTOCOL_ERROR, LSP_MESSAGE_TOO_LARGE, and
LSP_SERVER_ERROR (JSON-RPC code and text in the message), and
LSP_NOT_INITIALIZED for a query that finds no negotiated capabilities
after a successful handshake. A query
failure whose teardown also fails keeps the query's name and code.
LspError assigns its literal name; the LSP subsystem page documents
every code.
2026-11-06 15:10:36 +08:00
..