Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuAction

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

Hierarchy

  • MenuAction

Index

Properties

Optional alt

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

commandId: string

The command to execute.

Optional icon

icon: string

Icon class(es). If not specified the icon class associated with the specified command (i.e. command.iconClass) will be used if it exists.

Optional label

label: string

A specific label for this action. If not specified the command label or command id will be used.

Optional order

order: string

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

Optional when

when: string

Optional expression which will be evaluated by the ContextKeyService to determine visibility of the action, e.g. resourceLangId == markdown.