Skip to content

Open CHE_PROJECTS_ROOT by default - #2

Merged
azatsarynnyy merged 2 commits into
mainfrom
default-folder
Nov 30, 2021
Merged

azatsarynnyy merged 2 commits into
mainfrom
default-folder

Conversation

@azatsarynnyy

@azatsarynnyy azatsarynnyy commented Nov 30, 2021 •

Copy link
Copy Markdown
Member

Signed-off-by: Artem Zatsarynnyi [email protected]

closes eclipse-che/che#20569

Signed-off-by: Artem Zatsarynnyi <[email protected]>
@azatsarynnyy
azatsarynnyy requested a review from benoitf November 30, 2021 11:44
Comment thread build/scripts/entrypoint-volume.sh Outdated

# 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}

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member Author

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!

@benoitf benoitf Nov 30, 2021 •

Copy link
Copy Markdown
Contributor

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)

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member Author

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 <[email protected]>
@azatsarynnyy
azatsarynnyy enabled auto-merge (squash) November 30, 2021 16:46
@azatsarynnyy
azatsarynnyy merged commit 2c892f4 into main Nov 30, 2021
@azatsarynnyy
azatsarynnyy deleted the default-folder branch November 30, 2021 16:53
benoitf added a commit that referenced this pull request Dec 2, 2021
folder to open is found at runtime
@benoitf

benoitf commented Dec 2, 2021

Copy link
Copy Markdown
Contributor

Further improvement eclipse-che/che#20870

che-incubator-bot pushed a commit that referenced this pull request Jul 21, 2022
RomanNikitenko pushed a commit that referenced this pull request May 13, 2024
RomanNikitenko pushed a commit that referenced this pull request Jan 31, 2025
* add reference to binary data api

* remove comment

* fix tests

* fix tests try #2

* more testing

* commenting out for testing

* add back history filter

* add under isimage check

* some fixes

* make sure to dispose
rgrunber pushed a commit to rgrunber/che-code that referenced this pull request Dec 1, 2025
…efox" (#260252)

Revert "Fix theme not being synchronized with external windows on firefox (che-incubator#2…"

This reverts commit 5a03ce4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add /projects subfolders to VS Code explorer when opening the workspace

2 participants