You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to use the "Insert at cursor" functionality in the Amazon Q chat within the JetBrains IDE, the feature does not work properly if text is already selected in the target file. Instead of replacing the selected text with the suggestion, it inserts an empty string.
To reproduce
Steps to reproduce the behavior:
Open a file and select some text in the JetBrains IDE.
Request a code improvement or replacement via the Amazon Q chat.
Click the "Insert at cursor" button to insert the suggested code.
Instead of inserting the suggested code, an empty string is inserted.
Expected behavior
The expected behavior is that the selected text should be replaced by the suggested code from the Amazon Q chat, or the new code should be inserted at the cursor's position if no text is selected.
Screenshots
Your Environment
OS: MacOS
JetBrains product: PhpStorm
JetBrains product version: 2024.2.1
AWS Toolkit version: 3.28-242
SAM CLI version: [Insert version here]
JVM/Python version: [Insert version here]
Additional context
This issue occurs specifically when there is text already selected in the file. Without selected text, the "Insert at cursor" feature works as expected.
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to use the "Insert at cursor" functionality in the Amazon Q chat within the JetBrains IDE, the feature does not work properly if text is already selected in the target file. Instead of replacing the selected text with the suggestion, it inserts an empty string.
To reproduce
Steps to reproduce the behavior:
Expected behavior
The expected behavior is that the selected text should be replaced by the suggested code from the Amazon Q chat, or the new code should be inserted at the cursor's position if no text is selected.
Screenshots
Your Environment
Additional context
This issue occurs specifically when there is text already selected in the file. Without selected text, the "Insert at cursor" feature works as expected.
The text was updated successfully, but these errors were encountered: