We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0692c commit 85c3e01Copy full SHA for 85c3e01
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts
@@ -376,7 +376,11 @@ export class ConfigurationManager implements IConfigurationManager {
376
}
377
378
const names = launch ? launch.getConfigurationNames() : [];
379
- this.getSelectedConfig = () => Promise.resolve(this.selectedName ? launch?.getConfiguration(this.selectedName) : undefined);
+ this.getSelectedConfig = () => {
380
+ const selected = this.selectedName ? launch?.getConfiguration(this.selectedName) : undefined;
381
+ return Promise.resolve(selected || config);
382
+ };
383
+
384
let type = config?.type;
385
if (name && names.indexOf(name) >= 0) {
386
this.setSelectedLaunchName(name);
0 commit comments