未验证 提交 85c3e019 编写于 作者: C Connor Peet

debug: fall back to explicit provided config if no selected name

Fixes #135899
上级 bc0692cc
......@@ -376,7 +376,11 @@ export class ConfigurationManager implements IConfigurationManager {
}
const names = launch ? launch.getConfigurationNames() : [];
this.getSelectedConfig = () => Promise.resolve(this.selectedName ? launch?.getConfiguration(this.selectedName) : undefined);
this.getSelectedConfig = () => {
const selected = this.selectedName ? launch?.getConfiguration(this.selectedName) : undefined;
return Promise.resolve(selected || config);
};
let type = config?.type;
if (name && names.indexOf(name) >= 0) {
this.setSelectedLaunchName(name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册