Workspace.duplicateLeaf() method
Warning: This API is now obsolete.
- Use the new form of this method instead
Signature:
duplicateLeaf(leaf: WorkspaceLeaf, direction?: SplitDirection): Promise<WorkspaceLeaf>;
Parameters
Parameter | Type | Description |
---|---|---|
leaf | WorkspaceLeaf | |
direction | SplitDirection | (Optional) |
Returns:
Promise<
WorkspaceLeaf
>