Vscode-bookmarks: Sticky Bookmarks fail with trimAutoWhitespace set to True

Created on 19 Sep 2016  Â·  4Comments  Â·  Source: alefragnani/vscode-bookmarks

I config in 'settings.json' as follow:

"bookmarks.useStickyBookmarks": true

When i add some new blank line before the bookmark, the bookmarks can not stick

bug sticky

Most helpful comment

Hm... I knew this wasn't strange to me...

This error was introduced by an update in VS Code (don't remember exactly when). I thought I had fixed but instead I just _turned off_ 😢 . That update introduced a new setting editor.trimAutoWhitespace, that you must set to false in order to temporarily fix this.

Hope this helps.

All 4 comments

as follow is my test code.
the bookmark is at 'function'.
when i add new line use enter in 'o' object`s bracket,the bookmark can not stick.

var o = {}
function test() {}

I find if before newline has indent,then use enter add some newline will change the bookmark.

Hi @jing2si ,

Sorry, but I couldn't reproduce your problem 😞 . Take a look at the gif below. I used with and without indent and in both cases, the bookmark is correctly moved with the code.

35

I also tried with an empty line between them, no problem.

Are these scenarios covering your usage? Do you have any more info to share?

need more empty line.
before the empty line must have indent.
1

Hm... I knew this wasn't strange to me...

This error was introduced by an update in VS Code (don't remember exactly when). I thought I had fixed but instead I just _turned off_ 😢 . That update introduced a new setting editor.trimAutoWhitespace, that you must set to false in order to temporarily fix this.

Hope this helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LighghtEeloo picture LighghtEeloo  Â·  6Comments

919Studios picture 919Studios  Â·  4Comments

ashmckenzie picture ashmckenzie  Â·  5Comments

eamodio picture eamodio  Â·  5Comments

LukasPolak picture LukasPolak  Â·  4Comments