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

Don't add to undo stack if nothing happens #315

Closed
eykamp opened this issue Feb 4, 2022 · 1 comment
Closed

Don't add to undo stack if nothing happens #315

eykamp opened this issue Feb 4, 2022 · 1 comment

Comments

@eykamp
Copy link

eykamp commented Feb 4, 2022

In VS Code, if I reformat a section, and no reformatting is needed (i.e. nothing changes), the "empty" format step should not be added to the undo/redo stack.

That is, if I type a letter, then press Alt-Q and nothing changes, when I press Ctrl-Z, the letter I typed should be undone. Currently, I need to press Ctrl-Z twice for that to happen.

Not a major issue, just something I noticed.

@stkb
Copy link
Owner

stkb commented Feb 6, 2022

Hi and thanks; this is the same issue as in #308, and should now be fixed in pre-release version 17.5

@stkb stkb closed this as completed Feb 6, 2022
stkb added a commit that referenced this issue Feb 14, 2022
- Support .rmd files as markdown (#245)
- Basic support for Textile files as markdown (#271)
- Support FIDL (#255), Pascal/Delphi (#97) & pylintrc files (#121)
- Shell script: Ignore shebangs (#129)
- Add '//'-comments to CSS (workaround for #309)
- Fix batch files: case-insensitive "REM" and "@" prefix (#313)
- Fix the document being 'modified' if there were no actual changes
  (#308, #315)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants