-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Support VS Code Multi-root Workspaces #149
Comments
@alefragnani let me know if you have any questions are want to discuss multi-root. The related wiki page for help is: https://github.com/Microsoft/vscode/wiki/Extension-Authoring:-Adopting-Multi-Root-Workspace-APIs |
A basic approach is ready. Since the extension purpose is to Open Folder, and a Workspace is, in essence, a list of folders, I think that simply using The basic idea is: the user uses the first folder in the workspace, as its main folder. And the extension uses this main folder just like it would use the original
The bad in this case: the extension does not open the workspace when the project is selected, but only the first folder of that workspace. What I think that should be a better approach: The To do this, a new |
@alefragnani it seems to me that for the basic folder scenario using Unfortunately today we do not provide additional APIs for extension authors to know e.g. the location of the workspace file. We have microsoft/vscode#35407 opened to track this request. |
@bpasero that's exactly what I'm suggesting 👍. That's why I decided to keep with the basic scenario, for now. It's good to know that you already have a request to provide aditional API. I will subscribe on that to be notified when available. Thanks for you help |
It's done. I will wait until the multi-root feature arrives in stable channel. |
Just stumbling in here because I was interested in the feature, looks like multi-root folders has landed in Stable 🎉 microsoft/vscode#396 (comment) |
It's almost there 👍 |
Since 0.23.0 this extension can handle Multi-root workspace. How is this supposed to be used ? |
Hi @ClementVidal , When I created the file structure, the initial idea was to use the It appears that you can open multiple folders at once via command line, but I didn't test it via API (extension). Maybe, if this works, I would be able to mimic the workspace creation on the fly. There is also #121 which asks to use the As you can see in my first comment, this is just the basic approach for multi-root workspaces. I also don't know if the decision to use just the first folder as the project is good, or if I should expand to any folder in workspace (still waiting for feedback). I sill want to add, at least #151, but it depends on new VS Code API. Hope this helps |
Any chance this feature is available or incoming? I'd love to be able to open my project and have both the project root and it's theme folders open automatically instead of having to manually add the project's subdirectories manually. |
Hi @andy-blum , do you mean #151 (Support save Workspaces as projects)? |
To be honest, I'm not super familiar with VS Code. I primarily build and theme drupal sites and would love to have a way to open up both the project root and the custom theme subdirectory, 4 folders deep My understanding is that the path variable would store an array of paths to open in the file explorer |
Your description seems like a Workspace, so yes, it's related to #151. Unfortunately, there is no API available yet in VS Code for me to save Workspaces as a Project, unless doing it manually, which I'm avoiding to do. I'll wait a little while for the VS Code team to release that, otherwise, with enough support from the community/users, maybe I'll add it manually. Hope this helps |
No description provided.
The text was updated successfully, but these errors were encountered: