Skip to content

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

@eykamp

Description

@eykamp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions