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 disappear when VS Code is reopened #562

Open PeterMacej opened 1 year ago

PeterMacej commented 1 year ago

Type: Bug

I searched all similar issues and I think mine is the same as #538.

To reproduce:

  1. Create a simple file c:\test.txt with a single line "abc". It's a standalone file, not a part of a project, folder, or workspace.
  2. Toggle a bookmark on this line. The bookmark is correctly created and works fine.
  3. Close VS Code.
  4. Open the file in VS Code. The bookmark is missing.

Expected behavior: The bookmark should be visible in step 4.

I don't use Pretier. I did some tests and inspected the VS Code storage with DB Browser for SQLite. After I closed VS Code, the bookmark data was still present in \Roaming\Code\User\workspaceStorage\1666599132300\state.vscdb:

bookmark data

When I re-opened the file in VS Code and then closed VS Code, the data was removed:

no bookmark data

So the problem occurs when VS Code or the file is open.

Extension version: 13.3.1 VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No

mjoe67886 commented 8 months ago

Yeah I'm getting the same issue I thought I was deleting accidentally with the clear function but I just reopened and my bookmarks are gone