-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bookmarks.json missing #237
Comments
Hi @Ba-2 , The But, if you have a multi-root project, this setting is not supported, yet, so it will always be saved in VS Code internals. Just out of curiosity, why do you need access to Hope this helps |
Thanks Alessandro. I moved some files between folders and I find the bookmarks I saved before the move missing. I thought I'll modify the path in the bookmarks.json if I could find where it is located. I tried checking the VSCode internals Local Storage, and I couldn't find any files listed there. |
Oh, I see. Well, the extension will ignore the missing files, and will not show/update the bookmarks from files that you moved/deleted/renamed, unfortunately. I think the Hope this helps |
Thanks. I'll give that a try. |
@alefragnani |
Unfortunately not. There is no command for that. The Bookmarks are stored separately for each workspace by VS Code, and one can’t access the other. There is an open issue #287 , asking for a global approach for bookmarks, which could partially fit your need. Why partially? Because you pointed out remote projects, and I have the feeling that remotes wouldn’t be supported, specially because the connection would depend on the remote extension/protocol itself, not the Bookmarks extension. If #287 is what you are looking for, please upvote the issue, so I’m able to see how required the feature is. Hope this helps |
I like that idea! But it will be another option, not a replacement for current mechanism. So the data buried in VS Code internals kind of still worries me. Will it stay there forever? Or maybe I should just forget about it) |
Yes, an option, not a replacement mechanism. Out of curiosity, why are you worried about the data? Performance concerns, security concerns? Other concerns? |
I guess all of that. But most of all is having something beyond my control) |
Well, the way the Bookmarks extension stores its data/state is the same way not only other extensions do that, but VS Code itself. In fact, is the way VS Code proposes to do, via its APIs. In the end, if you have concerns about that, you may have concerns with VS Code itself too. Maybe, in this case, you should use the Portable Mode. Every VS Code data will be under your control. But yet, separated on each workspace, as every other extension that stores info about the workspace. Also, VS Code internals are SQLite databases so, you could create a shell script and clear every workspace once, and switch the extension settings to store bookmarks in workspace. Then, the bookmarks will be under your control in the workspace. Another alternative would be not store bookmarks between sessions, so whenever you close VS Code, the bookmarks are gone. If that's a solution for you, feel free to open a new issue requesting that. Hope this helps. |
Hi,
I couldn't find bookmarks.json either in my roaming directory or in my workspace directory.
I'm using VSCode in Windows, and have a workspace with multi-root folders.
Please let me know where my bookmarks.json is stored.
The text was updated successfully, but these errors were encountered: