Skip to content

Commit

Permalink
debug: only store dynamic configs in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jun 17, 2020
1 parent ccd7f4b commit ccb5438
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,10 @@ export class ConfigurationManager implements IConfigurationManager {
this.setSelectedLaunchName(names.length ? names[0] : undefined);
}

this.selectedConfig = config || (this.selectedLaunch && this.selectedName ? this.selectedLaunch.getConfiguration(this.selectedName) : undefined);
if (this.selectedConfig) {
this.debugConfigurationTypeContext.set(this.selectedConfig.type);
this.selectedConfig = config;
const configForType = this.selectedConfig || (this.selectedLaunch && this.selectedName ? this.selectedLaunch.getConfiguration(this.selectedName) : undefined);
if (configForType) {
this.debugConfigurationTypeContext.set(configForType.type);
} else {
this.debugConfigurationTypeContext.reset();
}
Expand Down

0 comments on commit ccb5438

Please sign in to comment.