Skip to content

Commit

Permalink
fix: don't show context menu when max input lenght is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurredr committed Dec 23, 2024
1 parent edde7f7 commit 5e6559f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/chat-item/chat-prompt-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5e6559f

Please sign in to comment.