Skip to content

fix: change default behaviour on unimplemented methods - #22

Merged
benoitf merged 1 commit into
che-incubator:mainfrom
nils-mosbach:main
Jan 31, 2022
Merged

benoitf merged 1 commit into
che-incubator:mainfrom
nils-mosbach:main

Conversation

@nils-mosbach

Copy link
Copy Markdown
Contributor

Checked with my environment. This change as recommended by @benoitf solves the issue.

eclipse-che/che#21081

return {} if RemoteTerminalEnvironment has unsupported method

this.logService.error(`RemoteTerminalChannel: unsupported command/${command}`);
return undefined;
return {};

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.

I think we should return {} only if command name is $getEnvironment to address the real issue that was for getEnvironment but why not return an empty object instead undefined for unsupported case anyway

@benoitf
benoitf enabled auto-merge (rebase) January 28, 2022 15:50
@benoitf
benoitf disabled auto-merge January 28, 2022 15:52
@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@benoitf benoitf changed the title fixes #21081 fix: change default behaviour on unimplemented methods Jan 31, 2022
@benoitf
benoitf merged commit 2c2c76e into che-incubator:main Jan 31, 2022
@benoitf

benoitf commented Jan 31, 2022

Copy link
Copy Markdown
Contributor

thank you for the fix, @nils-mosbach

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

8 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-22-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-22-dev-amd64

RomanNikitenko referenced this pull request in RomanNikitenko/che-code Apr 12, 2025
Co-authored-by: meganrogge <[email protected]>
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