From 0583b360ceb606b8e58f12a17f588bd27feeb117 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 26 Sep 2025 19:34:19 +0300 Subject: Add per-surface provider overrides and wiring --- internal/lsp/document_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'internal/lsp/document_test.go') diff --git a/internal/lsp/document_test.go b/internal/lsp/document_test.go index ed2ccea..fd13e5d 100644 --- a/internal/lsp/document_test.go +++ b/internal/lsp/document_test.go @@ -8,6 +8,7 @@ import ( "testing" "codeberg.org/snonux/hexai/internal/appconfig" + "codeberg.org/snonux/hexai/internal/llm" ) func newTestServer() *Server { @@ -35,9 +36,11 @@ func newTestServer() *Server { PromptCodeActionGoTestUser: "Function under test:\n{{function}}", } return &Server{ - logger: log.New(io.Discard, "", 0), - docs: make(map[string]*document), - cfg: cfg, + logger: log.New(io.Discard, "", 0), + docs: make(map[string]*document), + cfg: cfg, + altClients: make(map[string]llm.Client), + llmProvider: canonicalProvider(cfg.Provider), } } -- cgit v1.2.3