alefragnani / vscode-bookmarks

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

Bookmarks not working on big files(?) #553

Closed emarsk closed 1 year ago

emarsk commented 1 year ago

If I try to toggle a bookmark in a very large file (>1,200,000 lines, 78MB), I get the error "Open a file first to toggle bookmarks".

The size of the file is the only feature I can think of that is different from the other text files in the same folder.

If there's an unfixable technical limitation in place, it would be desirable to at least see an appropriate error message.

alefragnani commented 1 year ago

Hi @emarsk ,

Yes, this is a known VS Code limitation, which makes large files invisible to extensions. The first issue was #31.

Unfortunately, there is nothing I can do in the extension to avoid/detect such situation, because VS Code itself does not tell the extensions that an unsupported file is being loaded. So, we will have to wait until VS Code team expand/remove such limitation.

Hope this helps