File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/vs/workbench/contrib/debug/browser Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -480,10 +480,9 @@ export class ConfigurationManager implements IConfigurationManager {
480
480
this . setSelectedLaunchName ( names . length ? names [ 0 ] : undefined ) ;
481
481
}
482
482
483
- this . selectedConfig = config ;
484
- const configForType = this . selectedConfig || ( this . selectedLaunch && this . selectedName ? this . selectedLaunch . getConfiguration ( this . selectedName ) : undefined ) ;
485
- if ( configForType ) {
486
- this . debugConfigurationTypeContext . set ( configForType . type ) ;
483
+ this . selectedConfig = config || ( this . selectedLaunch && this . selectedName ? this . selectedLaunch . getConfiguration ( this . selectedName ) : undefined ) ;
484
+ if ( this . selectedConfig ) {
485
+ this . debugConfigurationTypeContext . set ( this . selectedConfig . type ) ;
487
486
} else {
488
487
this . debugConfigurationTypeContext . reset ( ) ;
489
488
}
You can’t perform that action at this time.
0 commit comments