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

Add remote settings.json to injector and copy it on start. #314

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

amisevsk
Copy link
Contributor

Note: this PR is a copy of #310 to avoid eclipse-che/che#22660; see original PR for discussion.

What does this PR do?

Add settings.json file (/remote/data/Machine/settings.json) to the injector, to be copied in to the checode volume on start.

This settings.json file can be used to configure options for Code, taking precendence over user/in-browser settings, and can be used to set required configuration for running the code editor in Che.

Currently, it is only used to set "git.defaultCloneDirectory": "/projects/"

What issues does this PR fix?

Closes eclipse-che/che#22653

How to test this PR?

I've pushed changes to quay.io/amisevsk/che-code:dev. Updating a workspace's DevWorkspaceTemplate to reference this image instead of the default injector should result in file /checode/remote/data/Machine/settings.json existing on start.

If you use Code to clone a project, it should default the path to /projects

Add settings.json file (/remote/data/Machine/settings.json) to the
injector, to be copied in to the checode volume on start.

This settings.json file can be used to configure options for Code,
taking precendence over user/in-browser settings, and can be used to set
required configuration for running the code editor in Che.

Signed-off-by: Angel Misevski <[email protected]>
Copy link

github-actions bot commented Nov 24, 2023

Click here to review and test in web IDE: Contribute

Copy link

Pull Request Dev image published:
👉 quay.io/che-incubator-pull-requests/che-code-dev:pr-314-dev-amd64

Copy link

Pull Request Che-Code image published:
👉 quay.io/che-incubator-pull-requests/che-code:pr-314-amd64

@amisevsk amisevsk merged commit 64b89c5 into main Nov 24, 2023
7 checks passed
@amisevsk amisevsk deleted the git-clone-path-default-upstream branch November 24, 2023 18:32
@devstudio-release
Copy link

Build 3.11 :: code_3.x/1022: Console, Changes, Git Data

@devstudio-release
Copy link

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.

Default path when cloning a git repository using VS Code command palette should be $PROJECTS_ROOT
3 participants