From 5e6559f6edbff4a316670791388825c7f2a4ea2d Mon Sep 17 00:00:00 2001 From: Jurre de Ruiter Date: Mon, 23 Dec 2024 17:20:40 +0100 Subject: [PATCH] fix: don't show context menu when max input lenght is 0 --- src/components/chat-item/chat-prompt-input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chat-item/chat-prompt-input.ts b/src/components/chat-item/chat-prompt-input.ts index 4a0d95e..c84d1b9 100644 --- a/src/components/chat-item/chat-prompt-input.ts +++ b/src/components/chat-item/chat-prompt-input.ts @@ -296,7 +296,7 @@ export class ChatPromptInput { this.sendPrompt(); } else if ( (this.selectedCommand === '' && e.key === KeyMap.SLASH && this.promptTextInput.getTextInputValue() === '') || - (e.key === KeyMap.AT) + (e.key === KeyMap.AT && this.promptTextInput.promptTextInputMaxLength > 0) ) { this.quickPickType = e.key === KeyMap.AT ? 'context' : 'quick-action'; this.quickPickItemGroups = this.quickPickType === 'context' ? quickPickContextItems : quickPickCommandItems;