Optional
label: stringOptional
options: SubMenuOptionsOptional
parent: MenuNodeMetadata & MenuNodeRenderingData & Partial<CompoundMenuNode> & Partial<CommandMenuNode> & Partial<AlternativeHandlerMenuNode> & CompoundMenuNodeProtected
Readonly
_childrenProtected
Optional
_roleProtected
Optional
_whenOptional
iconReadonly
idtechnical identifier.
Optional
labelOptional label. Will be rendered as text of the menu item.
Optional
orderOptional
Readonly
parentA reference to the parent node - useful for determining the menu path by which the node can be accessed.
Static
is1.28 use CompoundMenuNode.isNavigationGroup instead
Icon classes for the menu node. If present, these will produce an icon to the left of the label in browser-style menus.
1.28 use role
instead.
Whether the item should be rendered as a submenu.
How the node and its children should be rendered. See CompoundMenuNodeRole.
Menu nodes are sorted in ascending order based on their sortString
.
Condition under which the menu node should be rendered. See https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts
Inserts the given node at the position indicated by sortString
.
a disposable which, when called, will remove the given node again.
Fills any undefined
fields with the values from the options.
Optional
options: SubMenuOptions
Node representing a (sub)menu in the menu tree structure.