When suggesting source code in the chat dialog, I want to be able to mark only specific parts of the suggested code and insert them at the current cursor position in the source code. However, currently, the entire generated code block is being inserted.
Steps to Reproduce
Open the chat dialog in Visual Studio Code.
Request a code suggestion from GitHub Copilot.
Highlight a specific portion of the suggested code.
Click the button to insert the code at the current cursor position in the source file.
Expected Behavior
Only the highlighted portion of the suggested code should be inserted at the current cursor position in the source file.
Actual Behavior
The entire generated code block is inserted instead of just the highlighted portion.
Environment
Visual Studio Code Version: 1.90.1
GitHub Copilot Chat Version: v0.16.1
Operating System: Windows 11
Additional Information
It would be beneficial to have a feature that allows for selective insertion of code snippets.
This enhancement would improve workflow efficiency by reducing the need to manually copy and paste specific parts of the suggested code.
When suggesting source code in the chat dialog, I want to be able to mark only specific parts of the suggested code and insert them at the current cursor position in the source code. However, currently, the entire generated code block is being inserted.
Steps to Reproduce
Expected Behavior
Only the highlighted portion of the suggested code should be inserted at the current cursor position in the source file.
Actual Behavior
The entire generated code block is inserted instead of just the highlighted portion.
Environment
Additional Information
Screenshot / Video