fix(lsp): recover from handler panics and decode client uris

This commit is contained in:
2026-09-14 18:22:00 +02:00
parent e307bf830f
commit 909f874797
4 changed files with 190 additions and 23 deletions
+2 -1
View File
@@ -4,7 +4,7 @@
// Package lsp implements a Language Server Protocol server for GAsm. It
// speaks JSON-RPC 2.0 over any io.Reader/io.Writer pair (normally standard
// input/output) and provides completion, hover documentation, document
// symbols, diagnostics and semantic-token highlighting — all backed by the
// symbols, diagnostics and semantic-token highlighting, all backed by the
// pure-Go lexer, parser, arch and lint packages. It is the vendor-neutral
// integration point: any LSP-capable editor can use it with no editor-specific
// plugin code.
@@ -31,6 +31,7 @@ type rpcError struct {
const (
errMethodNotFound = -32601
errInternalError = -32603
)
// --- LSP positions and ranges ----------------------------------------------