feat(lsp): add go-to-definition for labels

This commit is contained in:
2026-08-05 11:08:00 +02:00
parent 8ddac0135e
commit 2d45dbf7ff
3 changed files with 45 additions and 0 deletions
+5
View File
@@ -170,6 +170,11 @@ func (s *Server) dispatch(msg *rpcMessage) (exit bool) {
json.Unmarshal(msg.Params, &p)
s.respond(msg.ID, s.hover(p))
case "textDocument/definition":
var p definitionParams
json.Unmarshal(msg.Params, &p)
s.respond(msg.ID, s.definition(p))
case "textDocument/documentSymbol":
var p documentSymbolParams
json.Unmarshal(msg.Params, &p)