Environment:
What happened:
I use vscode with the extension "Go" for golang develop.
When I modify and save a .go file, the cursor jumps to the end of the file.
What did you expect to happen:
The cursor should stay in its original position.
How to reproduce it:
@llife09 came here after spotting the same problem. Even disabling this plugin didn't fix it which led me to check what plugins I had installed as I suspected it might have something to do with either linting or code formatting triggered by a save. In my case, I had this JS-CSS-HTML Formatter plugin that I disabled and the problem went away. Might this be the case for you as well?
@cpinto it works well before i upgrade the vscode to 1.18.0. The extension "Go" will format the file on save锛宐ut i need this feature.
Same here. After upgrading to vscode 1.18, writing the file will make my cursor jump the end of the file. For me, I'm writing Elm and using the Elm plugin, which formats my Elm code to the language's coding style conventions.
This seems to be a regression in version 1.18.
An issue has been filed https://github.com/Microsoft/vscode/issues/38728.
This doesn't seem to be a VSCodeVim problem, from what people are saying.
I'm going to close this issue.
This happens a lot for me with different commands, e.g. when pressing dd, after pressing the first d, the cursor jumps to a different line, and the wrong lines gets deleted.
This happens a lot for me with different commands, e.g. when pressing
dd, after pressing the first d, the cursor jumps to a different line, and the wrong lines gets deleted.
I have exactly the same. It notable happens after deleting a line with dd. No matter what other key I press afterwards the cursor jumps to the end of the file. It also only happens when using VSCode for a while but once it happens it happens every time making it unusable. The only remedy is to restart VSCode.
I'd be happy to help debug this but I don't really know where to start.
This happens a lot for me with different commands, e.g. when pressing
dd, after pressing the first d, the cursor jumps to a different line, and the wrong lines gets deleted.I have exactly the same. It notable happens after deleting a line with
dd. No matter what other key I press afterwards the cursor jumps to the end of the file. It also only happens when using VSCode for a while but once it happens it happens every time making it unusable. The only remedy is to restart VSCode.I'd be happy to help debug this but I don't really know where to start.
This has been happening to me too, but seems to only happen when i have the same file open twice in a vertical split and both files are in focus.
Should a new issue be opened?
I'm also experiencing this bug. dd followed by any other key jumps to the bottom of the file. A restart is necessary to fix the bug, but it always reappears eventually.
Edit: Version information
VSCode Version: 1.33.0
VsCodeVim Version: 1.4.0
OS: macOS Mojave 10.14.4
I haven't seen reproduction steps posted in detail, so here's what I've found:
When I have the same file open in a split window, if I delete a line with 'dd', the next keystroke will jump the cursor to the location of the cursor in the other window if it is below the current location. Putting the cursor in the other split file in line 1 keeps this from happening. Definitely not a fix, but until one comes along, that's what I'm doing.
Most helpful comment
I'm also experiencing this bug.
ddfollowed by any other key jumps to the bottom of the file. A restart is necessary to fix the bug, but it always reappears eventually.Edit: Version information
VSCode Version: 1.33.0
VsCodeVim Version: 1.4.0
OS: macOS Mojave 10.14.4