open a file
do some editing
u to undo all editing
close the file
the file be closed
VSCode asks: Do you want to save the changes you made to xxxxx?
I wish... Unfortunately, this is something that VSCode won't let us do currently.
Currently we are doing undo ourselves but I'm thinking this issue can be mitigated by setting correct undo stop and trigger Code's undo functionality.
Yeah, they do provide the API now! However, it would not be a straightforward change. On top of porting our history tracking code, you'd also have to get the remapper to work, which depends on reversing individual keystrokes (jj => esc reverses both j's, even though they wouldn't be separate undo steps).
@johnfn true. I'll have another round of sync up about the history access this afternoon and then let's how can we improve.
Any progress on this? https://github.com/VSCodeVim/Vim/issues/2378
That's one of few things that prevents me from using vscode =(
Closing in favor of #3201