ProtectedactiveProtected ReadonlyappProtected ReadonlycontextProtected ReadonlycontributionsReadonly InternaldefaultThe ID of the built-in default perspective.
Plumbing API, used by ShellLayoutRestorer for legacy migration.
Protected ReadonlyloggerReadonlyonEvent fired whenever the active perspective changes. The payload is the new perspective ID.
Protected ReadonlyonProtected ReadonlyperspectivesProtected ReadonlyquickProtected ReadonlysavedProtected ReadonlyshellProtectedswitchProtected ReadonlywidgetProtected ReadonlywidgetStatic ReadonlyDEFAULT_Static ReadonlyRESET_Static ReadonlySWITCH_ProtectedapplyInternalClears all saved in-memory layout snapshots.
Plumbing API, used by ShellLayoutRestorer during layout reset.
ProtectedcollectProtectedcollectProtectedcollectProtecteddetachProtecteddoProtecteddoReturns 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.
InternalReturns the saved in-memory layout for a perspective, or undefined if none exists.
Plumbing API, used by ShellLayoutRestorer for layout persistence.
InternalReturns the IDs of all perspectives that have a saved (in-memory) layout snapshot.
Plumbing API, used by ShellLayoutRestorer for layout persistence.
ProtectedhealProtectedhealViews may be shared between multiple perspective. If a view exists in two or more perspectives and is closed in one of them, the shared widget is disposed. When switching back to the other perspective, we need to restore this widget (i.e. reopen the view).
ProtectedhealCalled on application startup before configure is called.
InternalCalled by ShellLayoutRestorer after restoring a persisted layout to apply chrome options
(e.g., status bar visibility) for the given perspective.
Plumbing API, used by ShellLayoutRestorer after layout restore.
Called when an application is stopped or unloaded.
Note that this is implemented using window.beforeunload which doesn't allow any asynchronous code anymore.
I.e. this is the last tick.
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.
ProtectedresetInternalSets the active perspective ID (without triggering a switch).
Returns true if the ID corresponds to a registered perspective, false otherwise.
Plumbing API, used by ShellLayoutRestorer during layout restore.
InternalStores an in-memory layout snapshot for a perspective.
Plumbing API, used by ShellLayoutRestorer for layout persistence.
ProtectedshowSwitches 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.
Protectedupdate
The command contribution should be implemented to register custom commands and handler.