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:
| Parameter | Type | Description |
|---|---|---|
| shouldAddCommandsToSubmenu | boolean | Whether to group them. |
Returns: Promise<void> — A Promise that resolves when the switches are saved.