@@ -46,7 +46,6 @@ jsonRegistry.registerSchema(launchSchemaId, launchSchema);
46
46
47
47
const DEBUG_SELECTED_CONFIG_NAME_KEY = 'debug.selectedconfigname' ;
48
48
const DEBUG_SELECTED_ROOT = 'debug.selectedroot' ;
49
- const DEBUG_SELECTED_CONFIG = 'debug.selectedconfig' ;
50
49
51
50
export class ConfigurationManager implements IConfigurationManager {
52
51
private debuggers : Debugger [ ] ;
@@ -84,12 +83,10 @@ export class ConfigurationManager implements IConfigurationManager {
84
83
const previousSelectedRoot = this . storageService . get ( DEBUG_SELECTED_ROOT , StorageScope . WORKSPACE ) ;
85
84
const previousSelectedLaunch = this . launches . find ( l => l . uri . toString ( ) === previousSelectedRoot ) ;
86
85
this . debugConfigurationTypeContext = CONTEXT_DEBUG_CONFIGURATION_TYPE . bindTo ( contextKeyService ) ;
87
- const storedConfig = this . storageService . get ( DEBUG_SELECTED_CONFIG , StorageScope . WORKSPACE ) ;
88
- const selectedConfig = typeof storedConfig === 'string' ? JSON . parse ( storedConfig ) : undefined ;
89
86
if ( previousSelectedLaunch && previousSelectedLaunch . getConfigurationNames ( ) . length ) {
90
- this . selectConfiguration ( previousSelectedLaunch , this . storageService . get ( DEBUG_SELECTED_CONFIG_NAME_KEY , StorageScope . WORKSPACE ) , selectedConfig ) ;
87
+ this . selectConfiguration ( previousSelectedLaunch , this . storageService . get ( DEBUG_SELECTED_CONFIG_NAME_KEY , StorageScope . WORKSPACE ) ) ;
91
88
} else if ( this . launches . length > 0 ) {
92
- this . selectConfiguration ( undefined , selectedConfig ? selectedConfig . name : undefined , selectedConfig ) ;
89
+ this . selectConfiguration ( undefined ) ;
93
90
}
94
91
}
95
92
@@ -486,10 +483,8 @@ export class ConfigurationManager implements IConfigurationManager {
486
483
this . selectedConfig = config || ( this . selectedLaunch && this . selectedName ? this . selectedLaunch . getConfiguration ( this . selectedName ) : undefined ) ;
487
484
if ( this . selectedConfig ) {
488
485
this . debugConfigurationTypeContext . set ( this . selectedConfig . type ) ;
489
- this . storageService . store ( DEBUG_SELECTED_CONFIG , JSON . stringify ( this . selectedConfig ) , StorageScope . WORKSPACE ) ;
490
486
} else {
491
487
this . debugConfigurationTypeContext . reset ( ) ;
492
- this . storageService . remove ( DEBUG_SELECTED_CONFIG , StorageScope . WORKSPACE ) ;
493
488
}
494
489
495
490
if ( this . selectedLaunch !== previousLaunch || this . selectedName !== previousName ) {
0 commit comments