Add check for language tag settings (#157583)

Fixes #157581
This commit is contained in:
Raymond Zhao 2022-08-08 16:51:29 -07:00 committed by GitHub
parent 1c82bb3c6d
commit e57cba9fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ export class SettingsTreeIndicatorsLabel implements IDisposable {
this.scopeOverridesElement.innerText = ''; this.scopeOverridesElement.innerText = '';
this.scopeOverridesElement.style.display = 'none'; this.scopeOverridesElement.style.display = 'none';
const profileFeatureEnabled = this.configurationService.getValue<boolean>('workbench.experimental.settingsProfiles.enabled'); const profileFeatureEnabled = this.configurationService.getValue<boolean>('workbench.experimental.settingsProfiles.enabled');
if (profileFeatureEnabled && element.matchesScope(ConfigurationTarget.APPLICATION, false)) { if (profileFeatureEnabled && !element.setting.isLanguageTagSetting && element.matchesScope(ConfigurationTarget.APPLICATION, false)) {
// If the setting is an application-scoped setting, there are no overrides so we can use this // If the setting is an application-scoped setting, there are no overrides so we can use this
// indicator to display that information instead. // indicator to display that information instead.
this.scopeOverridesElement.style.display = 'inline'; this.scopeOverridesElement.style.display = 'inline';