-
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
Enhancement: When a workspace has no projects show welcome buttons in the file explorer #19645
Comments
@benoitf For example:
As result the user can see in projects tree: I think we could consider another way to resolve the problem related to workspaces which starts from a devfile without projects. For example, we could automatically create a folder in Another way which I see - we could display two buttons in the projects tree view for such use case:
VS Code has something similar if there are no projects: But I think we should:
So, I have described above 2 ways how we could handle the use case:
Any other ideas are welcome! |
hello, I'm unsure about the dummy folder just to not have a /projects as project root folder. It looks more confusing to me. About actions yes it's helpful as well. The idea is really to not see a blank tree explorer because today it's that you don't know what to do to see files, explorer being empty (so opening /projects was a quick workaround) About Open folder, maybe users want to still open /projects and clone there as well. Forcing to use create may be a problem as well. Also create does not imply to open it after. |
The solution with 2 buttons sounds well to me. |
Hello! I described in the comments above my concerns related to:
Now I'm trying the case when two buttons are displayed for a user:
For the I haven't worked yet on the behavior for the Please share your opinion about such behavior ( |
I'm okay with such an approach. |
AFAIK for cloning with ssh, user is prompted to upload ssh key if it's not there. |
yes, I checked - there is some flow which should be OK for cloning with ssh. @benoitf |
@RomanNikitenko yes, most of people want to open files that are inside /projects (that are already auto-added) And if they start from blank devfiles, etc then it's fine to ask them to create a new folder Maybe I would add the clone first (in VS code user may have tons of repositories cloned on its local filesystem while in che probably you may want to start by importing an existing project) Maybe we should have also a terminal widget open on the user container as well (if there is one) but it's a different story not related to the current issue |
Is your task related to a problem? Please describe.
Today, If I open CheTheia with a devfile without any projects I've a empty project explorer

I can't create new files until I open/add
/projects
as workspace folder for example so it may be hard to figure out for newcomersDescribe the solution you'd like
If there is no project, add PROJECT_ROOT as default workspace folder
Describe alternatives you've considered
N/A
Additional context
related to multi-root
https://issues.redhat.com/browse/CRW-2051
Release Notes Text
Before this update, when a workspace contained no projects, the Che-Theia editor was displaying an empty file explorer.
For the user it was not obvious how to create a file or clone a repository.
With this update, when a workspace contains no project, the Che-Theia editor displays Open Folder and Clone Repository buttons in the file explorer.
The text was updated successfully, but these errors were encountered: