diff options
Diffstat (limited to 'internal/lsp/chat_context_mode_test.go')
| -rw-r--r-- | internal/lsp/chat_context_mode_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/lsp/chat_context_mode_test.go b/internal/lsp/chat_context_mode_test.go index 876f092..e6696f4 100644 --- a/internal/lsp/chat_context_mode_test.go +++ b/internal/lsp/chat_context_mode_test.go @@ -23,7 +23,7 @@ func TestChat_RespectsContextModeWindow(t *testing.T) { src := "package main\nline2 context\nwhat?>\n" s.setDocument(uri, src) - s.detectAndHandleChat(uri) + s.chatSvc().detectAndHandleChat(uri) s.inflight.Wait() if len(cap.msgs) == 0 { t.Fatalf("expected Chat to be called") @@ -59,7 +59,7 @@ func TestChat_ContextModeMinimal_NoExtra(t *testing.T) { uri := "file:///ctx2.go" s.setDocument(uri, "package main\nhelp?>\n") - s.detectAndHandleChat(uri) + s.chatSvc().detectAndHandleChat(uri) s.inflight.Wait() if len(cap.msgs) != 2 { @@ -81,7 +81,7 @@ func TestChat_ContextModeAlwaysFull_AddsExtra(t *testing.T) { uri := "file:///ctx3.go" s.setDocument(uri, "package main\nline2\nhelp?>\n") - s.detectAndHandleChat(uri) + s.chatSvc().detectAndHandleChat(uri) s.inflight.Wait() if len(cap.msgs) < 3 { @@ -109,7 +109,7 @@ func TestChat_ContextModeFileOnNewFunc_NoExtraWithoutSignature(t *testing.T) { uri := "file:///ctx4.go" s.setDocument(uri, "package main\nhelp?>\n") - s.detectAndHandleChat(uri) + s.chatSvc().detectAndHandleChat(uri) s.inflight.Wait() if len(cap.msgs) != 2 { @@ -130,7 +130,7 @@ func TestChat_ContextModeFileOnNewFunc_WithSignature_AddsExtra(t *testing.T) { // Signature without '{' yet; chat prompt appears before the body, so newFunc=true src := "package main\n\nfunc add(x int) int\nhelp?>\n" s.setDocument(uri, src) - s.detectAndHandleChat(uri) + s.chatSvc().detectAndHandleChat(uri) s.inflight.Wait() if len(cap.msgs) < 3 { |
