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:

ParameterTypeDescription
typestringThe type of the leaf to get or create.
sideSideThe side of the leaf to get or create.
options?EnsureSideLeafOptions | undefinedThe options to pass to the leaf.

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

Since: 1.7.2