-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command aws.codeWhisperer.rejectCodeSuggestion not found #4409
Comments
hey @dgokcin thanks for reporting to us. I think the issue results from different inline completion extension interference (Copilot and CodeWhisperer), could you help me verify this aspect by disable Copilot and see if the issue persists? Thanks! |
@Will-ShaoHua hello and thanks for the quick reply. I can confirm that this issue persists only when two inline completion extensions are enabled at the same time. Disabling Copilot made the popup disappear. Ideally, when auto suggestions are paused, I expect the ignoring code suggestions keymap to be disabled as well. The sign-out approach is not going to work for me because signing out from CW causes a sign-out from Amazon Q as well, and I often toggle between Copilot Chat and Amazon Q during my daily workflow. As a workaround, I found that disabling the keybinding works better for me by adding the following override to my keybindings.json: {
"key": "escape",
"command": "-aws.codeWhisperer.rejectCodeSuggestion",
"when": "aws.codewhisperer.connected && inlineSuggestionVisible && !editorReadonly || isCloud9 && suggestWidgetVisible && !editorReadonly"
} |
Understood, we keep the keep binding because users can still trigger CW manually with [option] + [c]. But yes, we will figure out a way to mitigate this issue, after all not all users are aware of having multi inline completion providers is the root cause.
yea that works too! |
Fair enough. Thanks for looking into this. |
This is particularly annoying when using Vim since it breaks the Escape key which is interpreted by VSCode as rejecting code suggestions. |
closing as duplicate of #3509 |
Problem
When using the GitHub Copilot extension, the default keymap for rejecting code suggestions triggers an annoying pop-up suggesting "command aws.codeWhisperer.rejectCodeSuggestion not found." Even though Code Whisperer suggestions are paused, pressing "esc" still results in this popup.
Steps to reproduce the issue
Enable GitHub Copilot extension.
Pause Code Whisperer suggestions.
Attempt to reject a code suggestion using the default keymap.
Observe the appearance of the pop-up message.
Expected behavior
Rejecting code suggestions should not trigger any pop-up messages when Code Whisperer suggestions are paused.
Additional Information
This issue is disruptive to workflow and interrupts coding sessions. I am creating this new issue because of the related issues marked as closed.
System details (run the
AWS: About Toolkit
command)The text was updated successfully, but these errors were encountered: