microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.25k stars 29.3k forks source link

strange inverse color/highlighting after reverse search in terminal #228174

Open wswxyq opened 2 months ago

wswxyq commented 2 months ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. use ctrl+R to perform reverse search in terminal
  2. type search keywords(matched command will pop up)
  3. press left arrow key in keyboard
  4. some text in the command will be highlighted/inversed colored.
  5. even after exit the reverse search, the command line will still be highlighted. • bash-5 1$
meganrogge commented 2 months ago

I cannot reproduce. could you pls run the command Developer: Toggle Screencast Mode and record a gif?

wswxyq commented 2 months ago

Hi @meganrogge due to regulations and privacy concern I only record part of the screen:

https://github.com/user-attachments/assets/fc8e3bc4-d602-4b87-854d-2fc423522223

Please let me know if you need more informations.

meganrogge commented 2 months ago

looks like all of that text is getting selected. do you have any interesting settings or keybindings?

wswxyq commented 2 months ago

I don't explicitly set keybindings. This issue happens randomly and only happends when I am connecting to remote linux server with Alma Linux 9. Do you think this cound be caused by the remote server's setting?