microsoft / vscode

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

replace by regular expression failed #213048

Open he-johnson opened 3 months ago

he-johnson commented 3 months ago

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

Steps to Reproduce:

  1. open a directory
  2. open a *.c file in the directory
  3. press Ctrl + H to open a replace dialog
  4. paste "\/*([^]|*+[^/])*\/" into the find editor
  5. then vscode will not respond to mouse click or keyboard press any more
VSCodeTriageBot commented 3 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

ArturoDent commented 3 months ago

That is an invalid regex, but that shouldn't cause vscode to freeze. A gif would probably be helpful. And does it still happen with all extensions disabled?

he-johnson commented 3 months ago

image

he-johnson commented 3 months ago

when I paste "\/*([^]|*+[^/])*\/" on the find editor, the fault dialog pop up again