debug: do not allow configurations with no name to appear in dropdown

This commit is contained in:
isidor 2016-08-03 10:34:03 +02:00
parent ac630b9b38
commit 64e3c01410

View file

@ -44,7 +44,7 @@ export class DebugSelectActionItem extends SelectActionItem {
return changeDebugConfiguration ? this.actionRunner.run(this._action, null) : null;
}
const configurationNames = config.configurations.map(cfg => cfg.name);
const configurationNames = config.configurations.filter(cfg => !!cfg.name).map(cfg => cfg.name);
const configurationName = this.debugService.getConfigurationManager().configurationName;
let selected = configurationNames.indexOf(configurationName);