-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersterminal-findRelating the terminal's find widgetRelating the terminal's find widgetverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.68.0
(this issue didn't exist on 1.67.2) - OS Version: macOS Monterey 12.3.1
Steps to Reproduce:
- In settings.json enable:
"terminal.integrated.copyOnSelection": true, - Open integrated terminal
- Search for some term that exists in the terminal (that will be highlighted/selected)
- Focus on editor and type + copy some chunk of text
- Focus on terminal, press CMD+F and paste what you just copied
Expected:
The pasted term is the term you just copied
Actual:
The pasted term is the term you last searched for (in step 3).
Why this happens?
Because:
- When you press CMD+F in terminal, the terminal has pre-existing term typed in the search box (from your first search)
- Terminal uses this term to highlight all occurrences of such term in the terminal
- Highlighting the terms makes the terminal also copy this term to clipboard due to
"terminal.integrated.copyOnSelection": true,
joelhock, b1az, sazzy4o, nantiferov, eirikpre and 5 morePictor13
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersterminal-findRelating the terminal's find widgetRelating the terminal's find widgetverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded