Skip to content

Commit 435ee79

Browse files
committed
fix minor bug when context cmd list is empty
1 parent 0136211 commit 435ee79

File tree

1 file changed

+3
-0
lines changed
  • packages/core/src/codewhispererChat/controllers/chat

1 file changed

+3
-0
lines changed

packages/core/src/codewhispererChat/controllers/chat/controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,9 @@ export class ChatController {
682682
})
683683
}
684684
}
685+
if (contextCommands.length === 0) {
686+
return
687+
}
685688
const prompts = await LspClient.instance.getContextCommandPrompt(contextCommands)
686689
if (prompts.length > 0) {
687690
triggerPayload.additionalContents = []

0 commit comments

Comments
 (0)