Skip to content

CommandSwitchesController.setShouldAddCommandsToSubmenu method

CommandSwitchesController › setShouldAddCommandsToSubmenu

Sets whether the plugin's context-menu commands are grouped under one submenu entry.

Signature:

setShouldAddCommandsToSubmenu(shouldAddCommandsToSubmenu: boolean): Promise<void>

Parameters:

ParameterTypeDescription
shouldAddCommandsToSubmenubooleanWhether to group them.

Returns: Promise<void> — A Promise that resolves when the switches are saved.