<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [`revealLeaf`](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.
1.7.2
**Signature:**
```typescript
revealLeaf(leaf: WorkspaceLeaf): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>leaf</code> | [`WorkspaceLeaf`](WorkspaceLeaf) | |
**Returns:**
`Promise<void>`