-
Notifications
You must be signed in to change notification settings - Fork 8
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
Automatic checkpoints #16
Comments
Agreed, I installed the checkpoint extension and the first time I needed to use it I discovered that I had not saved any checkpoints. |
I have just created something like this (very hacky) and came to suggest that feature. It creates a checkpoint on each time you save the document. Also it's funny because it says that it doesn't support unsaved documents, and each save is a really good checkpoint because you are ready to run whatever you just wrote. It's here: https://github.com/amiramitai/vscode-checkpoints |
@amiramitai looks nice! I can tell you that Webstorm also has problems with renamed / deleted files. If you name the file back to the original name, or create a new file with the old deleted filename, it will allow you to recover the contents of the file. Maybe follow something similar? My only feedback would be that it would be nice to inline the commands into the right-click menu while clicking on the file in the original tree structure rather than a separate area for checkpoints. Nice work! |
I think it's neat that it's placed on the side. it works the same way as the timeline tab. When I wanted to think how I'll be implementing this, I went to check if there's any "source control/versioning" apis for vscode. The thing with the renames would be to get into the implementation. Anyway, opened a PR 🤞 #17 |
@amiramitai PR is now merged and published. You can enable the setting Let me know if you experience any problems! :) And thank you @amiramitai ! |
It would be very helpful if a setting could be added so that a checkpoint is automatically created when you open a document that has already been saved/named (I understand the extension does not support unsaved files)or every x number of minutes.
I use auto-save to quickly save and run the latest version of programs across different programming languages, and instead of doing Ctrl-Z multiple times to go back on changes you could just revert to a checkpoint with one click.
The text was updated successfully, but these errors were encountered: