Skip to content

Workspace.ensureSideLeaf method

Workspace › ensureSideLeaf

Official

Get side leaf or create one if one does not exist.

Signature:

ensureSideLeaf(type: string, side: Side, options?: EnsureSideLeafOptions | undefined): Promise<WorkspaceLeaf>

Parameters:

Parameter Type Description
type string The type of the leaf to get or create.
side Side The side of the leaf to get or create.
options? EnsureSideLeafOptions | undefined The options to pass to the leaf.

Returns: Promise<WorkspaceLeaf>The promise that is resolved to the leaf that was created.

Since: 1.7.2