-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Monolithic structure, multiple project settings #32693
Comments
Supporting folder settings at any level is a good idea and is similar to editor config. FYI Currently we are working on a multi root workspace where you can have multiple root folders. In this case settings under each root folder are applied to the resources under the respective folder (just as you mentioned). But all such folders should be root folders (small-project1, small-project2). This feature is available only in insiders. See #28344 for more details. Please close this request, if multi root workspaces full fill your requirements |
Thank for the reply, I am aware of the progress in this area, but if you
have a monolithic repo with multiple small projects inside that lives on
the different levels on the filesystem and you add the root of the repo as
a root in a multi root workspace, and then you add folders from within the
project root to appear at top level, it will possibly break the experience
of quick open, where the same file would appear multiple times, the same
goes for search, or I would have to manually exclude the folders that has
been added as a workspace roots from the project root's file system.
I think the experience would be a lot nicer if VSCode could handle
multiple. vscode roots and make them apply to their respective sub trees.
It would really shine if it could pick up on launch.json as well so I could
choose the list of available launch profiles based on the active file in
the editor.
On Mon, Aug 21, 2017, 4:45 PM Sandeep Somavarapu ***@***.***> wrote:
Supporting folder settings at any level is a good idea and is similar to
editor config.
FYI Currently we are working on a multi root workspace where you can have
multiple root folders. In this case settings under each root folder are
applied to the resources under the respective folder (just as you
mentioned). But all such folders should be root folders (small-project1,
small-project2). This feature is available only in insiders. See #28344
<#28344> for more details.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32693 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABXSZo-X_5X-4cbuz5TDVua3vLeUnfREks5saZf_gaJpZM4O50vl>
.
--
Med venlig hilsen / Best regards
Brian K. Christensen
|
I raised a case that I think covers this (but also a bit more) at #45399. This extends to more than just settings, but also launch configs/etc. |
You're right it just extends to multiple |
I have landed in a similar situation. Is this resolved in the latest version? |
Unfortunately is still experience exactly the same as stated in the issue
description.
Med venlig hilsen / Best regards
Brian Kejlberg
man. 21. jan. 2019 12.07 skrev Shridhar Kalagi <[email protected]>:
… I have landed in a similar situation. Is this resolved in the latest
version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#32693 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABXSZkEZtHKYnFb_u4V2HUk-cFnRWYYvks5vFZ9ggaJpZM4O50vl>
.
|
Is this in the backlog of issues to be fixed? Any workaround till then? |
Any update on this? Still would be a really helpful feature! |
Internal Trackingdevdivcsef 412378 |
@superherointj You can already do that in workspace, just goto the extension page and click "Enable (Workspace)" |
So, it's still 2023 and this feature is still pending for an editor, like vs code? Wow. Just wow. |
You could ask for a refund. |
Can someone please ask ChatGPT to fix this issue? |
Please avoid noise (push back and joke). It notifies subscribers. Like this is important. And actually isn't. |
Meta notes: Possibly/loosely related:
Related (some loosely) on Stack Overflow:
|
I want to specify another usecase for this is the glob based properties like Readonly. For example, I want all Now my folder would look like this:
When working, I would open |
This has been open for 6 years now, can we please get some support here? Even if it's only in the insiders or nightly builds to start. This is a crucial feature that nearly every other tool supports. VS Code is the foundation for most web development environments and is used by teams across many types of projects. Having support for monorepos and opening subdirectories instead of the root of the monorepo(which often is very large and uses more resources than you need) would allow for a truly amazing experience standardizing settings across a monorepo for teams of developers. Would something like this be possible do do in an extension if Microsoft doesn't want to add this for whatever reason? |
This is also a blocker for Rust projects where a workspace is used and some workspace members have different compilation targets. Setting |
The vscode multi-root workspaces seem to achieve only the most minimal parts needed of a proper workspace; in which you combine multiple paths and give them a single governing settings object. I'll give an example of why this is useful for myself and my team. I work in automotive and a lot of our code that deals with various CAN vehicle protocols have some associated test suites that exercise the state machines we either implement or interact with. To facilitate this a lot of code is shared and it simply isn't an option to break it into a bunch of tiny repos with separate builds. The workflow we have with CMake, Cmake presets and our toolchains all living in a single cohesive depot workspace saves us enormous amounts of time and energy. And probably the best part, is that the opportunity cost of properly modularizing code is almost null. Our depot is a single Cmake build which targets embedded and desktop builds using an extensive library of cmake presets which provide concrete toolchain configurations and properly configure helpful things like build caches. To echo what @georglauterbach also said, this isn't unique to C++ related projects, and we're also exploring some of the new possibilities with Rust and so we'd love to be able to lean on a proper |
Just found this issue. Here you have another great usecase: |
Bump, this would be really helpful. |
I see a lot of issues that were closed as duplicates of this one, but I don't think the original post in 2017 actually captures some of those closed issues. For instance, does this issue capture the following use case?
|
Another common use case are git submodules. They are always sub-directories of a project. Right now the only solution is to open it in a separate window (multi-root workspace makes it too confusing because the directory exists twice in the workspace). |
I was wondering if it is possible for VSCode to pick up on multiple
.vscode/settings.json
For instance if you are working in an monolithic environment with multiple smaller projects inside it, and each have their own
.vscode/settings.json
.Can VSCode pickup on that, and apply the settings from the smaller projects
.vscode/settings.json
to their subtree and descendant files?Wanted effect:
monolithic-project/small-project1/.vscode/settings.json
applies tomonolithic-project/small-project1
and all descendant files.monolithic-project/small-project2/.vscode/settings.json
applies tomonolithic-project/small-project2
and all descendant files.The text was updated successfully, but these errors were encountered: