Workspace.getMostRecentLeaf method
Workspace › getMostRecentLeaf
Official
Get the most recently active leaf in a given workspace root. Useful for interacting with the leaf in the root split while a sidebar leaf might be active.Signature:
getMostRecentLeaf(root?: WorkspaceParent | undefined): WorkspaceLeaf | nullParameters:
| Parameter | Type | Description |
|---|---|---|
| root? | WorkspaceParent | undefined | Root for the leaves you want to search. If a root is not provided, the rootSplit and leaves within pop-outs will be searched. |
Returns: WorkspaceLeaf | null
Since: 0.15.4