File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
src/vs/workbench/contrib/userDataProfile/browser Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -542,17 +542,11 @@ export class UserDataProfilesWorkbenchContribution extends Disposable implements
542
542
quickPick . widget = domNode ;
543
543
544
544
const updateOptions = ( ) => {
545
- const index = findOptionIndex ( ) ;
546
- if ( index <= 0 ) {
547
- return ;
548
- }
549
- const option = profileOptions [ index ] ;
550
- if ( ! isString ( option . source ) ) {
551
- for ( const resource of resources ) {
552
- resource . picked = option . source ?. useDefaultFlags ?. [ resource . id ] ;
553
- }
554
- update ( ) ;
545
+ const option = profileOptions [ findOptionIndex ( ) ] ;
546
+ for ( const resource of resources ) {
547
+ resource . picked = option . source && ! isString ( option . source ) ? ! option . source ?. useDefaultFlags ?. [ resource . id ] : true ;
555
548
}
549
+ update ( ) ;
556
550
} ;
557
551
558
552
updateOptions ( ) ;
You can’t perform that action at this time.
0 commit comments