summaryrefslogtreecommitdiff
path: root/internal/lsp/completion_cache_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-24 23:21:43 +0300
committerPaul Buetow <paul@buetow.org>2025-09-24 23:21:43 +0300
commitc3c71345db9086392cd9b7529c7f5287009c226e (patch)
treed227894ab900d6050cbe1418984526088a692db5 /internal/lsp/completion_cache_test.go
parent127844a4ee481590ef53b6777d34bf2114cb3ab1 (diff)
Add runtime config store and reload command
Diffstat (limited to 'internal/lsp/completion_cache_test.go')
-rw-r--r--internal/lsp/completion_cache_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/lsp/completion_cache_test.go b/internal/lsp/completion_cache_test.go
index 65631f9..057b5c5 100644
--- a/internal/lsp/completion_cache_test.go
+++ b/internal/lsp/completion_cache_test.go
@@ -12,9 +12,13 @@ import (
func TestCompletionCache_IgnoresWhitespaceBeforeCursor(t *testing.T) {
var buf bytes.Buffer
logger := log.New(&buf, "", 0)
- s := NewServer(bytes.NewBuffer(nil), &buf, logger, ServerOptions{})
+ s := newTestServer()
+ s.logger = logger
+ s.out = &buf
logging.Bind(logger)
- s.triggerChars = []string{" ", "."}
+ cfg := s.cfg
+ cfg.TriggerCharacters = []string{" ", "."}
+ s.cfg = cfg
fake := &countingLLM{}
s.llmClient = fake