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

Add language-specific scope widget indicators #146343

Merged
merged 1 commit into from Apr 6, 2022

Conversation

rzhao271
Copy link
Contributor

Fixes #145716

This PR adds scope widget indicators in the form of [languageId] at the end of tab labels whenever there is a language filter in place. If the language filter isn't a valid language, the indicator is not shown.

Screencap demo on the OSS build

@rzhao271 rzhao271 added this to the April 2022 milestone Mar 30, 2022
@rzhao271 rzhao271 self-assigned this Mar 30, 2022
const languageToUse = this.languageService.getLanguageName(filter);
if (languageToUse) {
this.userLocalSettings.label += ` [${languageToUse}]`;
this.userRemoteSettings.label += ` [${languageToUse}]`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess an issue here is that we might end up with Remote [hostLabel] [languageToUse] instead of Remote [hostLabel, languageToUse].

@rzhao271 rzhao271 merged commit a3d53f7 into main Apr 6, 2022
@rzhao271 rzhao271 deleted the rzhao271/se-langspecific-scopewidget-labels branch April 6, 2022 23:05
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings editor: current UI does not clearly show that the setting is actually changed for language
3 participants