Type Alias MenuItemContainingCommand

MenuItemContainingCommand: MenuItemBase & {
    command: ReferencedItem;
    iconPathAfter?: string;
    iconPathBefore?: string;
}

Menu item that runs a command

Type declaration

  • command: ReferencedItem

    Name of the PAPI command to run when this menu item is selected.

  • OptionaliconPathAfter?: string

    Uri path to the icon to display after the menu text. Ex: papi-extension://helloWorld/assets/icon.png

  • OptionaliconPathBefore?: string

    Uri path to the icon to display before the menu text. Ex: papi-extension://helloWorld/assets/icon.png