You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The forward looking roadmap for multi root support. Work planned for the current iteration is on the corresponding iteration plan.
October
Enable extensions available on the Market place
Analyze most popular extensions that use the rootPath and workspace settings
Engage, file issues and contribute PRs as appropriate
Reacted by Damian, Yassine MADDOURI, Peter Petrov, Jérémy Nouhaud, Cesar Aaron, Mahmoud Saada, Jim, Yukai Huang, Vladimir Borodin, Edwin Ramirez Congote and 34 more
Reacted by Daniel Imms, Chris Gibb, Wang Weixuan, Justin, Tyler Egeto, Gulshan, Damian, Yassine MADDOURI, Peter Petrov, Benny Wydooghe and 25 more
Felix Becker (@felixfbecker) we first want to explore how mutli root workspaces affect our own extensions that run as language servers (see list above) and then decide whether we want to pull the concept into the LSP. For the LSP we need to consider how big the impact will be for other clients and if we not raise the bar too high for language servers to implement that. It is indeed easy for language server that are single file (like html, json, eslint) but get more complicated for language server that are project based (like TypeScript and tslint for example) and gets very complicated for language server that use libraries that have a workspace folder === root project concept (like Eclipse JDT does).
Just as a side node: it is even not easy for TS although TS walks the parent chain to find a tsconfig.json file. If a folder X requires TS 2.2 and a folder Y requires TS 2.4 and they are in a multi root setup then we still need to start 2 servers. So it might be and option to always start a language server pre workspace root folder even in a multi root setup. This is especially true since it would ease resource management as well since the folder setup will be dynamic and not a static property.
Dirk Bäumer (@dbaeumer) so for the time being, you will just spawn a language server per folder? Just so the implications are clear, that means jump-to-definition etc. will not work across the additionalFolders for at least PHP (which is fine if you want to accept that as an initial trade-off).
Felix Becker (@felixfbecker) this is not what I was trying to say: we need to understand the pros and cons of both approaches and then decide what we will do.
Commenting on our example I think we need to understand the different use case:
I have a multi folder setup were folder A and B have no dependencies
I have a multi folder setup were folder A and B do have a dependency. IMO this needs some explicit project dependency description and should work in a single folder setup as well. We can't not simply assume that two folders pulled together into one workspace do have a dependency on each other.
IMHO loading project A and then B or loading B and then A, should not matter as they remain independent. Which settings are used should depend on the concept of "active" project, much like it was in Visual Studio, visually indicated by showing the root folder name in bold, but could be anything. Switching between projects meant context switching all active settings, for debugging, everything the project contains, as if it was the only project loaded. The only difference is that you see them both on the screen and can switch between them (so both should be loaded in memory to make context switching as fast as possible, including which plugins are active, but settings that are same in A as B obviously do not switching, such as plugins that are used for both A and B).
To make project A and B dependent, an overriding and optional settings file should be stored that effectively becomes project C, but has references to A and B and can contain shared settings that override those in A and B, including plugins and themes, which will make context switching faster because these are not context switched (loaded/unloaded) from A or B. Settings not overriden in C, again are taken from the active project A or B.
When sharing these multiple projcts, only file C needs to be shared, with references to the github repository. when C is loaded and sub projects are missing from filesystem, user is asked if it wants to fetch these (in a list with checked checkboxes, allowing users to uncheck those they do not want to fetch), and targetting either sub folder at the root of the C project by default, or let users browse for an alternative location per project.
Creating an empty folder C and adding project folders A and B and then opening code in C should be enough to open A and B without any dependencies, but making overriding settings, perhaps by importing and merging those of A and B, requires saving as settings in folder C. When starting code from within subfolder A or B will only open that folder as one would expect. A and B remain independent and their dependency is only known by VisualCode based on settings in C. Projects A and B need not be in subfolder C, but then they must be added to C settings via VisualCode UI or manually in C settings.
Cool - will give that a spin! One thing Benjamin Pasero (@bpasero) - In the 1.14.0-insider build I see "Add Root Folder" whereas the first release notes image shows "Add Folder to Workspace..." - might confuse folks.
Borek Bernard (@borekb)Benjamin Pasero (@bpasero) regarding what is on the roadmap (this issue) and what is on the August iteration plan (#32043). I did some plan "refactoring", the work that is planned for August is now on the August iteration plan . The roadmap captures the work planned for future iterations. Sorry for the confusion.
I've got one edge-case to consider for UI implementation - the current stable release seems to break down when you have LOTS of git subfolders. I know this is probably very much an edge-case but it's something I hit whilst working on a genuine project just now.
Here's a little test script for you 😃 which also shows the current resulting UI (from v1.16.1).
I'm not currently sure where to write this, so I think this place is as good as any.
I, along with most people have received multi-root workspaces in the 1.18 october update, and this feature is probably one of the best things to happen to my workflow in a very long time It has taken the amount of vscode windows I need to run from 4-5 to just one, and with it all the time saved with switching between them.
On behalf of myself and all the other people out there who this has helped, I would like to take the time to thank the vscode team, and everyone involved for the support of multi-root workspaces. I know it has been a colossal effort, and this message is just to let you know that it has been much appreciated.
Cheers!
Reacted by Benny Wydooghe, Benjamin Pasero, Galen Dai, zhangjx, Peter Petrov, Theo Felippe, Edwin Ramirez Congote, Gregory Roussac, Ioannis Kappas, Matt Vinall and 1 more
Reacted by Edwin Ramirez Congote and Matt Vinall
Reacted by Julio Cezar Silva, Mahmoud Saada and Jordan W
Activity
felixfbecker commentedon Jun 11, 2017
I don't see LSP support on that list, what is the plan here?
Context #396 (comment)
dbaeumer commentedon Jun 12, 2017
Felix Becker (@felixfbecker) we first want to explore how mutli root workspaces affect our own extensions that run as language servers (see list above) and then decide whether we want to pull the concept into the LSP. For the LSP we need to consider how big the impact will be for other clients and if we not raise the bar too high for language servers to implement that. It is indeed easy for language server that are single file (like html, json, eslint) but get more complicated for language server that are project based (like TypeScript and tslint for example) and gets very complicated for language server that use libraries that have a workspace folder === root project concept (like Eclipse JDT does).
Just as a side node: it is even not easy for TS although TS walks the parent chain to find a tsconfig.json file. If a folder X requires TS 2.2 and a folder Y requires TS 2.4 and they are in a multi root setup then we still need to start 2 servers. So it might be and option to always start a language server pre workspace root folder even in a multi root setup. This is especially true since it would ease resource management as well since the folder setup will be dynamic and not a static property.
felixfbecker commentedon Jun 12, 2017
Dirk Bäumer (@dbaeumer) so for the time being, you will just spawn a language server per folder? Just so the implications are clear, that means jump-to-definition etc. will not work across the
additionalFoldersfor at least PHP (which is fine if you want to accept that as an initial trade-off).dbaeumer commentedon Jun 12, 2017
Felix Becker (@felixfbecker) this is not what I was trying to say: we need to understand the pros and cons of both approaches and then decide what we will do.
Commenting on our example I think we need to understand the different use case:
fipda commentedon Jun 13, 2017
IMHO loading project A and then B or loading B and then A, should not matter as they remain independent. Which settings are used should depend on the concept of "active" project, much like it was in Visual Studio, visually indicated by showing the root folder name in bold, but could be anything. Switching between projects meant context switching all active settings, for debugging, everything the project contains, as if it was the only project loaded. The only difference is that you see them both on the screen and can switch between them (so both should be loaded in memory to make context switching as fast as possible, including which plugins are active, but settings that are same in A as B obviously do not switching, such as plugins that are used for both A and B).
To make project A and B dependent, an overriding and optional settings file should be stored that effectively becomes project C, but has references to A and B and can contain shared settings that override those in A and B, including plugins and themes, which will make context switching faster because these are not context switched (loaded/unloaded) from A or B. Settings not overriden in C, again are taken from the active project A or B.
When sharing these multiple projcts, only file C needs to be shared, with references to the github repository. when C is loaded and sub projects are missing from filesystem, user is asked if it wants to fetch these (in a list with checked checkboxes, allowing users to uncheck those they do not want to fetch), and targetting either sub folder at the root of the C project by default, or let users browse for an alternative location per project.
Filesystem could look like this:
Creating an empty folder C and adding project folders A and B and then opening code in C should be enough to open A and B without any dependencies, but making overriding settings, perhaps by importing and merging those of A and B, requires saving as settings in folder C. When starting code from within subfolder A or B will only open that folder as one would expect. A and B remain independent and their dependency is only known by VisualCode based on settings in C. Projects A and B need not be in subfolder C, but then they must be added to C settings via VisualCode UI or manually in C settings.
mvestergaard commentedon Jun 15, 2017
Is the concept of a project file part of this?
Meaning a file you can open which loads multiple predefined folders. This would make it easier when working in teams.
bpasero commentedon Jun 28, 2017
This will continue in July. A first version of release notes for the work done in June is available from https://github.com/Microsoft/vscode-docs/blob/vnext/release-notes/v1_14.md#multi-root-workspace-preview
jlk commentedon Jun 28, 2017
Cool - will give that a spin! One thing Benjamin Pasero (@bpasero) - In the 1.14.0-insider build I see "Add Root Folder" whereas the first release notes image shows "Add Folder to Workspace..." - might confuse folks.
13 remaining items
egamma commentedon Aug 24, 2017
Borek Bernard (@borekb) Benjamin Pasero (@bpasero) regarding what is on the roadmap (this issue) and what is on the August iteration plan (#32043). I did some plan "refactoring", the work that is planned for August is now on the August iteration plan . The roadmap captures the work planned for future iterations. Sorry for the confusion.
boyvinall commentedon Sep 25, 2017
I've got one edge-case to consider for UI implementation - the current stable release seems to break down when you have LOTS of git subfolders. I know this is probably very much an edge-case but it's something I hit whilst working on a genuine project just now.
Here's a little test script for you 😃 which also shows the current resulting UI (from v1.16.1).
https://gist.github.com/boyvinall/cd190baf1871d187f927e9b6093570c5
Ideally, we should not squash the repo name, and we should make the window scrollable.
PS. Really appreciate the great job you guys are doing.
DonJayamanne commentedon Oct 17, 2017
I've come across a possible issue with multi-root workspaces. Details of the issue can be found here Updates to workspace settings not available immediately in multi-root workspaces.
bpasero commentedon Oct 20, 2017
I am closing this issue as the work on helping extensions to adopt multi-root is in progress since a couple of days. We are fixing the issues reported (thanks for that!) and keep the documentation updated: https://github.com/Microsoft/vscode/wiki/Extension-Authoring:-Adopting-Multi-Root-Workspace-APIs
Multi root will be enabled for our upcoming stable release early November 🙌
tylerjwatson commentedon Nov 9, 2017
I'm not currently sure where to write this, so I think this place is as good as any.
I, along with most people have received multi-root workspaces in the 1.18 october update, and this feature is probably one of the best things to happen to my workflow in a very long time It has taken the amount of vscode windows I need to run from 4-5 to just one, and with it all the time saved with switching between them.
On behalf of myself and all the other people out there who this has helped, I would like to take the time to thank the vscode team, and everyone involved for the support of multi-root workspaces. I know it has been a colossal effort, and this message is just to let you know that it has been much appreciated.
Cheers!
hgl commentedon Nov 19, 2017
in a multi-root workspace, where does
${workspaceRoot}point to? Are there variables that point to each individual root?dbaeumer commentedon Nov 20, 2017
The point to the root which contains the file that uses the variable.
DonJayamanne commentedon Nov 20, 2017
Dirk Bäumer (@dbaeumer), if that's the case wouldn't this have the same as the token ${workspace folder}
dbaeumer commentedon Nov 21, 2017
Yes ${workspaceFolder} is the replacement for ${workspaceRoot} which is now deprecated.