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

Workspaces isolated/detached mode #137091

Closed
g13013 opened this issue Nov 12, 2021 · 6 comments
Closed

Workspaces isolated/detached mode #137091

g13013 opened this issue Nov 12, 2021 · 6 comments
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code workbench-multiroot Multi-root (multiple folders) issues
Milestone

Comments

@g13013
Copy link

g13013 commented Nov 12, 2021

vs-code workspaces are a great feature, but I think we can do better, especially because it doesn't resolve the main concern when using large or mono-repo projects.

For me the use case is simple, we have a mono-repo that is becoming fairly large, for this, we are using VSCode workspaces with multiple folders, but we noticed that it didn't solve our performance problems, also configuring the extensions as per project is not possible actually, in fact, I am not sure if vs-code loads the extensions per project or it just loads them per workspace, if it is the latest, then the extensions are loaded for projects they are not needed into, the problem becomes serious when certain extensions try to work on the entire folder tree, if I need to include the root as a workspace folder, the problem is even worse. For this, I want to be able to divide my project into multiple projects and have the possibility to configure every project in isolation, disable extensions, and have a different configuration. I know that it could become challenging for vs-code maintainers, but most of the developers work on multiple projects anyway, having the possibility to isolate every project's configuration becomes crucial.

So maybe vs-code-workspaces is not the solution for this problem, at least in the current implementation. If I had to suggest a solution I would propose an entirely different approach. Instead of loading every sub-project in one instance of vs-code, why not load multiple instances of vs-code in one workspace, an example of this would be how most of the multi-messaging applications deal with different channels/apps like in Slack:

image

The result would be something like that:

image

Or even better IMO, the projects list on the top:

image

This way every project in the workspace has its own configuration, and extensions can now be loaded as per project only.
we also simplify the file tree since now path handling becomes simpler as we are showing them relative to the currently selected project.

For the configuration, things become interesting as I can now have a configuration per project:

{
  "folders": [
    {
      "path": "root",
      // extensions could be defined also in .vscode/extensions.json ?
      "extensions": {
        "recommendations": ["bazelbuild.vscode-bazel"],
      }
    },
    {
      "path": "vscode",
      "extensions": {
        "recommendations": ["eg2.tslint", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
      }
    },
    {
      "path": "vscode-docs",
      "extensions": {
         "recommendations": ["esbenp.prettier-vscode"],
      }
    }
  ],
  "extensions": {
     // merged with project specific recommendations!
     "recommendations": ["redhat.vscode-yaml", "ms-azuretools.vscode-docker"],
  }
}

Voilà, I hope this adds another perspective and helps tackle this problem that so many developers are dealing with nowadays.

@bpasero bpasero added feature-request Request for new features or functionality workbench-multiroot Multi-root (multiple folders) issues labels Nov 13, 2021
@bpasero bpasero removed their assignment Nov 13, 2021
@byehack
Copy link

byehack commented Nov 13, 2021

See #116740

@VSCodeTriageBot
Copy link
Collaborator

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
@twanbaten
Copy link

@bpasero, I am curious to know the specific criterion as to why this request was labeled as out-of-scope. Can you elaborate?

@bpasero
Copy link
Member

bpasero commented Mar 8, 2023

#167999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code workbench-multiroot Multi-root (multiple folders) issues
Projects
None yet
Development

No branches or pull requests

6 participants
@bpasero @twanbaten @g13013 @byehack @VSCodeTriageBot and others