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

When a Devfile has multiple projects, only the first one is opened in VS Code #22280

Closed
l0rd opened this issue Jun 11, 2023 · 0 comments
Closed
Assignees
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.

Comments

@l0rd
Copy link
Contributor

l0rd commented Jun 11, 2023

Is your enhancement related to a problem? Please describe

When a devfile has multiple projects, only the first is shown in VS Code explorer sidebar at startup. Note that the projects are cloned and available, it's just that they are not automatically added in VS Code.

Describe the solution you'd like

VS Code should show all the projects. A proposed solution is to generate a VS Code workspace file at startup.

Describe alternatives you've considered

A workaround is adding a workspace file in the git repository and reference its path in the environment variable VSCODE_DEFAULT_WORKSPACE in the devfile:

schemaVersion: 2.2.0
(...)
components:
- name: dev-tools
  container:
    (...)
    env:
    - name: VSCODE_DEFAULT_WORKSPACE
      value: "/projects/che-demo-app/che-demo.code-workspace"

Additional context

No response

@l0rd l0rd added the kind/enhancement A feature request - must adhere to the feature request template. label Jun 11, 2023
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jun 11, 2023
@l0rd l0rd added area/editor/vscode Issues related to the Code OSS editor of Che severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants