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

Dirty flag not removed when undoing changes. #9467

Open
cwarlich opened this issue Jan 30, 2025 · 0 comments
Open

Dirty flag not removed when undoing changes. #9467

cwarlich opened this issue Jan 30, 2025 · 0 comments

Comments

@cwarlich
Copy link

When using VS Code with the Vim extension, I notice that:

In Vim: If you make changes to a file and then undo those changes using the u key, Vim recognizes that the buffer content matches the original file on disk. As a result, it clears the modified flag (+ in the filename) and doesn't prompt you to save upon exit.

In VS Code with Vim Extension: After making changes and undoing them with u, VS Code still marks the file as modified (indicated by a dot ● in the file tab or a dirty indicator), even though the file content matches the saved version. This means VS Code prompts you to save the file upon closing, even when no actual changes exist.

Vim's behaviour is really helpful when having changed a file accidentally, as it shows when being back to the original state by removing the dirty flag.

@cwarlich cwarlich changed the title DIrty flag not removed when undoing changes. Dirty flag not removed when undoing changes. Jan 30, 2025
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

1 participant