<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Workspace`](Workspace) › [`ensureSideLeaf`](Workspace/ensureSideLeaf) ## Workspace.ensureSideLeaf() method Get side leaf or create one if one does not exist. 1.7.2 **Signature:** ```typescript ensureSideLeaf(type: string, side: Side, options?: { active?: boolean; split?: boolean; reveal?: boolean; state?: any; }): Promise<WorkspaceLeaf>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>type</code> | <code>string</code> | | | <code>side</code> | [`Side`](Side) | | | <code>options</code> | <code>{ active?: boolean; split?: boolean; reveal?: boolean; state?: any; }</code> | _(Optional)_ | **Returns:** `Promise<`[`WorkspaceLeaf`](WorkspaceLeaf)`>`