@punica/editor 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -57,6 +57,15 @@ declare module 'punica' {
|
|
|
57
57
|
* panel view. Ignored by older cores.
|
|
58
58
|
*/
|
|
59
59
|
toolbar?: PanelToolbarAction[];
|
|
60
|
+
/**
|
|
61
|
+
* When `false`, the tab is ON-DEMAND: no tab is added at load
|
|
62
|
+
* time. The placement is still registered, so the owning
|
|
63
|
+
* extension reveals the view (`context.ui.reveal`) when the
|
|
64
|
+
* relevant activity begins — reveal creates the tab — and hides
|
|
65
|
+
* it (`context.ui.hide`) when done, which removes the tab.
|
|
66
|
+
* Defaults to `true` (tab present at load). Ignored by older cores.
|
|
67
|
+
*/
|
|
68
|
+
showOnStartup?: boolean;
|
|
60
69
|
};
|
|
61
70
|
activityBar?: Pick<BaseView, 'id' | 'name'> &
|
|
62
71
|
Required<Pick<BaseView, 'title' | 'icon' | 'alignment'>>;
|
|
@@ -39,7 +39,12 @@ declare module 'punica' {
|
|
|
39
39
|
toolbar?: PanelToolbarAction[];
|
|
40
40
|
}): void;
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Remove a tab from the strip. `silent: true` removes it without
|
|
44
|
+
* promoting a sibling to active — used when hiding an on-demand
|
|
45
|
+
* panel (the ViewRegistry collapses the slot separately).
|
|
46
|
+
*/
|
|
47
|
+
close(id: string, options?: { silent?: boolean }): void;
|
|
43
48
|
closeAll(): void;
|
|
44
49
|
|
|
45
50
|
/** Returns the id of the currently active panel tab, or null. */
|