aws / aws/aws-toolkit-vscode

Amazon Q Chat - Insert at cursor in integrated terminal

Open
#6,723 0 comments 1 reaction 0 assignees View on GitHub
amazon-q codewhisperer feature-request
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem
Whenever Q Developer suggests some code snippets, we get the "Insert at curser" quick action. That works great for inserting on open files but not when inserting suggested bash commands in the terminal.

Steps to reproduce:
- Chat with Q developer about how to add a package in your package.json or requirements.txt. Can be also any other use-case that will lead to a suggestion to execute bash commands.
- Navigate to the bash snippet
- click in you terminal to set the focus in here
- click on insert at cursor
- The code snippet will not be added to the terminal but the last known position of the open file in the editor

## Expected behavior
The code snippet should be inserted on the active cursor in the terminal

Contributor guide

Open the contributing guide

Research direction

Start from the Amazon Q Chat “Insert at cursor” quick action and trace how it handles the focused editor versus the integrated terminal. Reproduce the bash-snippet workflow described in the issue; done means the snippet is inserted at the active cursor in the terminal rather than at the last editor position.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.