From 64e3c01410582e2c151de983139ee62a2c6752e5 Mon Sep 17 00:00:00 2001 From: isidor Date: Wed, 3 Aug 2016 10:34:03 +0200 Subject: [PATCH] debug: do not allow configurations with no name to appear in dropdown --- src/vs/workbench/parts/debug/browser/debugActionItems.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/debug/browser/debugActionItems.ts b/src/vs/workbench/parts/debug/browser/debugActionItems.ts index 60d9563e461..e8e0008aff5 100644 --- a/src/vs/workbench/parts/debug/browser/debugActionItems.ts +++ b/src/vs/workbench/parts/debug/browser/debugActionItems.ts @@ -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);