Skip to content
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

Set the workspace folder on server start #131

Merged
merged 1 commit into from
Oct 19, 2022
Merged

Set the workspace folder on server start #131

merged 1 commit into from
Oct 19, 2022

Conversation

azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented Oct 14, 2022

What does this PR do?

Sets the folder that VS Code should open by default.

When VS Code server starts, we provided it with ${PROJECT_SOURCE} environment variable value as the --default-folder.
When the user's browser loads frontend, it receives that value as part of the workbench web configuration. Then, VS Code opens the corresponding folder. So, no need to load VS Code twice (as it used to be) to detect (on the first load) the folder that needs to be opened.

What issues does this PR fix or reference?

eclipse-che/che#21400 and possibly eclipse-che/che#21392

How to test this PR?

  1. Start a new DevWorkspace from the following test project: https://github.com/azatsarynnyy/java-spring-petclinic/tree/term-native.
  2. Check that VS Code is loaded once with the correct path opened as the VS Code Workspace Folder.

@azatsarynnyy azatsarynnyy marked this pull request as ready for review October 19, 2022 13:12
@azatsarynnyy azatsarynnyy changed the title [WIP] Set the workspace folder on server start Set the workspace folder on server start Oct 19, 2022
@azatsarynnyy azatsarynnyy enabled auto-merge (rebase) October 19, 2022 14:46
Copy link
Contributor

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glad they added back the parameter to set the project to open from command line

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.

3 participants