diff options
Diffstat (limited to 'internal/lsp')
| -rw-r--r-- | internal/lsp/handlers.go | 2 | ||||
| -rw-r--r-- | internal/lsp/handlers_test.go | 2 |
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 })() } + + |
