-
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
API Request: Control over history #8096
Comments
The edits coming in from the extension host (i.e. It pushes an undo stop before and after the edit. It was not always like that. I changed it due to feedback from extension writers - #4313 I have a feeling that neither way makes everyone happy (i.e. some prefer to have undo stops before and after their edits, and some prefer not to), and we need additional options to That being said, you could try to workaround it. From your example about macros, why not make all the edits caused by a macro in a single |
If I understand right, that's not possible, because a macro could insert and delete in overlapping regions, which is something the TextEditorEdit doesn't support. |
Indeed, the |
In the process of working on a Vim plugin for VSCode I've run into a number of areas where I need a little bit of API help. Apologies if any of my suggestions already exist!
Vim's undo/redo history diverges from VSCode's almost immediately, since multiple changes in Vim can be considered a single undo step. This is very important just about everywhere in Vim, and is especially important in things like macros which combine multiple actions into a single step.
The text was updated successfully, but these errors were encountered: