From ad62a3eb132924858d23694273923f1fc13ca22e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 16 Aug 2025 16:38:11 +0300 Subject: revert: remove newline-after-colon insertion behavior and its tests --- internal/lsp/handlers.go | 2 +- internal/lsp/handlers_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/lsp') 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 })() } + + -- cgit v1.2.3