Skip to content

Commit c9f592b

Browse files
authored
Show command descriptions as tooltips in Command Palette (#284609)
1 parent 3259bee commit c9f592b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/platform/quickinput/browser/commandsQuickAccess.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ export abstract class AbstractCommandsQuickAccessProvider extends PickerQuickAcc
274274
if (commandPick.type === 'separator') {
275275
return commandPick;
276276
}
277+
const tooltip = commandPick.tooltip
278+
?? commandPick.commandDescription?.value;
277279

278280
const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
279281
const ariaLabel = keybinding ?
@@ -292,6 +294,7 @@ export abstract class AbstractCommandsQuickAccessProvider extends PickerQuickAcc
292294

293295
return {
294296
...commandPick,
297+
tooltip,
295298
ariaLabel,
296299
detail: this.options.showAlias && commandPick.commandAlias !== commandPick.label ? commandPick.commandAlias : undefined,
297300
keybinding,

0 commit comments

Comments
 (0)