-
Notifications
You must be signed in to change notification settings - Fork 30k
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
View undo/redo history visually or an indicator or a counter #100717
Comments
At the very least the VS Code should implement a Local History (#26339) as soon as possible to cover any irrecoverable work loss. It makes no sense not to prioritize issues like this. Nobody really commits to Git so often that they would be exempt from this - at the very least, this could be implemented by having a second hidden Git repository, committing every change automatically on the background, and then letting us access that repository using any standard Git tool. Until someone finds the time to also implement a user friendly interface, this would be plenty and our basic needs would be covered. And it's not even that hard to do, check out https://stackoverflow.com/questions/505467/can-i-store-the-git-folder-outside-the-files-i-want-tracked :) |
Doesn't it already have some internal undo history logic? I mean, what happens when you press Also, the Git logic will not prevent from Redo overwrite at least some modified version of it. |
@eamodio Sorry for pinging, but it's really important to know where people should append upvotes(likes?): to Previous question to assigned person got no answer, so, I hope if you might answer. Also, thank you all very much for upvoting this request. It should help the developers really much! Most developers might lose their edit history after overwriting their Best regards and be safe! |
I don't know what the bot is counting. I believe it is counting votes on the first comment in the issue. FYI @JacksonKearl @kieferrm -- maybe the bot should count votes also on its own comment. |
Thank you very much, dear @alexdima
Indeed, or, at least, slightly clarify what to upvote :) |
Bot counts +1 reactions on the original issue. Added a section to the docs and a link to it to the comment. See: #102982 |
Is that what you have added, recently? https://github.com/microsoft/vscode/wiki/Issues-Triaging#up-voting-a-feature-request |
(re-pasting my question here ) I need to be able to 'block' or 'clear' undos when closing or switching from one of them to another. It used to be that doing vscode.WorkspaceEdit "rename" operation would 'clear'/'block' all undos for the newly named document to traverse across the point where the document was renamed, but lately the newer versions of vscode tries to open a document with the old name when pressing ctrl+Z on a newly renamed document (in a custom filesystem)... Is there a way to disable that? Or a way to clear the undo stack for a given document URL? or for a filesystem scheme only in particular? Thanks! |
@mjbvz Please see the question above about undo/redo and custom editors. |
I'd like this feature, but I'd also like an additional detail. Something (I'm guessing an extension) is actively reverting the actions of |
Does the same issue appear with all extensions disabled, or in pure/default VSCode build/instance with default configuration? I would try debugging the VSCode itself. Have you tried profiling with Devtools right the moment the issue appears? I would suggest checking out the following: https://www.nicoespeon.com/en/2019/11/fix-vscode-extension-performance-issue/#record-extension-profile Please also check the following: https://code.visualstudio.com/blogs/2021/02/16/extension-bisect |
Actually, I figured it out shortly after posting this comment. I explain it here: https://stackoverflow.com/questions/77888484/how-to-set-visual-studio-to-prepend-a-comment-character-when-splitting-a-comment |
And since then, I switched the setting from None to Pylance because "rename symbol" had disappeared from context menus (though I haven't tested comment line splitting since that update and I'm not at my desk ATM). |
OK. I think I may have a better fix now. I changed "Pylance" to "Jedi" and now it doesn't delete |
when will we get this??? |
Dear VSCode,
Thank you very much for this project.
Although, the feature we might need is the Undo/Redo
history
like in the VS2019 or Photoshop, for example:or at least colored/highlighted
buttons
(without any history list) orcounters
(these numbers below show the number ofUndo
ings the coder did (or number ofRedo
available to restore)):or an
indicator
if any Redo is available.The reason of this request is that without it the VSCode forces you to recheck if any edits have undone after returning to the project by clicking
Ctrl+Shift+Z
/Ctrl+Y
andCtrl+Z
repeatedly etc. to ensure and not lose the undo/redo history by an accident.In short, the there are 3 ways to implement.
Just, imagine a situation:
So, this request might eliminate this problem.
It might be already nearly implemented:
The
Undo/Redo
might already is stored in someobject map
or such, so just iterate through and do stuff. I.e. show the map in list or length of eachmap
per file.Interesting link which shows how might Emacs have such "feature".
Best regards
The text was updated successfully, but these errors were encountered: