Skip to content

Commit

Permalink
add detail to menuItem (#6435)
Browse files Browse the repository at this point in the history
  • Loading branch information
elahehrashedi authored Nov 4, 2020
1 parent df8523e commit f0be1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extension/src/Debugger/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ export function initialize(context: vscode.ExtensionContext): void {
configuration: vscode.DebugConfiguration;
}

const items: MenuItem[] = configs.map<MenuItem>(config => ({label: config.name, configuration: config}));
const items: MenuItem[] = configs.map<MenuItem>(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.
}
Expand Down

0 comments on commit f0be1a2

Please sign in to comment.