-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: Provide cwd for che terminal creation #384
Conversation
Pull Request images published ✨ Editor: quay.io/che-incubator-pull-requests/che-code:pr-384-amd64 |
3852a7e
to
a6ab382
Compare
Pull Request images published ✨ Editor: quay.io/che-incubator-pull-requests/che-code:pr-384-amd64 |
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.
I have just tested the behavior for the described cases and can confirm the improvement works as expected.
Only one thing I would fix in the next PR is that if you clicked the New Terminal (Select a Container)
menu item you are proposed to select a working directory. It is confusing a bit.
So if we have only one container, I would change the menu item title to New Terminal in a Container
or New Terminal in a Tooling Container
or something like that.
@vitaliy-guliy about
Thanks for your idea for the improvement!
So - currently I don't see some easy way to implement it, probably we could find more suitable name for the command... |
Pull Request images published ✨ Editor: quay.io/che-incubator-pull-requests/che-code:pr-384-amd64 |
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com> rh-pre-commit.version: 2.2.0 rh-pre-commit.check-secrets: ENABLED
a93ce1f
to
d7a1288
Compare
Pull Request images published ✨ Editor: quay.io/che-incubator-pull-requests/che-code:pr-384-amd64 |
So, I'm going to merge the current PR. |
What does this PR do?
Provides current working directory for a terminal creation when user uses
New Terminal (Select a container) action
:PROJECTS_ROOT
env variable if there is no any workspace folderWhat issues does this PR fix?
eclipse-che/che#23022
How to test this PR?
Empty workspace use case
Create Workspace
pageUse an Editor Definition
=>Editor Image
=> setquay.io/che-incubator-pull-requests/che-code:pr-384-amd64
Empty Workspace
to start a workspaceTerminal
=>New Terminal (Select a container)
/projects
is used as a current working directory: typepwd
for example in the created terminalWorkspace contains only one workspace folder
Create Workspace
pageUse an Editor Definition
=>Editor Image
=> setquay.io/che-incubator-pull-requests/che-code:pr-384-amd64
Terminal
=>New Terminal (Select a container)
pwd
for example in the created terminalWorkspace contains more then one workspace folder
Create Workspace
pageGit repo URL
=> sethttps://github.com/RomanNikitenko/web-nodejs-sample/tree/test-two-projects
Terminal
=>New Terminal (Select a container)
pwd
for example in the created terminalDoes this PR contain changes that override default upstream Code-OSS behavior?
git rebase
were added to the .rebase folder==========================================
Signed-off-by: Roman Nikitenko rnikiten@redhat.com
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED