API for getting the path to the current *.code-workspace file #49452
Labels
api
feature-request
Request for new features or functionality
workbench-multiroot
Multi-root (multiple folders) issues
I maintain the Projects+ extension, used for switching between projects quickly.
I would like to add support for saving the current multi-root project in the extension configuration.
I could do this by saving the paths to all the roots and then opening a new window with them in it, like this basically, but this way workspace-specific settings are basically discarded because this will be considered a new workspace.
I could ask my users to manually write the path to their
*.code-workspace
files into the extension configuration, but this can be tedious and it should be automated.If there was an API for retrieving the path to the current
*.code-workspace
file I could implement this thing optimally. Can we have one?A similar extension to mine, Project Manager, is amongst the most downloaded in the whole marketplace, and it could benefit from this too. (/cc @alefragnani)
The text was updated successfully, but these errors were encountered: