Skip to content

Commit 85c3e01

Browse files
committed
debug: fall back to explicit provided config if no selected name
Fixes microsoft#135899
1 parent bc0692c commit 85c3e01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,11 @@ export class ConfigurationManager implements IConfigurationManager {
376376
}
377377

378378
const names = launch ? launch.getConfigurationNames() : [];
379-
this.getSelectedConfig = () => Promise.resolve(this.selectedName ? launch?.getConfiguration(this.selectedName) : undefined);
379+
this.getSelectedConfig = () => {
380+
const selected = this.selectedName ? launch?.getConfiguration(this.selectedName) : undefined;
381+
return Promise.resolve(selected || config);
382+
};
383+
380384
let type = config?.type;
381385
if (name && names.indexOf(name) >= 0) {
382386
this.setSelectedLaunchName(name);

0 commit comments

Comments
 (0)