Skip to content

add isWeb Operating System context when clause#8530

Merged
azatsarynnyy merged 1 commit intoeclipse-theia:masterfrom
mohitsuman:gh-8529
Sep 28, 2020
Merged

add isWeb Operating System context when clause#8530
azatsarynnyy merged 1 commit intoeclipse-theia:masterfrom
mohitsuman:gh-8529

Conversation

@mohitsuman
Copy link
Contributor

@mohitsuman mohitsuman commented Sep 18, 2020

Signed-off-by: Mohit Suman mohit.skn@gmail.com

What it does

It adds isWeb Operating System context to the theia API. Fixes #8529

How to test

Adds supports same as in vscode API for when clause.

If it is running in electron mode, isWeb would return false. And if running on Che/CRW, it would return true.

Review checklist

Reminder for reviewers

Signed-off-by: Mohit Suman <mohit.skn@gmail.com>
@azatsarynnyy azatsarynnyy added plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility labels Sep 18, 2020
Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

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

Thanks @mohitsuman for your contribution!
Please, provide the steps on how this patch can be validated, in How to test section.
It helps the reviewers to check it as well.

Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

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

LGTM.

Tested binding a shortcut using this new context, and I was able to only enable it for the web frontend.

@azatsarynnyy
Copy link
Member

Thanks @marechal-p for testing the PR!

@azatsarynnyy azatsarynnyy merged commit 767f14d into eclipse-theia:master Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plug-in system issues related to the plug-in system vscode issues related to VSCode compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support isWeb Operating System context for theia

3 participants