-
Notifications
You must be signed in to change notification settings - Fork 32.8k
show set display language action for lang pack extensions #154925
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
Conversation
if (!this.extension) { | ||
return; | ||
} | ||
if (this.extension.isBuiltin) { | ||
return; | ||
} | ||
if (this.extensionsWorkbenchService.canSetLanguage(this.extension)) { | ||
return; | ||
} |
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.
nit: maybe combine these if's?
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 would like to have separate checks for each condition for readability (I think its personal :) )
if (!isWeb) { | ||
return false; | ||
} | ||
|
||
if (!extension.gallery) { | ||
return false; | ||
} |
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.
nit: is 2 ifs really more readable than 1?
@sandy081 does this change work alright for the pseudo language pack? |
Is that a special language pack? May I know how to try it? |
…s-set-display-lang show set display language action for lang pack extensions
…play-lang show set display language action for lang pack extensions
show set display language action for lang pack extensions
Fixes #154461