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

fix: set /project as default pah for the terminal #330

Closed
wants to merge 1 commit into from

Conversation

vitaliy-guliy
Copy link
Contributor

@vitaliy-guliy vitaliy-guliy commented Feb 16, 2024

What does this PR do?

What issues does this PR fix?

How to test this PR?

Contribute

Copy link

github-actions bot commented Feb 16, 2024

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-330-dev-amd64

@@ -1,5 +1,6 @@
{
// Note: settings in this file will override user-level settings in the workspace.
// Any setting that may be changed by the user should not be set here.
"git.defaultCloneDirectory": "/projects/"
"git.defaultCloneDirectory": "/projects/",
"terminal.integrated.cwd": "/projects/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

@vitaliy-guliy
could you test the use case when a workspace is not empty, so contains a project

I guess the /projects will be a directory in the terminal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This pull request is created exactly to test the case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have just tested the case. The settings force the terminal always switch to /projects, even if the project is opened.

Copy link
Collaborator

@RomanNikitenko RomanNikitenko Feb 16, 2024

Choose a reason for hiding this comment

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

This pull request is created exactly to test the case

you are working on the issue related to an empty workspace
so, I thought that you were going to test it for an empty workspace
I proposed to test it for another use case to avoid a regression...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can create a directory with mkdir /protects/test-dir, goto Open Folder and pick /projects/test-dir.
Then open a terminal and check the working directory.
It will be always /projects despite your workspace is not empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems #328 is a solution for us

Copy link

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

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.

2 participants