summaryrefslogtreecommitdiff
path: root/internal/lsp/server.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-20 09:09:26 +0300
committerPaul Buetow <paul@buetow.org>2025-08-20 09:09:26 +0300
commit1fcb7d472d4762d086b0930091abc7ff38d69549 (patch)
tree2ed645e18f7fa71ff6c9b4c96f58ee4d18a70cbc /internal/lsp/server.go
parent4d2437727fba2166b807686ad5c6427982aa01b9 (diff)
better
Diffstat (limited to 'internal/lsp/server.go')
-rw-r--r--internal/lsp/server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/lsp/server.go b/internal/lsp/server.go
index e1c9eaa..edd6aca 100644
--- a/internal/lsp/server.go
+++ b/internal/lsp/server.go
@@ -43,6 +43,8 @@ type Server struct {
// Small LRU cache for recent code completion outputs (keyed by context)
compCache map[string]string
compCacheOrder []string // most-recent at end; cap ~10
+ // Outgoing JSON-RPC id counter for server-initiated requests
+ nextID int64
}
// ServerOptions collects configuration for NewServer to avoid long parameter lists.