Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuAction

A menu entry representing an action, e.g. "New File".

Hierarchy

Index

Properties

alt?: string

In addition to the mandatory command property, an alternative command can be defined. It will be shown and invoked when pressing Alt while opening a menu.

commandId: string

The command to execute.

icon?: string

Icon classes for the menu node. If present, these will produce an icon to the left of the label in browser-style menus.

label?: string

Optional label. Will be rendered as text of the menu item.

order?: string

Menu entries are sorted in ascending order based on their order strings. If omitted the determined label will be used instead.

when?: string

Condition under which the menu node should be rendered. See https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts