提交 1d2432f0 编写于 作者: I isidor

debug: only store dynamic configs in memory

上级 79e075ec
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册