File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/vs/workbench/contrib/preferences/browser Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2526,8 +2526,11 @@ class ApplySettingToAllProfilesAction extends Action {
2526
2526
}
2527
2527
2528
2528
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 ) ;
2531
2534
await this . configService . updateValue ( this . setting . key , this . configService . inspect ( this . setting . key ) . userLocal ?. value , ConfigurationTarget . USER_LOCAL ) ;
2532
2535
}
2533
2536
}
You can’t perform that action at this time.
0 commit comments