diff options
Diffstat (limited to 'internal/lsp/document_test.go')
| -rw-r--r-- | internal/lsp/document_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/lsp/document_test.go b/internal/lsp/document_test.go index e6fba40..849346d 100644 --- a/internal/lsp/document_test.go +++ b/internal/lsp/document_test.go @@ -38,15 +38,17 @@ func newTestServer() *Server { PromptCodeActionGoTestUser: "Function under test:\n{{function}}", }, } - return &Server{ + s := &Server{ logger: log.New(io.Discard, "", 0), docs: make(map[string]*document), cfg: cfg, codeActionSubsystem: codeActionSubsystem{ llmClientRegistry: llmClientRegistry{llmProvider: llmutils.CanonicalProvider(cfg.Provider)}, }, - completionSubsystem: completionSubsystem{completionState: completionState{}}, } + s.chat = newChatService(s) + s.completion = newCompletionService(s) + return s } func initServerDefaults(s *Server) { |
