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

ParameterTypeDescription
leafWorkspaceLeaf

Returns:

Promise<void>