Skip to content

Commit 6ffb34c

Browse files
committed
Revert "debug: only store dynamic configs in memory"
This reverts commit ccb5438.
1 parent ccb5438 commit 6ffb34c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,9 @@ export class ConfigurationManager implements IConfigurationManager {
480480
this.setSelectedLaunchName(names.length ? names[0] : undefined);
481481
}
482482

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);
487486
} else {
488487
this.debugConfigurationTypeContext.reset();
489488
}

0 commit comments

Comments
 (0)