technical identifier.
Optional label. Will be rendered as text of the menu item.
A reference to the parent node - useful for determining the menu path by which the node can be accessed.
Condition under which the menu node should be rendered. See https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts
Indicates whether the given node is the special navigation
menu.
the menu node to check.
true
when the given node is a CompoundMenuNode with id navigation
,
false
otherwise.
Items that are grouped under this menu.
Icon classes for the menu node. If present, these will produce an icon to the left of the label in browser-style menus.
How the node and its children should be rendered. See CompoundMenuNodeRole.
Menu nodes are sorted in ascending order based on their sortString
.
Inserts the given node at the position indicated by sortString
.
a disposable which, when called, will remove the given node again.
Removes the first node with the given id.
node id.
Node representing a (sub)menu in the menu tree structure.