When a Devfile has multiple projects, only the first one is opened in VS Code #22280
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.
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
The text was updated successfully, but these errors were encountered: