How to reproduce the bug:
- Open a text file;
- Edit something in the file;
- Use Cmd+F to activate the search box on the top right;
- Type a keyword you want to search in the box;
- Change the keyword in the box; (e.g., add a character to the keyword)
- Use Cmd+Z to undo;
- You will notice that Visual Studio Code actually undos the text file edit, not the search keyword edit.
How to reproduce the bug: