WorkspacesPluginInstance.onEnable method
WorkspacesPluginInstance › onEnable
Unofficial
Called when the plugin is enabled; loads the saved workspaces and registers the CLI handlers.Signature:
onEnable(app: App, plugin: WorkspacesPlugin): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| app | App | The app instance. |
| plugin | WorkspacesPlugin | The workspaces plugin registration. |
Returns: Promise<void> — A promise that resolves when the plugin is enabled.