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

[FEATURE] - New **Sticky engine** #463

Closed alefragnani closed 3 years ago

alefragnani commented 3 years ago

New Sticky engine available

A new Sticky engine has been created, and will be available as the default engine starting in August 2021 release (v13.2.0).

Fixes

The new engine should fix all current open issues:

Improvements

The original engine had limitations on some areas. With the new engine, these areas are starting to be supported

Know issues

There are a few scenarios that still needs fixes and improvements, so yes, this is not a flawless solution (and probably never will).

As noted above, formatters and multi-cursors are finally being supported so, real world testing could find issues. Dealing with empty lines still has some corner cases, and I still have some work to do.

How to Use

As noted, the new engine will be turned on by default, so you don’t have to do anything.

But, if you use formatters and have bookmarks.useWorkaroundForFormatters turned on, I would ask you to turn if off, to validate the new engine with your formatter.

How to Turn it Off

A new setting was created, so simply turn it off:

    “bookmarks.experimental.enableNewStickyEngine”: false

You will return to the legacy engine.

How to Report Issues

Issues related to Sticky are really tricky. Not only to fix, but also to detect what happened. Try to detect/create a step by step instructions to reproduce the issue, and if possible, record a video/gif. Doing so, will be easier for me to reproduce the error.

How to Report Success

Just comment/react here, so I will know if the effort of the new engine was worth it.

Skura23 commented 2 years ago

Finally. 👍 PS: seems still not working with beautify, I uninstall it and use prettier now. This one works well with bookmark it seems.