From f0be1a2d7624a7c3be505e97985fae59299b8f15 Mon Sep 17 00:00:00 2001 From: Elaheh Rashedi Date: Tue, 3 Nov 2020 16:18:41 -0800 Subject: [PATCH] add detail to menuItem (#6435) --- Extension/src/Debugger/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extension/src/Debugger/extension.ts b/Extension/src/Debugger/extension.ts index 799b162c57..2b525a722b 100644 --- a/Extension/src/Debugger/extension.ts +++ b/Extension/src/Debugger/extension.ts @@ -74,9 +74,9 @@ export function initialize(context: vscode.ExtensionContext): void { configuration: vscode.DebugConfiguration; } - const items: MenuItem[] = configs.map(config => ({label: config.name, configuration: config})); + const items: MenuItem[] = configs.map(config => ({ label: config.name, configuration: config, description: config.detail })); - vscode.window.showQuickPick(items, {placeHolder: (items.length === 0 ? localize("no.compiler.found", "No compiler found") : localize("select.compiler", "Select a compiler"))}).then(async selection => { + vscode.window.showQuickPick(items, { placeHolder: (items.length === 0 ? localize("no.compiler.found", "No compiler found") : localize("select.configuration", "Select a configuration")) }).then(async selection => { if (!selection) { return; // User canceled it. }