L13 / vscode-projects

Manage your workspaces and projects in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=L13RARY.l13-projects
Other
18 stars 1 forks source link

Way to bulk modify or access JSON for saved projects #46

Closed kaleidawave closed 1 year ago

kaleidawave commented 1 year ago

During some spring cleaning I renamed and moved my root folder, which now means all the projects I have saved now have incorrect paths:

image

Is there a way to access the internal state in something like a JSON format so I can bulk modify these. Automatic file lookup doesn't quite work as I have too many folders, so prefer to do it manually. Thanks

hacknug commented 1 year ago

Select the Projects tab on your sidebar and click on the cog icon shown in the image. You'll get the json file you're looking for and be able to edit everything from there.

image
kaleidawave commented 1 year ago

Hmm I don't seem to have the cog or refresh buttons? Only this dropdown

image

L13 commented 1 year ago

Hi, where is no official way to import/export the internal state, but the extension has commands for testing in dev mode. These commands allow to save/load the state as json. To activate this mode you have to checkout the repository, install all node modules, build the project and launch the dev mode in vscode. Now you have access to five commands for backup and restore. In the command palette they start all with "Developer:"

L13 commented 1 year ago

Select the Projects tab on your sidebar and click on the cog icon shown in the image. You'll get the json file you're looking for and be able to edit everything from there.

@hacknug I think you follow the wrong github repo. The extension you mentioned seems to be Projects+. https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-projects-plus

kaleidawave commented 1 year ago

Awesome, managed to fix it