From de5029e6d4a7efffcccfb08d98770b1c1c4f54fe Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 10 Mar 2026 19:34:02 +0200 Subject: task bf088a70: extract LSP client and completion state --- internal/lsp/ignore_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/lsp/ignore_test.go') diff --git a/internal/lsp/ignore_test.go b/internal/lsp/ignore_test.go index f14daf5..7df7428 100644 --- a/internal/lsp/ignore_test.go +++ b/internal/lsp/ignore_test.go @@ -9,7 +9,6 @@ import ( "codeberg.org/snonux/hexai/internal/appconfig" "codeberg.org/snonux/hexai/internal/ignore" - "codeberg.org/snonux/hexai/internal/llm" ) // newIgnoreTestServer creates a Server with an ignore checker configured @@ -26,7 +25,8 @@ func newIgnoreTestServer(gitRoot string, useGI bool, extra []string, notifyIgnor logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), cfg: cfg, - codeActionSubsystem: codeActionSubsystem{altClients: make(map[string]llm.Client)}, + codeActionSubsystem: codeActionSubsystem{llmClientRegistry: llmClientRegistry{}}, + completionSubsystem: completionSubsystem{completionState: completionState{}}, ignoreChecker: ignore.New(gitRoot, useGI, extra), } return s @@ -129,7 +129,7 @@ func TestIsFileIgnored_NoChecker(t *testing.T) { s := &Server{ logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), - codeActionSubsystem: codeActionSubsystem{altClients: make(map[string]llm.Client)}, + codeActionSubsystem: codeActionSubsystem{llmClientRegistry: llmClientRegistry{}}, // ignoreChecker is nil } @@ -166,7 +166,7 @@ func TestIgnoreLSPNotifyEnabled_NilConfig(t *testing.T) { s := &Server{ logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), - codeActionSubsystem: codeActionSubsystem{altClients: make(map[string]llm.Client)}, + codeActionSubsystem: codeActionSubsystem{llmClientRegistry: llmClientRegistry{}}, cfg: appconfig.App{}, } if !s.ignoreLSPNotifyEnabled() { -- cgit v1.2.3