Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[che-dev] Che-Theia multi-root workspaces autodetection

Hello,

As you may already know, recently we've added autodetection of multi-root workspaces in Che-Theia [1].
It means that instead of opening a single-root workspace with /projects directory as a root folder, now each project, found in a Devfile, Che-Theia will add as a workspace folder.
It should fix a lot of use-cases where a project folder is expected to be a workspace root folder. Just some of them, which I'm aware of:
- go projects
- OpenShift Connector Che Plug-in
- Kubernetes Che Plug-in

Please, also find the demo of the feature prepared by @Roman Nikitenko [2].
If you are not aware of what the multi-root workspaces are, please find the quick introduction in [3].

This is quite a big change as it affects several Che-Theia areas, like debugger, settings, terminal, etc.
We decided not to turn it on by default yet, but make it available with a feature toggle in a Devfile.
To enable multi-root autodetection, just add the following attribute to your Devfile:

attributes:
 multiRoot: 'on'



We would be glad to get your help in testing it. You can test it in several ways:
- if you're aware of some use-cases that depend on multi-root mode, please check it
- if you work with the go projects regularly - I believe you know how to test it 😉
- if you are dogfooding Che/CRW - just put a couple of lines in your Devflie to turn the multi-root mode on
Note, multi-root autodetection feature is going to be released in Che 7.27.0 this week. But you can already use it today by switching to Che-Theia:next version.

Your feedback is highly appreciated. You can provide it by replying to the mailing thread or through the usual channels [4], [5].
Thank you in advance for your participation! 🙏


To enable the multi-root mode gradually, I propose the following approximate schedule:
- Che 7.27 - multi-root mode is off by default, and can be enabled with the feature toggle in a Devfile.
- Che 7.28 - we enable the multi-root mode for all Devfiles in the Che Devfile Registry, if no critical issues found.
Probably, the HappyPath tests should be adapted as well. It should require just minor modifications.
- Che 7.29 - multi-root mode is on by default for all workspaces, and can be disabled with the feature toggle in a Devfile.
- Che 7.30 (CRW 2.9) - multi-root is the only mode, no feature toggle anymore. It may be postponed if we get more issues to fix.

If some critical issues come while people use the feature, we'll fix it in Che 7.29.
Let me know if you have any questions or any concerns about this schedule.

@Florent Benoit @Mario Loriedo @Eric Williams I'd like to know your opinion about enabling multi-root mode for all Devfiles in Che Devfile Registry, in Che 7.28.

Thanks!

[1] https://github.com/eclipse/che/issues/17212
[2] https://www.youtube.com/watch?v=cSQ5LUfUN1w

Back to the top