Skip to content

WorkspacesPluginInstance.loadWorkspace method

WorkspacesPluginInstance › loadWorkspace

Unofficial

Load a saved workspace: make it active, apply its layout through app.workspace.changeLayout() and persist the plugin data. Does nothing when no workspace has that name.

Signature:

loadWorkspace(name: string): Promise<void>

Parameters:

ParameterTypeDescription
namestringThe name of the workspace to load.

Returns: Promise<void> — A promise that resolves when the layout is applied.