From c3c71345db9086392cd9b7529c7f5287009c226e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 24 Sep 2025 23:21:43 +0300 Subject: Add runtime config store and reload command --- internal/lsp/completion_codex_path_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'internal/lsp/completion_codex_path_test.go') diff --git a/internal/lsp/completion_codex_path_test.go b/internal/lsp/completion_codex_path_test.go index 6c0a60f..ea27c6e 100644 --- a/internal/lsp/completion_codex_path_test.go +++ b/internal/lsp/completion_codex_path_test.go @@ -39,7 +39,10 @@ func (f *fakeCodeLLM) Name() string { return "fake" } func (f *fakeCodeLLM) DefaultModel() string { return "m" } func TestTryLLMCompletion_PrefersCodeCompleterOverChat(t *testing.T) { - s := &Server{maxTokens: 32, triggerChars: []string{"."}, compCache: make(map[string]string)} + s := newTestServer() + s.cfg.MaxTokens = 32 + s.cfg.TriggerCharacters = []string{"."} + s.compCache = make(map[string]string) initServerDefaults(s) fake := &fakeCodeLLM{result: "DoThing()"} s.llmClient = fake @@ -58,7 +61,10 @@ func TestTryLLMCompletion_PrefersCodeCompleterOverChat(t *testing.T) { } func TestTryLLMCompletion_FallsBackToChatOnCodeCompleterError(t *testing.T) { - s := &Server{maxTokens: 32, triggerChars: []string{"."}, compCache: make(map[string]string)} + s := newTestServer() + s.cfg.MaxTokens = 32 + s.cfg.TriggerCharacters = []string{"."} + s.compCache = make(map[string]string) initServerDefaults(s) fake := &fakeCodeLLM{result: "DoThing()", codeErr: errors.New("boom")} s.llmClient = fake -- cgit v1.2.3