-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Undo does not work after save #1783
Comments
This issue doesn't seem to occur for me, with VSCodeVim version 0.8.4 and ArchOS. Ah I see. Does this only happen when your save renames the file? Like, you open up a completely new file, save it with a name, and then try to undo? |
Happens to me also
|
VSCodeVim undo is totally unusable for me right now (default ctrl+z works just fine). Whenever a file is saved there is no undo history. It's not just when filename is changed, any save at all seems to erase undo history. I am using auto save after 1 second delay, so I have 1 second of undo history 😄. Turning auto save off is more usable at the moment, but doesn't fix the problem.
|
@erlais @DarkerMatter Could you guys post your settings? |
|
Edit: I removed all my settings, keybindings, extensions. Uninstalled neovim. Did a new insiders update, Put only VSCodeVim back, opened a new window so I wouldn't be inside a project. Still the same issue. Uninstalled VSCode completely and reinstalled - still same. Edit2: I should mention that I have had unexpected extension keybind behavior before and it was caused by some of my system/region/language settings being non-standard (Estonian). That particular issue was related to creating/editing timestamps. Not sure if undo in this case has anything to do with time or other region settings, but looks like @DarkerMatter might be Spanish and is having similar issue. Oh and just to be clear, it did work before. Pretty sure after the nvim update it broke. |
I was just able to replicate this issue. May have something to do with the amount of load your computer is currently under? |
@erlais I have an international English keyboard with the Irish keyboard layout (generally faster for typing Spanish than a Spanish keyboard¡!¡!) and Spanish regional settings. I have never had any issues with this setup. Also, the nvim update sounds about right. |
@Chillee This happens under all load conditions. |
+1 Confirmed. 😐 Can't redo my operations after saving.
|
Same here. But... it does work when you use |
@dkln And cmdshiftz 😶 |
Also experiencing this. No undo available directly after save. VSCodeVim version 0.8.4 settings{
"vim.enableNeovim": true,
"vim.disableAnnoyingNeovimMessage": true,
"vim.easymotion": true,
"vim.leader": " ",
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.tabCompletion": true,
"vim.hlsearch": true,
"vim.incsearch": true,
"vim.statusBarColorControl": true,
"vim.useSystemClipboard": true,
"vim.statusBarColors": {
"normal": "#005f5f",
"insert": "#5f0000",
"visual": "#5f00af",
"visualline": "#005f87",
"visualblock": "#86592d",
"replace": "#000000"
},
"workbench.colorCustomizations": {
"statusBar.background": "#005f87",
"statusBar.noFolderBackground": "#005f87",
"statusBar.debuggingBackground": "#005f87"
},
"workbench.colorTheme": "Dark (Monokai)",
"editor.wordWrapColumn": 100,
"vim.textwidth": 100,
"editor.multiCursorModifier": "ctrlCmd",
"window.zoomLevel": -1,
"extensions.ignoreRecommendations": false,
"editor.renderWhitespace": "boundary",
"files.trimTrailingWhitespace": true
} |
Oh shit I just realized. Fuck. This is a change to VSCode version 1.13.0. The reason @DarkerMatter, @am1ko, and @erlais reported this issue early is because they're on insiders. Now that version 1.13.0 has dropped, everybody's getting this issue (including me). It has to do with a change to VSCode on how they're handling dirty files. |
Fixable? |
Seeing issue here also.... Save file, history is gone... Please fix, I really don't want to go back to Atom... |
We just pushed out a new release, and this problem should be fixed in v0.8.5 |
I've switched to 1.13 stable and it works there. |
@DarkerMatter it should work anywhere if you v0. 8.5 of vscodevim installed. |
👍 ❤️ |
I'm on |
Same here. I have autosave on and hitting |
The VSCodeVim team prioritizes issues based on reaction count.
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Environment:
What happened:
After saving a file with
:w
I cannotu
ndo anymore.What did you expect to happen:
Continue undoing the horrors I inflicted on the file.
How to reproduce it:
Make some changes to a file, save it and try to undo those changes.
The text was updated successfully, but these errors were encountered: