summaryrefslogtreecommitdiff
path: root/internal/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp')
-rw-r--r--internal/lsp/context.go2
-rw-r--r--internal/lsp/context_test.go2
-rw-r--r--internal/lsp/document.go2
-rw-r--r--internal/lsp/document_test.go2
-rw-r--r--internal/lsp/handlers.go2
-rw-r--r--internal/lsp/handlers_test.go2
-rw-r--r--internal/lsp/server.go2
-rw-r--r--internal/lsp/transport.go2
-rw-r--r--internal/lsp/types.go2
9 files changed, 18 insertions, 0 deletions
diff --git a/internal/lsp/context.go b/internal/lsp/context.go
index e746058..02aa40a 100644
--- a/internal/lsp/context.go
+++ b/internal/lsp/context.go
@@ -1,3 +1,5 @@
+// Summary: Builds additional context snippets based on configured mode and truncates text by token heuristic.
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/context_test.go b/internal/lsp/context_test.go
index fe5d73b..54553d6 100644
--- a/internal/lsp/context_test.go
+++ b/internal/lsp/context_test.go
@@ -1,3 +1,5 @@
+// Summary: Tests for context-building logic (window, full-file) and truncation behavior.
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/document.go b/internal/lsp/document.go
index 05f024f..dbecd5e 100644
--- a/internal/lsp/document.go
+++ b/internal/lsp/document.go
@@ -1,3 +1,5 @@
+// Summary: In-memory document model for the LSP; tracks text, lines, and applies edits.
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/document_test.go b/internal/lsp/document_test.go
index e8fa6bb..da17cc5 100644
--- a/internal/lsp/document_test.go
+++ b/internal/lsp/document_test.go
@@ -1,3 +1,5 @@
+// Summary: Tests for LSP document model (line management, edits, and transformations).
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/handlers.go b/internal/lsp/handlers.go
index a16affb..7903c73 100644
--- a/internal/lsp/handlers.go
+++ b/internal/lsp/handlers.go
@@ -1,3 +1,5 @@
+// Summary: LSP JSON-RPC handlers; implements core methods and integrates with the LLM client when enabled.
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/handlers_test.go b/internal/lsp/handlers_test.go
index 0ba29cf..9a490e3 100644
--- a/internal/lsp/handlers_test.go
+++ b/internal/lsp/handlers_test.go
@@ -1,3 +1,5 @@
+// Summary: Tests for LSP handlers and request processing, including diagnostics and code actions.
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/server.go b/internal/lsp/server.go
index cc7d88e..9fb02c3 100644
--- a/internal/lsp/server.go
+++ b/internal/lsp/server.go
@@ -1,3 +1,5 @@
+// Summary: Minimal LSP server over stdio; manages documents, dispatches requests, and tracks stats.
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/transport.go b/internal/lsp/transport.go
index 4d352f8..0c63aa8 100644
--- a/internal/lsp/transport.go
+++ b/internal/lsp/transport.go
@@ -1,3 +1,5 @@
+// Summary: LSP transport utilities to read and write JSON-RPC messages with Content-Length framing.
+// Not yet reviewed by a human
package lsp
import (
diff --git a/internal/lsp/types.go b/internal/lsp/types.go
index dbd7331..42a315f 100644
--- a/internal/lsp/types.go
+++ b/internal/lsp/types.go
@@ -1,3 +1,5 @@
+// Summary: LSP protocol types used by the server (requests, responses, params, capabilities).
+// Not yet reviewed by a human
package lsp
import "encoding/json"