-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Allow to diff dirty files to their version on disk #358
Comments
I think this would make a great extension once we have support to open a diff editor. |
Any progress on this feature ? |
This issue is currently assigned to the backlog. Every sprint we pick items from the backlog to plan for the current iteration. Please see https://github.com/Microsoft/vscode/wiki/Issue-Tracking#planning |
I briefly looked into this and have a questoin: is there an easy way to open the file as it is on the disk without the changes? Using the URI of the current editor opens a file with the unsaved changes. I was able to use a textdocumentprovider that read the file contents from disk, but then that side didn't have text highlighting because it was a text document. |
Just to give a (visual) reference for this really cool feature: Sublime Text has implemented that feature long time ago - just edit a file, right click and click "Show unsaved changes" from the context menu. Very handy feature which saves some time when you can't remember what you did exactly. |
I would be open to a PR here, I think it is not a lot of work. Some pointers:
Related to: #7278 |
Indicators showing that I have a modified open is great but I may forget what exactly has been changed before I save the file. The context menu for both or either the editor window and Working Files list could have an option to show a diff of some sort between the saved and unsaved file contents.
The text was updated successfully, but these errors were encountered: