Skip to content
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

Add support for multi-root workspaces #1070

Closed
dnmiller opened this issue Sep 27, 2017 · 8 comments
Closed

Add support for multi-root workspaces #1070

dnmiller opened this issue Sep 27, 2017 · 8 comments
Labels
Feature Request fixed Check the Milestone for the release in which the fix is or will be available. Language Service

Comments

@dnmiller
Copy link

There's a mention by @bobbrow at the bottom of #368 that multi-root workspaces will be added in a future release, but I couldn't find an open issue to track its progress.

This would be a great feature. Apologies if there's already an issue for this.

@bobbrow
Copy link
Member

bobbrow commented Sep 27, 2017

We opened an issue in our internal database, but didn't mirror it here. I will link this issue to that one in our backlog sync tool.

@bobbrow bobbrow added the fixed Check the Milestone for the release in which the fix is or will be available. label Nov 8, 2017
@bobbrow bobbrow closed this as completed Nov 13, 2017
@lmapii
Copy link

lmapii commented Dec 15, 2017

has/will this feature be released? is there any information on how it'll look like already?

@sean-mcmanus
Copy link
Collaborator

Yes, it was released in November. We close all fixed issues after they're released. See https://blogs.msdn.microsoft.com/vcblog/2017/11/09/visual-studio-code-cc-extension-nov-2017-update-multi-root-workspaces-support-is-here/ . Let us know if you have any questions or hit any bugs.

@lmapii
Copy link

lmapii commented Dec 15, 2017

ah i see - thanks! my approach is typically quite different - a multi-folder project in my case means that i have to drag various folders into my workspace (e.g., common self-developed units, third party libraries, project specific code) which depend on one another - but do not have the same root folder and thus need to be included like this. e.g., my unit A needs an include from a third party library.

my typical approach is to setup a workspace per project. any project includes multiple folders, e.g., a certain third party library (that might also be used in another workspace). BUT:

project specific files need the includePath/browse settings from this library, i.e., i need to be able to have these resolutions in all the folders added to the workspace. is there a possibility for a "workspace" (!= folder) configuration such that i actually "merge" those?

i can elaborate on this if it helps.

@sean-mcmanus
Copy link
Collaborator

@lmapii I don't understand what you're asking. Are you asking about getting the C/C++ extension to be setup correctly or something to with VS Code itself? You can do an Edit Configuration to set the includePath and browse.path settings on a per workspace folder basis. Are you asking for workspace settings? We currently only have c_cpp_properties.json settings for each workspace root/folder and there's no shared one per user or per workspace. We have plans to move the c_cpp_properties.json settings into the normal settings.json, so it would be available per user/workspace/folder.

@lmapii
Copy link

lmapii commented Dec 15, 2017

it is about the C/C++ extension and i think it is exactly what you are planning to do: moving the c_cpp_properties.json to the normal settings.json > which is also available per workspace.

this would allow me to use the includePaths/browse from one workspace folder A in another workspace folder B, i.e., modules from workspace folder A can use includes from workspace folder B. is there an issue# for that i could subscribe to?

@sean-mcmanus
Copy link
Collaborator

One existing issue is #1229 and another is #368 .

@lmapii
Copy link

lmapii commented Dec 15, 2017

subscribed to #1229, looking for updates there. thanks :) !

@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature Request fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
None yet
Development

No branches or pull requests

5 participants