Interface MenuNodeMetadataInternal

For most use cases, refer to MenuAction or MenuNode

interface MenuNodeMetadata {
    id: string;
    parent?: MenuNode;
    sortString: string;
    when?: string;
}

Hierarchy (view full)

Properties

id: string

technical identifier.

parent?: MenuNode

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

sortString: string

Menu nodes are sorted in ascending order based on their sortString.

when?: string

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