Returns the descriptor of the currently active perspective, or undefined if none.
Returns the ID of the currently active perspective. A convenient alternative to getActivePerspective()?.id that always returns a string.
Returns the target shell area for a widget in the active perspective, or undefined if unmapped.
Returns all registered perspective descriptors.
Registers a new perspective descriptor.
Contributions should call this from their PerspectiveContribution.registerPerspectives callback.
Resets the active perspective to its programmatic state (viewPlacements from its descriptor), discarding the saved layout. Does not affect other perspectives.
Switches the workbench to the given perspective.
Saves the current perspective's layout, then restores the target perspective's layout
(or applies its viewPlacements on first activation). Concurrent calls are serialized.
Event fired whenever the active perspective changes. The payload is the new perspective ID.