Workspace
โบ revealLeaf
Workspace.revealLeaf() method
Bring a given leaf to the foreground. If the leaf is in a sidebar, the sidebar will be uncollapsed. await
this function to ensure your view has been fully loaded and is not deferred.
Signature:
revealLeaf(leaf: WorkspaceLeaf): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
leaf | WorkspaceLeaf |
Returns:
Promise<void>