-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 ability to defined any subfolders of a git project as workspace roots. #15347
Comments
It is relative to Go extension as well. |
It is relative to K8s extension as well. |
Looks like it's related to #13080 |
@RomanNikitenko I have created a epic: #15529 |
it is also related to bazel extension |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Is your enhancement related to a problem? Please describe.
By default, che workspaces have only 1 workspace root:
/projects
but Theia could accept multiple roots.Edit: with #17212 each git-repo/project is turned into a workspace root. So what is missing is to have a way to define 1+ subfolders of a git repo as workspace root.
A workspace root is the top folders that the user would see in the explorer. Each folder is a kind of view of a folder in the file system. See https://code.visualstudio.com/docs/editor/multi-root-workspaces (quite same behaviour in VSCode)
Some extensions are relying on workspace roots to work well.
For instance, with the vscode openshift connector extension, having multiple components in a same workspace is requiring that each component source code folder to be a workspace root.
So the user would have to set a workspace root with the command
Add folder to workspace
for each component. there are some problems:Describe the solution you'd like
Each projects defined in a workspace, would possibly have a list of folder that would be workspace roots of the Che workspace.
/projects
is the default one.would add the 3 folders
/projects/nodejs-ex
,/projects/che-quarkus-demo/quarkus-backend
,/projects/che-quarkus-demo/node-frontend
as workspace root.Of course if the user is using the command
Add folder to workspace
, the devfile of the workspace would need to be updated./projects/nodejs-ex-sunix
is not added as a workspace root because of it hasroots
array empty./projects/nodejs-ex
is added as a workspace root because it is the default behaviour if noroots
element is defined.Alternative solution
By default, set each repo of the defile as workspace root. But we would still want to support workspace root on a sub folder of a git repo.
Additional context
This is one solution to fix #15273
The text was updated successfully, but these errors were encountered: