Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editor.actions.removeBrackets doesn't play well with Undo stack #178107

Open
gregvanl opened this issue Mar 23, 2023 · 2 comments
Open

editor.actions.removeBrackets doesn't play well with Undo stack #178107

gregvanl opened this issue Mar 23, 2023 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-bracket-matching Editor brace matching

Comments

@gregvanl
Copy link

gregvanl commented Mar 23, 2023

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

  • VS Code Version: 1.77.0 Insiders
  • OS Version: Windows 11

Steps to Reproduce:

  1. With the cursor on a bracket, press Ctrl+Alt+Backspace to remove the bracket and its matching bracket.
  2. Ctrl+Z to undo the change.

No change, it takes two Ctrl+Z to actually undo and replace the brackets.

On earlier Insiders builds, it took even more cycles before the brackets came back

@hediet hediet added bug Issue identified by VS Code Team member as probable bug editor-bracket-matching Editor brace matching info-needed Issue requires more information from poster labels Mar 23, 2023
@hediet
Copy link
Member

hediet commented Mar 23, 2023

I cannot reproduce. Did you try in an empty profile?

@gregvanl
Copy link
Author

Doesn't repro with an empty profile.
It seems to be related to Auto Save. I require two Ctrl+Z if I have "files.autoSave": "afterDelay".
I'm testing with the gulpfile.js in the vscode-docs repo.

@hediet hediet removed the info-needed Issue requires more information from poster label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug editor-bracket-matching Editor brace matching
Projects
None yet
Development

No branches or pull requests

2 participants