Skip to content

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:

ParameterTypeDescription
appAppThe app instance.
pluginWorkspacesPluginThe workspaces plugin registration.

Returns: Promise<void> — A promise that resolves when the plugin is enabled.