debug: fill in selected configuration by name if not provided

Fixes #118472
This commit is contained in:
Connor Peet 2021-03-08 11:32:09 -08:00
parent 78cb4cfc32
commit 7e6d4c5eb9
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

View file

@ -374,6 +374,10 @@ export class ConfigurationManager implements IConfigurationManager {
let type = config?.type;
if (name && names.indexOf(name) >= 0) {
this.setSelectedLaunchName(name);
if (!config && name && launch) {
config = launch.getConfiguration(name);
type = config?.type;
}
} else if (dynamicConfig && dynamicConfig.type) {
// We could not find the previously used name and config is not passed. We should get all dynamic configurations from providers
// And potentially auto select the previously used dynamic configuration #96293