alefragnani / vscode-bookmarks

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

[BUG] - Bookmarks vanished #538

Closed jano23 closed 2 years ago

jano23 commented 2 years ago

Version: 1.66.2 (user setup) Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977 Date: 2022-04-11T07:46:01.075Z Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.13.0 V8: 9.8.177.11-electron.0 OS: Windows_NT x64 10.0.22000

Steps to reproduce

  1. Open VSCode > open file that had bookmarks > click on the Bookmarks icon OR, use "Bookmarks: List from All Files" command
  2. No bookmarks show
alefragnani commented 2 years ago

Hi @jano23 ,

I'm sorry to hear that.

Could you provide more details?

Be aware that Bookmarks are stored per project by default, which means it stores different bookmarks data for each folder (full path) you open. If you copy the same folder to other location and open it in VS Code, the previous bookmarks are not restored, because this new folder is exactly this, a new folder. The same happens if you rename the folder (or any parent folder). VS Code will handle each folder as a separate location

Hope this helps

jano23 commented 2 years ago

projects are located locally on my C:\ drive and I haven't changed their location in years. I update VS Code as soon as they post updates. So my guess is yes, I did before they disappeared. I'm including a screenshot of the settings:

[image: Screenshot 2022-05-25 180449.jpg]

On Mon, May 23, 2022 at 8:23 PM Alessandro Fragnani < @.***> wrote:

Hi @jano23 https://github.com/jano23 ,

I'm sorry to hear that.

Could you provide more details?

  • Where the projects is stored: local, external drive or remotes (like Docker, SSH, WSL).
  • How are you bookmarks settings defined?
  • Did you update VS Code or your OS prior vanishing

Be aware that Bookmarks are stored per project by default, which means it stores different bookmarks data for each folder (full path) you open. If you copy the same folder to other location and open it in VS Code, the previous bookmarks are not restored, because this new folder is exactly this, a new folder. The same happens if you rename the folder (or any parent folder). VS Code will handle each folder as a separate location

Hope this helps

— Reply to this email directly, view it on GitHub https://github.com/alefragnani/vscode-bookmarks/issues/538#issuecomment-1135298577, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFZJ36GNNPZK64BGSVWBKDVLQVQZANCNFSM5U5JFZHA . You are receiving this because you were mentioned.Message ID: @.***>

alefragnani commented 2 years ago

I guess images are not attached when you answer using email, so I can’t see it.

Anyway, if your project are local and you didn’t change its location, I can only guess two alternatives:

  1. Something crashed bookmarks data. Its data is located using VS Code internals API (a SQLite database shared by every extension and VS Code itself).
  2. Something happened while opening the folder and the extension failed to load the bookmarks.

It the failure is happening for every project you have, I suppose option 1. If the failure is on only for some projects, I suppose option 2.

alefragnani commented 2 years ago

I'm closing this issue because no new comments has been added since my last question. Feel free to reopen/comment if the error still occurs.

Thanks for your understanding

jano23 commented 1 year ago

Thanks Alessandro,

I am going to recreate them and see how it goes from now on

On Wed, May 25, 2022 at 7:12 PM Alessandro Fragnani < @.***> wrote:

I guess images are not attached when you answer using email, so I can’t see it.

Anyway, if your project are local and you didn’t change its location, I can only guess two alternatives:

  1. Something crashed bookmarks data. Its data is located using VS Code internals API (a SQLite database shared by every extension and VS Code itself).
  2. Something happened while opening the folder and the extension failed to load the bookmarks.

It the failure is happening for every project you have, I suppose option 1. If the failure is on only for some projects, I suppose option 2.

— Reply to this email directly, view it on GitHub https://github.com/alefragnani/vscode-bookmarks/issues/538#issuecomment-1138004056, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFZJ33RN2JSWYT363PUZLLVL26VJANCNFSM5U5JFZHA . You are receiving this because you were mentioned.Message ID: @.***>