summaryrefslogtreecommitdiff
path: root/internal/lsp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-16 16:38:11 +0300
committerPaul Buetow <paul@buetow.org>2025-08-16 16:38:11 +0300
commitad62a3eb132924858d23694273923f1fc13ca22e (patch)
treecaadd2832a8c8a2eb3400aa12747eedd97a7d9a1 /internal/lsp
parent833bb66706dd991ecd3973da360c472d818e970a (diff)
revert: remove newline-after-colon insertion behavior and its tests
Diffstat (limited to 'internal/lsp')
-rw-r--r--internal/lsp/handlers.go2
-rw-r--r--internal/lsp/handlers_test.go2
2 files changed, 3 insertions, 1 deletions
diff --git a/internal/lsp/handlers.go b/internal/lsp/handlers.go
index 1e77141..d58227c 100644
--- a/internal/lsp/handlers.go
+++ b/internal/lsp/handlers.go
@@ -155,7 +155,7 @@ func (s *Server) tryLLMCompletion(p CompletionParams, above, current, below, fun
return nil, false
}
- te, filter := computeTextEditAndFilter(cleaned, inParams, current, p)
+ te, filter := computeTextEditAndFilter(cleaned, inParams, current, p)
label := labelForCompletion(cleaned, filter)
items := []CompletionItem{{
Label: label,
diff --git a/internal/lsp/handlers_test.go b/internal/lsp/handlers_test.go
index bde9b82..ecd9de6 100644
--- a/internal/lsp/handlers_test.go
+++ b/internal/lsp/handlers_test.go
@@ -124,3 +124,5 @@ func TestComputeTextEditAndFilter_NoParensFallback(t *testing.T) {
// small helper to avoid importing strings
func contains(s, sub string) bool { return len(s) >= len(sub) && (func() bool { i := 0; for i+len(sub) <= len(s) { if s[i:i+len(sub)] == sub { return true }; i++ }; return false })() }
+
+