Terminal Chat code-insert button sometimes inserts entirely commented-out code #18186
Labels
Area-Chat
All things LLM or "AI"
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Tag-Fix
Doesn't match tag requirements
Product-Terminal
The new Windows Terminal.
Milestone
Windows Terminal version
1.23.3171.0
Windows build number
10.0.26120.0
Other Software
Steps to reproduce
#
).Expected Behavior
Possible options:
Actual Behavior
When there is multi-line code with a leading single-line comment inserted, the code (including comments) are inserted as all one line, meaning that the first comment comments out the entirety of the command, leaving no actual commands.
The code can be manually modified to remove comments, but this greatly takes away from the convenience of just being able to click the code-insert button and have working code just run.
The text was updated successfully, but these errors were encountered: