@tavora/sdk / PanelLaunch
Type Alias: PanelLaunch
PanelLaunch = {
reason:"add"; } | {content:PanelContent|null;reason:"restore"; } | {content:PanelContent|null;reason:"open"; }
Defined in: packages/sdk/src/protocol.ts:142
Why this page of the panel is loading.
add: the user just added the panel. Pick the content yourself, such as the last one used, or show a picker.restore: the panel was open before (a restart, a switch back to its workspace, a reload).contentis what it last showed throughpanel.setContent, or null.open: another panel of this module opened it withpanels.open. Showcontent, or pick yourself when it is null.