-
Notifications
You must be signed in to change notification settings - Fork 35
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
Open CHE_PROJECTS_ROOT
by default
#2
Conversation
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
build/scripts/entrypoint-volume.sh
Outdated
@@ -29,4 +29,4 @@ else | |||
fi | |||
|
|||
# Launch che with a custom connection-token | |||
./node out/vs/server/main.js --port 3100 --connection-token eclipse-che | |||
./node out/vs/server/main.js --port 3100 --connection-token eclipse-che --folder ${CHE_PROJECTS_ROOT} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK CHE_PROJECTS_ROOT is only available for che-server workspaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. It's PROJECTS_ROOT
for the DevWorkspace engine. I forgot about that.
I'm updating the PR...
Thanks for noticing it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think it should open the folders defined by the projects of the devfile.yaml
Here it might open the root folder which may not what we expect.
I'm fine to merge this one as it's still better than before but probably we need to do the same stuff than for che-theia where we create a .workspace file and open that .workspace file
Now it's quite easy as projects are cloned before we launch the IDE (in devWorkspace mode)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I remember, Che-Code editor is supposed to work with DevWorkspace engine only. So, I've replaced CHE_PROJECTS_ROOT
with PROJECTS_ROOT
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think it should open the folders defined by the projects of the devfile.yaml
We can add the custom folders support as one of further improvements.
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
folder to open is found at runtime
Further improvement eclipse-che/che#20870 |
Signed-off-by: Artem Zatsarynnyi azatsary@redhat.com
closes eclipse-che/che#20569