Skip to content

@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). content is what it last showed through panel.setContent, or null.
  • open: another panel of this module opened it with panels.open. Show content, or pick yourself when it is null.

For Tavora 0.23.9 and @tavora/sdk 0.3.3. Code under the MIT License. The Tavora name and logo are not covered by it.