Skip to content

Commit 1b0c1fa

Browse files
authored
1 parent ed952be commit 1b0c1fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/vs/workbench/contrib/preferences/browser/settingsTree.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,8 +2526,11 @@ class ApplySettingToAllProfilesAction extends Action {
25262526
}
25272527

25282528
const newValue = distinct(value);
2529-
await this.configService.updateValue(APPLY_ALL_PROFILES_SETTING, newValue.length ? newValue : undefined, ConfigurationTarget.USER_LOCAL);
2530-
if (!this.checked) {
2529+
if (this.checked) {
2530+
await this.configService.updateValue(this.setting.key, this.configService.inspect(this.setting.key).userLocal?.value, ConfigurationTarget.USER_LOCAL);
2531+
await this.configService.updateValue(APPLY_ALL_PROFILES_SETTING, newValue.length ? newValue : undefined, ConfigurationTarget.USER_LOCAL);
2532+
} else {
2533+
await this.configService.updateValue(APPLY_ALL_PROFILES_SETTING, newValue.length ? newValue : undefined, ConfigurationTarget.USER_LOCAL);
25312534
await this.configService.updateValue(this.setting.key, this.configService.inspect(this.setting.key).userLocal?.value, ConfigurationTarget.USER_LOCAL);
25322535
}
25332536
}

0 commit comments

Comments
 (0)