Internal
Readonly
childrenItems that are grouped under this menu.
Optional
Readonly
iconIcon classes for the menu node. If present, these will produce an icon to the left of the label in browser-style menus.
Readonly
idtechnical identifier.
Readonly
is1.28 use role
instead.
Whether the item should be rendered as a submenu.
Optional
Readonly
labelOptional label. Will be rendered as text of the menu item.
Optional
Readonly
parentA reference to the parent node - useful for determining the menu path by which the node can be accessed.
Readonly
roleHow the node and its children should be rendered. See CompoundMenuNodeRole.
Readonly
sortMenu nodes are sorted in ascending order based on their sortString
.
Optional
Readonly
whenCondition 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.
For most use cases refer to MenuNode, CommandMenuNode, or CompoundMenuNode