Skip to content

CommandSwitchesController.isCommandShownInMenus method

CommandSwitchesController › isCommandShownInMenus

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

Signature:

isCommandShownInMenus(commandId: string): boolean

Parameters:

ParameterTypeDescription
commandIdstringThe command id, without the plugin-id prefix.

Returns: boolean — Whether the context menus may offer the command.