Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompositeMenuNode

Node representing a (sub)menu in the menu tree structure.

Hierarchy

  • CompositeMenuNode

Implements

Index

Constructors

Properties

_children: MenuNode[] = []
iconClass?: string
id: string

technical identifier.

label?: string

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

order?: string

A reference to the parent node - useful for determining the menu path by which the node can be accessed.

when?: string

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

isNavigationGroup: ((node: MenuNode) => node is MenuNode & CompoundMenuNode) = CompoundMenuNode.isNavigationGroup

Type declaration

Accessors

  • get icon(): undefined | string
  • get isSubmenu(): boolean
  • get sortString(): string

Methods

  • removeNode(id: string): void