Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace MenuAction

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

Index

Properties

Functions

Properties

Optional alt

alt: undefined | 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: undefined | 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: undefined | string

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

Optional order

order: undefined | 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: undefined | string

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

Functions

is