-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Settings for Disabled Persisted Undo #94778
Comments
FYI: Completely closing VS Code seems to be a temporary workaround to bust this persisted undo cache. |
Also adding an option to clear the undo stack for the current file would be useful. When do I need that? for example when I commit some changes, I need to clear the undo stack so when I do some experiments I can spam I usually did this "clear undo" by reopening the file, now it won't work, don't get me wrong, this new "persisted undo" feature is great, but it needs a way to clear the undo to go with it. |
Yes, please expose this as an option. In my case, I keep internal backups and I want the Undo/Redo history to be gone as soon as I close the file. In fact I'd also like to have the option to clear it at will, like some old-style code editors did (it was called Clear Undo history, I believe). |
Same. Add an option for this, please. |
I work around the lack of this option by binding a shortcut to the However, i'd much prefer to have an option to disable the new behavior for the times where I want to clear the undo history of a given file by simply closing it. Alternatively, I'd like a command to clear the undo history for the current document as well as a specific command to clear the undo history for the whole workspace. My own concern is for same reason stated by @mmghv - so can spam |
I am having the same issue. I do not want to undo files once the tabs are closed. Please add an option to disable persistent undo. |
This is particularly nefarious if you just happen to have a file open during an external change (e.g. a |
Starting with the next Insiders build, this can be effectively turned off via |
@alexdima Great, thank you. |
Verified that setting to 0 will no longer remember undos for closed editor |
Opened issue #96601 to add a command for clearing undo history. |
I have received feedback in the standup and the setting will now be replaced by |
Version Info:
Version: 1.44.0
Commit: 2aae1f2
Date: 2020-04-08T08:23:56.137Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0
Hello,
The newest release of VS Code has a "persisted undo stack". It would be great to have a setting to disable this. In my workflow, I frequently close files for the specific purpose of disabling the undo stack. When I reopen files, I would not find it useful to be able to undo in them.
Thanks!
The text was updated successfully, but these errors were encountered: