alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.7k stars 163 forks source link

[BUG] - cursor does not stay at bookmarked location after coming back #338

Closed grozan closed 4 years ago

grozan commented 4 years ago

Environment/version

Steps to reproduce

Hi, I observe a weird behaviour, which in my case defeats the whole point of bookmarks to quickly jump back and forth between lines. Not sure if it's only me or not.

Suppose I have a file with 20 lines in it. There are no bookmarks in that file yet.

  1. go to a position, say line 4, Col 20
  2. create a bookmark with "bookmarks: toggle". The little sign appears
  3. move to another position, anywhere. Say line 10, Col 2
  4. trigger "bookmarks: jump to next". The cursor SEEMS to be coming back to the right position (line 4, Col 20)
  5. I use vscode in VIM mode, with the popular vim extension. Now that my cursor is back at my bookmarked location, I want to move one character to the right, be pressing l. Instead of the cursor moving to line 4, Col 21, it first jumps back to wherever I was when I triggered the "bookmarks: jump to next" command (line 10, Col 2 in this example). It does my right movement, but not on the right line. I end up at line 10, Col 3
grozan commented 4 years ago

it turns out this is a bug in the vscode vim extension. closing