tintinweb / vscode-inline-bookmarks

Customizable inline Bookmarks for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=tintinweb.vscode-inline-bookmarks
GNU General Public License v3.0
45 stars 14 forks source link

Resolve bug in which filtering the inline bookmarks pane always fails #79

Open daniel347x opened 2 months ago

daniel347x commented 2 months ago

This code resolves the problem in which filtering the inline bookmarks pane always fails.

The cause was the filtering logic. When RegExp filters were present, they were being tested against branch nodes (i.e., the filenames), not just against the leaf nodes (i.e., the actual bookmark notes).

The current code resolves this by doing two things:

Regarding performance and correctness, in my tests, not provided here, I checked multiple bookmark types across multiple files and it worked without any glitches and very quickly for a moderate-sized workspace. With apologies, I do not have time to provide test cases for either accuracy or performance. However, the issue is resolved with this commit and the extension is now usable again.