Skip to content

CommandSwitches.isCommandShownInMenus

CommandSwitches › isCommandShownInMenus

Type: (commandId: string) => boolean

Whether the user's switches let a command into the context menus.

A hidden command still runs from the command palette and its hotkeys: the switches govern the menus only.