Skip to content

Commit ccb5438

Browse files
committed
debug: only store dynamic configs in memory
1 parent ccd7f4b commit ccb5438

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

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

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);
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);
486487
} else {
487488
this.debugConfigurationTypeContext.reset();
488489
}

0 commit comments

Comments
 (0)