Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MenuAction

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

Hierarchy

  • MenuAction

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 class(es). If not specified the icon class associated with the specified command (i.e. command.iconClass) will be used if it exists.

label?: string

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

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

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