@noldova/desktop.window 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +80 -2
- package/api/build.d.ts +13 -0
- package/api/build.js +10 -0
- package/api/build.js.map +1 -0
- package/api/index.d.ts +68 -0
- package/api/index.js +42 -0
- package/api/index.js.map +1 -0
- package/api/testing.d.ts +10 -0
- package/api/testing.js +11 -0
- package/api/testing.js.map +1 -0
- package/app/components/about/about.component.d.ts +50 -0
- package/app/components/about/about.component.js +125 -0
- package/app/components/about/about.component.js.map +1 -0
- package/app/components/dock/dock.component.d.ts +56 -0
- package/app/components/dock/dock.component.js +117 -0
- package/app/components/dock/dock.component.js.map +1 -0
- package/app/components/docking-guides/docking-guides.component.d.ts +35 -0
- package/app/components/docking-guides/docking-guides.component.js +61 -0
- package/app/components/docking-guides/docking-guides.component.js.map +1 -0
- package/app/components/empty-window/empty-window.component.d.ts +8 -0
- package/app/components/empty-window/empty-window.component.js +22 -0
- package/app/components/empty-window/empty-window.component.js.map +1 -0
- package/app/components/field-menu/field-menu.component.d.ts +30 -0
- package/app/components/field-menu/field-menu.component.js +92 -0
- package/app/components/field-menu/field-menu.component.js.map +1 -0
- package/app/components/highlighted-text/highlighted-text.component.d.ts +19 -0
- package/app/components/highlighted-text/highlighted-text.component.js +33 -0
- package/app/components/highlighted-text/highlighted-text.component.js.map +1 -0
- package/app/components/link-menu/link-menu.component.d.ts +22 -0
- package/app/components/link-menu/link-menu.component.js +46 -0
- package/app/components/link-menu/link-menu.component.js.map +1 -0
- package/app/components/module-actions/module-actions.component.d.ts +31 -0
- package/app/components/module-actions/module-actions.component.js +64 -0
- package/app/components/module-actions/module-actions.component.js.map +1 -0
- package/app/components/module-failure-card/module-failure-card.component.d.ts +17 -0
- package/app/components/module-failure-card/module-failure-card.component.js +24 -0
- package/app/components/module-failure-card/module-failure-card.component.js.map +1 -0
- package/app/components/module-failures/module-failures.component.d.ts +20 -0
- package/app/components/module-failures/module-failures.component.js +28 -0
- package/app/components/module-failures/module-failures.component.js.map +1 -0
- package/app/components/module-switch/module-switch.component.d.ts +22 -0
- package/app/components/module-switch/module-switch.component.js +40 -0
- package/app/components/module-switch/module-switch.component.js.map +1 -0
- package/app/components/modules/modules.component.d.ts +48 -0
- package/app/components/modules/modules.component.js +132 -0
- package/app/components/modules/modules.component.js.map +1 -0
- package/app/components/notifications/notifications.component.d.ts +23 -0
- package/app/components/notifications/notifications.component.js +35 -0
- package/app/components/notifications/notifications.component.js.map +1 -0
- package/app/components/notifications-popover/notifications-popover.component.d.ts +40 -0
- package/app/components/notifications-popover/notifications-popover.component.js +78 -0
- package/app/components/notifications-popover/notifications-popover.component.js.map +1 -0
- package/app/components/place-menu/place-menu.component.d.ts +27 -0
- package/app/components/place-menu/place-menu.component.js +40 -0
- package/app/components/place-menu/place-menu.component.js.map +1 -0
- package/app/components/placeholder-content/placeholder-content.component.d.ts +16 -0
- package/app/components/placeholder-content/placeholder-content.component.js +54 -0
- package/app/components/placeholder-content/placeholder-content.component.js.map +1 -0
- package/app/components/quit-dialog/quit-dialog.component.d.ts +17 -0
- package/app/components/quit-dialog/quit-dialog.component.js +38 -0
- package/app/components/quit-dialog/quit-dialog.component.js.map +1 -0
- package/app/components/runtime-status/runtime-status.component.d.ts +18 -0
- package/app/components/runtime-status/runtime-status.component.js +49 -0
- package/app/components/runtime-status/runtime-status.component.js.map +1 -0
- package/app/components/search-palette/search-palette.component.d.ts +35 -0
- package/app/components/search-palette/search-palette.component.js +66 -0
- package/app/components/search-palette/search-palette.component.js.map +1 -0
- package/app/components/setting-row/setting-row.component.d.ts +62 -0
- package/app/components/setting-row/setting-row.component.js +176 -0
- package/app/components/setting-row/setting-row.component.js.map +1 -0
- package/app/components/settings/settings.component.d.ts +84 -0
- package/app/components/settings/settings.component.js +273 -0
- package/app/components/settings/settings.component.js.map +1 -0
- package/app/components/settings-page-host/settings-page-host.component.d.ts +19 -0
- package/app/components/settings-page-host/settings-page-host.component.js +54 -0
- package/app/components/settings-page-host/settings-page-host.component.js.map +1 -0
- package/app/components/shortcuts/shortcuts.component.d.ts +59 -0
- package/app/components/shortcuts/shortcuts.component.js +175 -0
- package/app/components/shortcuts/shortcuts.component.js.map +1 -0
- package/app/components/split-sash/split-sash.component.d.ts +24 -0
- package/app/components/split-sash/split-sash.component.js +44 -0
- package/app/components/split-sash/split-sash.component.js.map +1 -0
- package/app/components/startup/startup.component.d.ts +25 -0
- package/app/components/startup/startup.component.js +33 -0
- package/app/components/startup/startup.component.js.map +1 -0
- package/app/components/status-bar/status-bar.component.d.ts +9 -0
- package/app/components/status-bar/status-bar.component.js +28 -0
- package/app/components/status-bar/status-bar.component.js.map +1 -0
- package/app/components/status-bar-item/status-bar-item.component.d.ts +23 -0
- package/app/components/status-bar-item/status-bar-item.component.js +39 -0
- package/app/components/status-bar-item/status-bar-item.component.js.map +1 -0
- package/app/components/tab-content/tab-content.component.d.ts +35 -0
- package/app/components/tab-content/tab-content.component.js +139 -0
- package/app/components/tab-content/tab-content.component.js.map +1 -0
- package/app/components/tab-group/tab-group.component.d.ts +54 -0
- package/app/components/tab-group/tab-group.component.js +176 -0
- package/app/components/tab-group/tab-group.component.js.map +1 -0
- package/app/components/tab-row-actions/tab-row-actions.component.d.ts +27 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js +37 -0
- package/app/components/tab-row-actions/tab-row-actions.component.js.map +1 -0
- package/app/components/tab-slot/tab-slot.component.d.ts +35 -0
- package/app/components/tab-slot/tab-slot.component.js +70 -0
- package/app/components/tab-slot/tab-slot.component.js.map +1 -0
- package/app/components/toasts/toasts.component.d.ts +36 -0
- package/app/components/toasts/toasts.component.js +68 -0
- package/app/components/toasts/toasts.component.js.map +1 -0
- package/app/components/toolbar/toolbar.component.d.ts +49 -0
- package/app/components/toolbar/toolbar.component.js +129 -0
- package/app/components/toolbar/toolbar.component.js.map +1 -0
- package/app/components/toolbar-band/toolbar-band.component.d.ts +14 -0
- package/app/components/toolbar-band/toolbar-band.component.js +32 -0
- package/app/components/toolbar-band/toolbar-band.component.js.map +1 -0
- package/app/components/update-item/update-item.component.d.ts +22 -0
- package/app/components/update-item/update-item.component.js +32 -0
- package/app/components/update-item/update-item.component.js.map +1 -0
- package/app/components/view-dialog/view-dialog.component.d.ts +17 -0
- package/app/components/view-dialog/view-dialog.component.js +46 -0
- package/app/components/view-dialog/view-dialog.component.js.map +1 -0
- package/app/components/window/window.component.d.ts +30 -0
- package/app/components/window/window.component.js +107 -0
- package/app/components/window/window.component.js.map +1 -0
- package/app/components/window-controls/window-controls.component.d.ts +27 -0
- package/app/components/window-controls/window-controls.component.js +55 -0
- package/app/components/window-controls/window-controls.component.js.map +1 -0
- package/app/components/window-row/window-row.component.d.ts +78 -0
- package/app/components/window-row/window-row.component.js +260 -0
- package/app/components/window-row/window-row.component.js.map +1 -0
- package/app/components/workspace/workspace.component.d.ts +32 -0
- package/app/components/workspace/workspace.component.js +134 -0
- package/app/components/workspace/workspace.component.js.map +1 -0
- package/app/directives/keeps-ctrl-keys.directive.d.ts +31 -0
- package/app/directives/keeps-ctrl-keys.directive.js +21 -0
- package/app/directives/keeps-ctrl-keys.directive.js.map +1 -0
- package/app/directives/tab-scroller.directive.d.ts +29 -0
- package/app/directives/tab-scroller.directive.js +88 -0
- package/app/directives/tab-scroller.directive.js.map +1 -0
- package/app/enums/bottom-dock-span.d.ts +11 -0
- package/app/enums/bottom-dock-span.js +13 -0
- package/app/enums/bottom-dock-span.js.map +1 -0
- package/app/enums/clock-choice.d.ts +11 -0
- package/app/enums/clock-choice.js +13 -0
- package/app/enums/clock-choice.js.map +1 -0
- package/app/enums/content-padding.d.ts +28 -0
- package/app/enums/content-padding.js +13 -0
- package/app/enums/content-padding.js.map +1 -0
- package/app/enums/dock-side.d.ts +24 -0
- package/app/enums/dock-side.js +14 -0
- package/app/enums/dock-side.js.map +1 -0
- package/app/enums/dock-style.d.ts +11 -0
- package/app/enums/dock-style.js +13 -0
- package/app/enums/dock-style.js.map +1 -0
- package/app/enums/document-tone.d.ts +24 -0
- package/app/enums/document-tone.js +14 -0
- package/app/enums/document-tone.js.map +1 -0
- package/app/enums/file-save-outcome.d.ts +26 -0
- package/app/enums/file-save-outcome.js +14 -0
- package/app/enums/file-save-outcome.js.map +1 -0
- package/app/enums/link-place.d.ts +23 -0
- package/app/enums/link-place.js +13 -0
- package/app/enums/link-place.js.map +1 -0
- package/app/enums/menu-bar-style.d.ts +12 -0
- package/app/enums/menu-bar-style.js +14 -0
- package/app/enums/menu-bar-style.js.map +1 -0
- package/app/enums/menu-check.d.ts +12 -0
- package/app/enums/menu-check.js +14 -0
- package/app/enums/menu-check.js.map +1 -0
- package/app/enums/panel-edge.d.ts +13 -0
- package/app/enums/panel-edge.js +15 -0
- package/app/enums/panel-edge.js.map +1 -0
- package/app/enums/part-save-outcome.d.ts +12 -0
- package/app/enums/part-save-outcome.js +14 -0
- package/app/enums/part-save-outcome.js.map +1 -0
- package/app/enums/quit-choice.d.ts +12 -0
- package/app/enums/quit-choice.js +14 -0
- package/app/enums/quit-choice.js.map +1 -0
- package/app/enums/split-axis.d.ts +11 -0
- package/app/enums/split-axis.js +13 -0
- package/app/enums/split-axis.js.map +1 -0
- package/app/enums/startup-state-kind.d.ts +17 -0
- package/app/enums/startup-state-kind.js +19 -0
- package/app/enums/startup-state-kind.js.map +1 -0
- package/app/enums/status-bar-item-tone.d.ts +21 -0
- package/app/enums/status-bar-item-tone.js +13 -0
- package/app/enums/status-bar-item-tone.js.map +1 -0
- package/app/enums/status-bar-side.d.ts +20 -0
- package/app/enums/status-bar-side.js +13 -0
- package/app/enums/status-bar-side.js.map +1 -0
- package/app/enums/toolbar-move.d.ts +13 -0
- package/app/enums/toolbar-move.js +15 -0
- package/app/enums/toolbar-move.js.map +1 -0
- package/app/enums/top-bar-side.d.ts +21 -0
- package/app/enums/top-bar-side.js +13 -0
- package/app/enums/top-bar-side.js.map +1 -0
- package/app/enums/unconfirmed-action.d.ts +12 -0
- package/app/enums/unconfirmed-action.js +14 -0
- package/app/enums/unconfirmed-action.js.map +1 -0
- package/app/enums/update-action.d.ts +11 -0
- package/app/enums/update-action.js +13 -0
- package/app/enums/update-action.js.map +1 -0
- package/app/enums/update-state-kind.d.ts +16 -0
- package/app/enums/update-state-kind.js +18 -0
- package/app/enums/update-state-kind.js.map +1 -0
- package/app/enums/view-dialog-refusal.d.ts +11 -0
- package/app/enums/view-dialog-refusal.js +13 -0
- package/app/enums/view-dialog-refusal.js.map +1 -0
- package/app/exceptions/action-not-confirmed.exception.d.ts +17 -0
- package/app/exceptions/action-not-confirmed.exception.js +36 -0
- package/app/exceptions/action-not-confirmed.exception.js.map +1 -0
- package/app/exceptions/command-already-registered.exception.d.ts +13 -0
- package/app/exceptions/command-already-registered.exception.js +18 -0
- package/app/exceptions/command-already-registered.exception.js.map +1 -0
- package/app/exceptions/command-not-declared.exception.d.ts +13 -0
- package/app/exceptions/command-not-declared.exception.js +18 -0
- package/app/exceptions/command-not-declared.exception.js.map +1 -0
- package/app/exceptions/command-not-found.exception.d.ts +13 -0
- package/app/exceptions/command-not-found.exception.js +18 -0
- package/app/exceptions/command-not-found.exception.js.map +1 -0
- package/app/exceptions/contribution-not-declared.exception.d.ts +14 -0
- package/app/exceptions/contribution-not-declared.exception.js +20 -0
- package/app/exceptions/contribution-not-declared.exception.js.map +1 -0
- package/app/exceptions/contribution-registered.exception.d.ts +14 -0
- package/app/exceptions/contribution-registered.exception.js +20 -0
- package/app/exceptions/contribution-registered.exception.js.map +1 -0
- package/app/exceptions/dependency-not-followed.exception.d.ts +12 -0
- package/app/exceptions/dependency-not-followed.exception.js +17 -0
- package/app/exceptions/dependency-not-followed.exception.js.map +1 -0
- package/app/exceptions/file-not-opened.exception.d.ts +13 -0
- package/app/exceptions/file-not-opened.exception.js +18 -0
- package/app/exceptions/file-not-opened.exception.js.map +1 -0
- package/app/exceptions/file-not-shown.exception.d.ts +13 -0
- package/app/exceptions/file-not-shown.exception.js +18 -0
- package/app/exceptions/file-not-shown.exception.js.map +1 -0
- package/app/exceptions/foreign-contribution.exception.d.ts +13 -0
- package/app/exceptions/foreign-contribution.exception.js +18 -0
- package/app/exceptions/foreign-contribution.exception.js.map +1 -0
- package/app/exceptions/foreign-name.exception.d.ts +13 -0
- package/app/exceptions/foreign-name.exception.js +18 -0
- package/app/exceptions/foreign-name.exception.js.map +1 -0
- package/app/exceptions/foreign-secret.exception.d.ts +13 -0
- package/app/exceptions/foreign-secret.exception.js +18 -0
- package/app/exceptions/foreign-secret.exception.js.map +1 -0
- package/app/exceptions/in-app-browser-taken.exception.d.ts +12 -0
- package/app/exceptions/in-app-browser-taken.exception.js +16 -0
- package/app/exceptions/in-app-browser-taken.exception.js.map +1 -0
- package/app/exceptions/link-not-opened.exception.d.ts +12 -0
- package/app/exceptions/link-not-opened.exception.js +16 -0
- package/app/exceptions/link-not-opened.exception.js.map +1 -0
- package/app/exceptions/placeholder-shown.exception.d.ts +14 -0
- package/app/exceptions/placeholder-shown.exception.js +20 -0
- package/app/exceptions/placeholder-shown.exception.js.map +1 -0
- package/app/exceptions/preload-bridge.exception.d.ts +12 -0
- package/app/exceptions/preload-bridge.exception.js +16 -0
- package/app/exceptions/preload-bridge.exception.js.map +1 -0
- package/app/exceptions/product-name.exception.d.ts +12 -0
- package/app/exceptions/product-name.exception.js +16 -0
- package/app/exceptions/product-name.exception.js.map +1 -0
- package/app/exceptions/runtime-disconnected.exception.d.ts +13 -0
- package/app/exceptions/runtime-disconnected.exception.js +25 -0
- package/app/exceptions/runtime-disconnected.exception.js.map +1 -0
- package/app/exceptions/runtime-request.exception.d.ts +15 -0
- package/app/exceptions/runtime-request.exception.js +19 -0
- package/app/exceptions/runtime-request.exception.js.map +1 -0
- package/app/exceptions/search-source-registered.exception.d.ts +13 -0
- package/app/exceptions/search-source-registered.exception.js +18 -0
- package/app/exceptions/search-source-registered.exception.js.map +1 -0
- package/app/exceptions/setting-options-failed.exception.d.ts +13 -0
- package/app/exceptions/setting-options-failed.exception.js +19 -0
- package/app/exceptions/setting-options-failed.exception.js.map +1 -0
- package/app/exceptions/setting-options-repeated.exception.d.ts +13 -0
- package/app/exceptions/setting-options-repeated.exception.js +18 -0
- package/app/exceptions/setting-options-repeated.exception.js.map +1 -0
- package/app/exceptions/settings-page-not-loaded.exception.d.ts +12 -0
- package/app/exceptions/settings-page-not-loaded.exception.js +17 -0
- package/app/exceptions/settings-page-not-loaded.exception.js.map +1 -0
- package/app/exceptions/view-dialog.exception.d.ts +15 -0
- package/app/exceptions/view-dialog.exception.js +27 -0
- package/app/exceptions/view-dialog.exception.js.map +1 -0
- package/app/exceptions/web-view-closed.exception.d.ts +12 -0
- package/app/exceptions/web-view-closed.exception.js +16 -0
- package/app/exceptions/web-view-closed.exception.js.map +1 -0
- package/app/exceptions/web-view-not-opened.exception.d.ts +12 -0
- package/app/exceptions/web-view-not-opened.exception.js +16 -0
- package/app/exceptions/web-view-not-opened.exception.js.map +1 -0
- package/app/exceptions/window-part-access.exception.d.ts +13 -0
- package/app/exceptions/window-part-access.exception.js +17 -0
- package/app/exceptions/window-part-access.exception.js.map +1 -0
- package/app/exceptions/window-part-activation-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-activation-failed.exception.js +17 -0
- package/app/exceptions/window-part-activation-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-failure.exception.d.ts +14 -0
- package/app/exceptions/window-part-failure.exception.js +17 -0
- package/app/exceptions/window-part-failure.exception.js.map +1 -0
- package/app/exceptions/window-part-load-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-load-failed.exception.js +17 -0
- package/app/exceptions/window-part-load-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-reconnection-failed.exception.d.ts +12 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js +17 -0
- package/app/exceptions/window-part-reconnection-failed.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-for-update.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed-late.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed-late.exception.js +19 -0
- package/app/exceptions/window-part-save-failed-late.exception.js.map +1 -0
- package/app/exceptions/window-part-save-failed.exception.d.ts +13 -0
- package/app/exceptions/window-part-save-failed.exception.js +19 -0
- package/app/exceptions/window-part-save-failed.exception.js.map +1 -0
- package/app/exceptions/window.exception.d.ts +21 -0
- package/app/exceptions/window.exception.js +15 -0
- package/app/exceptions/window.exception.js.map +1 -0
- package/app/interfaces/i-command-key.d.ts +22 -0
- package/app/interfaces/i-command-key.js +8 -0
- package/app/interfaces/i-command-key.js.map +1 -0
- package/app/interfaces/i-document-contribution-options.d.ts +34 -0
- package/app/interfaces/i-document-contribution-options.js +8 -0
- package/app/interfaces/i-document-contribution-options.js.map +1 -0
- package/app/interfaces/i-document-marker.d.ts +23 -0
- package/app/interfaces/i-document-marker.js +8 -0
- package/app/interfaces/i-document-marker.js.map +1 -0
- package/app/interfaces/i-document-options.d.ts +79 -0
- package/app/interfaces/i-document-options.js +8 -0
- package/app/interfaces/i-document-options.js.map +1 -0
- package/app/interfaces/i-document-status.d.ts +28 -0
- package/app/interfaces/i-document-status.js +8 -0
- package/app/interfaces/i-document-status.js.map +1 -0
- package/app/interfaces/i-document-update.d.ts +58 -0
- package/app/interfaces/i-document-update.js +8 -0
- package/app/interfaces/i-document-update.js.map +1 -0
- package/app/interfaces/i-file-choice-options.d.ts +18 -0
- package/app/interfaces/i-file-choice-options.js +8 -0
- package/app/interfaces/i-file-choice-options.js.map +1 -0
- package/app/interfaces/i-file-grant-options.d.ts +17 -0
- package/app/interfaces/i-file-grant-options.js +8 -0
- package/app/interfaces/i-file-grant-options.js.map +1 -0
- package/app/interfaces/i-file-path-choice-options.d.ts +24 -0
- package/app/interfaces/i-file-path-choice-options.js +8 -0
- package/app/interfaces/i-file-path-choice-options.js.map +1 -0
- package/app/interfaces/i-in-app-browser.d.ts +36 -0
- package/app/interfaces/i-in-app-browser.js +8 -0
- package/app/interfaces/i-in-app-browser.js.map +1 -0
- package/app/interfaces/i-layout-store.d.ts +12 -0
- package/app/interfaces/i-layout-store.js +8 -0
- package/app/interfaces/i-layout-store.js.map +1 -0
- package/app/interfaces/i-link-open-options.d.ts +26 -0
- package/app/interfaces/i-link-open-options.js +8 -0
- package/app/interfaces/i-link-open-options.js.map +1 -0
- package/app/interfaces/i-module-saver.d.ts +10 -0
- package/app/interfaces/i-module-saver.js +8 -0
- package/app/interfaces/i-module-saver.js.map +1 -0
- package/app/interfaces/i-opened-web-view.d.ts +12 -0
- package/app/interfaces/i-opened-web-view.js +8 -0
- package/app/interfaces/i-opened-web-view.js.map +1 -0
- package/app/interfaces/i-preload-bridge.d.ts +75 -0
- package/app/interfaces/i-preload-bridge.js +8 -0
- package/app/interfaces/i-preload-bridge.js.map +1 -0
- package/app/interfaces/i-product-about.d.ts +38 -0
- package/app/interfaces/i-product-about.js +8 -0
- package/app/interfaces/i-product-about.js.map +1 -0
- package/app/interfaces/i-product-logo.d.ts +23 -0
- package/app/interfaces/i-product-logo.js +8 -0
- package/app/interfaces/i-product-logo.js.map +1 -0
- package/app/interfaces/i-selection-source.d.ts +24 -0
- package/app/interfaces/i-selection-source.js +8 -0
- package/app/interfaces/i-selection-source.js.map +1 -0
- package/app/interfaces/i-settings-page-declaration.d.ts +22 -0
- package/app/interfaces/i-settings-page-declaration.js +8 -0
- package/app/interfaces/i-settings-page-declaration.js.map +1 -0
- package/app/interfaces/i-settings-page-row.d.ts +12 -0
- package/app/interfaces/i-settings-page-row.js +8 -0
- package/app/interfaces/i-settings-page-row.js.map +1 -0
- package/app/interfaces/i-status-bar-item-options.d.ts +42 -0
- package/app/interfaces/i-status-bar-item-options.js +8 -0
- package/app/interfaces/i-status-bar-item-options.js.map +1 -0
- package/app/interfaces/i-top-bar-action-options.d.ts +21 -0
- package/app/interfaces/i-top-bar-action-options.js +8 -0
- package/app/interfaces/i-top-bar-action-options.js.map +1 -0
- package/app/interfaces/i-view-dialog-options.d.ts +22 -0
- package/app/interfaces/i-view-dialog-options.js +8 -0
- package/app/interfaces/i-view-dialog-options.js.map +1 -0
- package/app/interfaces/i-view-instance-options.d.ts +37 -0
- package/app/interfaces/i-view-instance-options.js +8 -0
- package/app/interfaces/i-view-instance-options.js.map +1 -0
- package/app/interfaces/i-view-options.d.ts +41 -0
- package/app/interfaces/i-view-options.js +8 -0
- package/app/interfaces/i-view-options.js.map +1 -0
- package/app/interfaces/i-view-update.d.ts +31 -0
- package/app/interfaces/i-view-update.js +8 -0
- package/app/interfaces/i-view-update.js.map +1 -0
- package/app/interfaces/i-web-view-find-options.d.ts +16 -0
- package/app/interfaces/i-web-view-find-options.js +8 -0
- package/app/interfaces/i-web-view-find-options.js.map +1 -0
- package/app/interfaces/i-web-view-found.d.ts +33 -0
- package/app/interfaces/i-web-view-found.js +8 -0
- package/app/interfaces/i-web-view-found.js.map +1 -0
- package/app/interfaces/i-web-view-guest.d.ts +15 -0
- package/app/interfaces/i-web-view-guest.js +8 -0
- package/app/interfaces/i-web-view-guest.js.map +1 -0
- package/app/interfaces/i-web-view-handle.d.ts +370 -0
- package/app/interfaces/i-web-view-handle.js +8 -0
- package/app/interfaces/i-web-view-handle.js.map +1 -0
- package/app/interfaces/i-web-view-layer.d.ts +29 -0
- package/app/interfaces/i-web-view-layer.js +8 -0
- package/app/interfaces/i-web-view-layer.js.map +1 -0
- package/app/interfaces/i-window-inputs.d.ts +72 -0
- package/app/interfaces/i-window-inputs.js +8 -0
- package/app/interfaces/i-window-inputs.js.map +1 -0
- package/app/interfaces/i-window-palette.d.ts +32 -0
- package/app/interfaces/i-window-palette.js +8 -0
- package/app/interfaces/i-window-palette.js.map +1 -0
- package/app/interfaces/i-window-part-context.d.ts +1622 -0
- package/app/interfaces/i-window-part-context.js +8 -0
- package/app/interfaces/i-window-part-context.js.map +1 -0
- package/app/interfaces/i-window-part-host.d.ts +89 -0
- package/app/interfaces/i-window-part-host.js +8 -0
- package/app/interfaces/i-window-part-host.js.map +1 -0
- package/app/interfaces/i-window-part.d.ts +160 -0
- package/app/interfaces/i-window-part.js +8 -0
- package/app/interfaces/i-window-part.js.map +1 -0
- package/app/interfaces/i-window-secrets.d.ts +69 -0
- package/app/interfaces/i-window-secrets.js +8 -0
- package/app/interfaces/i-window-secrets.js.map +1 -0
- package/app/interfaces/i-window-web-views.d.ts +39 -0
- package/app/interfaces/i-window-web-views.js +8 -0
- package/app/interfaces/i-window-web-views.js.map +1 -0
- package/app/models/appearance-preferences.d.ts +22 -0
- package/app/models/appearance-preferences.js +51 -0
- package/app/models/appearance-preferences.js.map +1 -0
- package/app/models/build-info.d.ts +13 -0
- package/app/models/build-info.js +22 -0
- package/app/models/build-info.js.map +1 -0
- package/app/models/build-tokens.d.ts +17 -0
- package/app/models/build-tokens.js +16 -0
- package/app/models/build-tokens.js.map +1 -0
- package/app/models/clipboard-image.d.ts +22 -0
- package/app/models/clipboard-image.js +128 -0
- package/app/models/clipboard-image.js.map +1 -0
- package/app/models/clipboard-image.resources.d.ts +43 -0
- package/app/models/clipboard-image.resources.js +44 -0
- package/app/models/clipboard-image.resources.js.map +1 -0
- package/app/models/command-contribution.d.ts +95 -0
- package/app/models/command-contribution.js +38 -0
- package/app/models/command-contribution.js.map +1 -0
- package/app/models/command-match.d.ts +13 -0
- package/app/models/command-match.js +17 -0
- package/app/models/command-match.js.map +1 -0
- package/app/models/command-matcher.d.ts +11 -0
- package/app/models/command-matcher.js +23 -0
- package/app/models/command-matcher.js.map +1 -0
- package/app/models/command-row.d.ts +20 -0
- package/app/models/command-row.js +27 -0
- package/app/models/command-row.js.map +1 -0
- package/app/models/command-search-entry.d.ts +15 -0
- package/app/models/command-search-entry.js +20 -0
- package/app/models/command-search-entry.js.map +1 -0
- package/app/models/content-padding-ref.d.ts +66 -0
- package/app/models/content-padding-ref.js +20 -0
- package/app/models/content-padding-ref.js.map +1 -0
- package/app/models/contribution-match.d.ts +16 -0
- package/app/models/contribution-match.js +18 -0
- package/app/models/contribution-match.js.map +1 -0
- package/app/models/document-contribution.d.ts +63 -0
- package/app/models/document-contribution.js +28 -0
- package/app/models/document-contribution.js.map +1 -0
- package/app/models/document-heading.d.ts +21 -0
- package/app/models/document-heading.js +50 -0
- package/app/models/document-heading.js.map +1 -0
- package/app/models/document-look.d.ts +27 -0
- package/app/models/document-look.js +66 -0
- package/app/models/document-look.js.map +1 -0
- package/app/models/edit-target.d.ts +22 -0
- package/app/models/edit-target.js +58 -0
- package/app/models/edit-target.js.map +1 -0
- package/app/models/field-menu-request.d.ts +19 -0
- package/app/models/field-menu-request.js +32 -0
- package/app/models/field-menu-request.js.map +1 -0
- package/app/models/gallery-tokens.d.ts +11 -0
- package/app/models/gallery-tokens.js +13 -0
- package/app/models/gallery-tokens.js.map +1 -0
- package/app/models/issued-file-grant.d.ts +45 -0
- package/app/models/issued-file-grant.js +20 -0
- package/app/models/issued-file-grant.js.map +1 -0
- package/app/models/issued-file-grants.d.ts +40 -0
- package/app/models/issued-file-grants.js +17 -0
- package/app/models/issued-file-grants.js.map +1 -0
- package/app/models/key-bindings.d.ts +24 -0
- package/app/models/key-bindings.js +66 -0
- package/app/models/key-bindings.js.map +1 -0
- package/app/models/layout/bounds.d.ts +24 -0
- package/app/models/layout/bounds.js +53 -0
- package/app/models/layout/bounds.js.map +1 -0
- package/app/models/layout/closed-tabs.d.ts +28 -0
- package/app/models/layout/closed-tabs.js +72 -0
- package/app/models/layout/closed-tabs.js.map +1 -0
- package/app/models/layout/dock-growth.d.ts +18 -0
- package/app/models/layout/dock-growth.js +27 -0
- package/app/models/layout/dock-growth.js.map +1 -0
- package/app/models/layout/dock-strip-icon.d.ts +17 -0
- package/app/models/layout/dock-strip-icon.js +20 -0
- package/app/models/layout/dock-strip-icon.js.map +1 -0
- package/app/models/layout/dock-yield.d.ts +15 -0
- package/app/models/layout/dock-yield.js +19 -0
- package/app/models/layout/dock-yield.js.map +1 -0
- package/app/models/layout/dock.d.ts +33 -0
- package/app/models/layout/dock.js +65 -0
- package/app/models/layout/dock.js.map +1 -0
- package/app/models/layout/docking-overlay.d.ts +20 -0
- package/app/models/layout/docking-overlay.js +52 -0
- package/app/models/layout/docking-overlay.js.map +1 -0
- package/app/models/layout/document-group.d.ts +22 -0
- package/app/models/layout/document-group.js +36 -0
- package/app/models/layout/document-group.js.map +1 -0
- package/app/models/layout/document-tab.d.ts +19 -0
- package/app/models/layout/document-tab.js +33 -0
- package/app/models/layout/document-tab.js.map +1 -0
- package/app/models/layout/drop-target.d.ts +16 -0
- package/app/models/layout/drop-target.js +10 -0
- package/app/models/layout/drop-target.js.map +1 -0
- package/app/models/layout/early-document.d.ts +14 -0
- package/app/models/layout/early-document.js +18 -0
- package/app/models/layout/early-document.js.map +1 -0
- package/app/models/layout/group-drop-target.d.ts +19 -0
- package/app/models/layout/group-drop-target.js +25 -0
- package/app/models/layout/group-drop-target.js.map +1 -0
- package/app/models/layout/group-frame.d.ts +16 -0
- package/app/models/layout/group-frame.js +18 -0
- package/app/models/layout/group-frame.js.map +1 -0
- package/app/models/layout/layout-fit.d.ts +25 -0
- package/app/models/layout/layout-fit.js +61 -0
- package/app/models/layout/layout-fit.js.map +1 -0
- package/app/models/layout/layout-geometry.d.ts +49 -0
- package/app/models/layout/layout-geometry.js +129 -0
- package/app/models/layout/layout-geometry.js.map +1 -0
- package/app/models/layout/layout-metrics.d.ts +21 -0
- package/app/models/layout/layout-metrics.js +39 -0
- package/app/models/layout/layout-metrics.js.map +1 -0
- package/app/models/layout/layout.d.ts +71 -0
- package/app/models/layout/layout.js +241 -0
- package/app/models/layout/layout.js.map +1 -0
- package/app/models/layout/layout.node.d.ts +33 -0
- package/app/models/layout/layout.node.js +18 -0
- package/app/models/layout/layout.node.js.map +1 -0
- package/app/models/layout/side-drop-target.d.ts +23 -0
- package/app/models/layout/side-drop-target.js +29 -0
- package/app/models/layout/side-drop-target.js.map +1 -0
- package/app/models/layout/split-drop-target.d.ts +21 -0
- package/app/models/layout/split-drop-target.js +27 -0
- package/app/models/layout/split-drop-target.js.map +1 -0
- package/app/models/layout/split-handle.d.ts +22 -0
- package/app/models/layout/split-handle.js +43 -0
- package/app/models/layout/split-handle.js.map +1 -0
- package/app/models/layout/split-part.d.ts +13 -0
- package/app/models/layout/split-part.js +16 -0
- package/app/models/layout/split-part.js.map +1 -0
- package/app/models/layout/split.node.d.ts +42 -0
- package/app/models/layout/split.node.js +119 -0
- package/app/models/layout/split.node.js.map +1 -0
- package/app/models/layout/tab-drop-target.d.ts +18 -0
- package/app/models/layout/tab-drop-target.js +27 -0
- package/app/models/layout/tab-drop-target.js.map +1 -0
- package/app/models/layout/tab-group.d.ts +46 -0
- package/app/models/layout/tab-group.js +134 -0
- package/app/models/layout/tab-group.js.map +1 -0
- package/app/models/layout/tab-key.d.ts +12 -0
- package/app/models/layout/tab-key.js +22 -0
- package/app/models/layout/tab-key.js.map +1 -0
- package/app/models/layout/tab-label.d.ts +12 -0
- package/app/models/layout/tab-label.js +20 -0
- package/app/models/layout/tab-label.js.map +1 -0
- package/app/models/layout/tab-reveal.d.ts +13 -0
- package/app/models/layout/tab-reveal.js +16 -0
- package/app/models/layout/tab-reveal.js.map +1 -0
- package/app/models/layout/tab.d.ts +24 -0
- package/app/models/layout/tab.js +34 -0
- package/app/models/layout/tab.js.map +1 -0
- package/app/models/layout/toolbar-layout.d.ts +28 -0
- package/app/models/layout/toolbar-layout.js +116 -0
- package/app/models/layout/toolbar-layout.js.map +1 -0
- package/app/models/layout/view-registry.d.ts +24 -0
- package/app/models/layout/view-registry.js +58 -0
- package/app/models/layout/view-registry.js.map +1 -0
- package/app/models/layout/view-tab.d.ts +19 -0
- package/app/models/layout/view-tab.js +33 -0
- package/app/models/layout/view-tab.js.map +1 -0
- package/app/models/layout/view-type.d.ts +17 -0
- package/app/models/layout/view-type.js +28 -0
- package/app/models/layout/view-type.js.map +1 -0
- package/app/models/live-view.d.ts +32 -0
- package/app/models/live-view.js +90 -0
- package/app/models/live-view.js.map +1 -0
- package/app/models/menu-declarations.d.ts +20 -0
- package/app/models/menu-declarations.js +50 -0
- package/app/models/menu-declarations.js.map +1 -0
- package/app/models/menu-group.d.ts +17 -0
- package/app/models/menu-group.js +32 -0
- package/app/models/menu-group.js.map +1 -0
- package/app/models/menu-item.d.ts +20 -0
- package/app/models/menu-item.js +40 -0
- package/app/models/menu-item.js.map +1 -0
- package/app/models/menu-place.d.ts +16 -0
- package/app/models/menu-place.js +28 -0
- package/app/models/menu-place.js.map +1 -0
- package/app/models/menu-row-contribution.d.ts +52 -0
- package/app/models/menu-row-contribution.js +27 -0
- package/app/models/menu-row-contribution.js.map +1 -0
- package/app/models/menu-row.d.ts +12 -0
- package/app/models/menu-row.js +16 -0
- package/app/models/menu-row.js.map +1 -0
- package/app/models/menu-search-row.d.ts +14 -0
- package/app/models/menu-search-row.js +20 -0
- package/app/models/menu-search-row.js.map +1 -0
- package/app/models/menu-section.d.ts +14 -0
- package/app/models/menu-section.js +16 -0
- package/app/models/menu-section.js.map +1 -0
- package/app/models/module-failure.d.ts +20 -0
- package/app/models/module-failure.js +35 -0
- package/app/models/module-failure.js.map +1 -0
- package/app/models/module-switch-tokens.d.ts +12 -0
- package/app/models/module-switch-tokens.js +13 -0
- package/app/models/module-switch-tokens.js.map +1 -0
- package/app/models/modules/contribution-group.d.ts +14 -0
- package/app/models/modules/contribution-group.js +18 -0
- package/app/models/modules/contribution-group.js.map +1 -0
- package/app/models/modules/contribution-row.d.ts +12 -0
- package/app/models/modules/contribution-row.js +16 -0
- package/app/models/modules/contribution-row.js.map +1 -0
- package/app/models/modules/module-overview.d.ts +21 -0
- package/app/models/modules/module-overview.js +41 -0
- package/app/models/modules/module-overview.js.map +1 -0
- package/app/models/modules/module-reference.d.ts +13 -0
- package/app/models/modules/module-reference.js +16 -0
- package/app/models/modules/module-reference.js.map +1 -0
- package/app/models/modules/program-row.d.ts +17 -0
- package/app/models/modules/program-row.js +28 -0
- package/app/models/modules/program-row.js.map +1 -0
- package/app/models/notification-handle.d.ts +45 -0
- package/app/models/notification-handle.js +19 -0
- package/app/models/notification-handle.js.map +1 -0
- package/app/models/pending-document.d.ts +21 -0
- package/app/models/pending-document.js +35 -0
- package/app/models/pending-document.js.map +1 -0
- package/app/models/pending-view-change.d.ts +14 -0
- package/app/models/pending-view-change.js +20 -0
- package/app/models/pending-view-change.js.map +1 -0
- package/app/models/placeholder-contribution.d.ts +49 -0
- package/app/models/placeholder-contribution.js +22 -0
- package/app/models/placeholder-contribution.js.map +1 -0
- package/app/models/product-name.d.ts +13 -0
- package/app/models/product-name.js +18 -0
- package/app/models/product-name.js.map +1 -0
- package/app/models/quit-question.d.ts +16 -0
- package/app/models/quit-question.js +30 -0
- package/app/models/quit-question.js.map +1 -0
- package/app/models/scroll-offset.d.ts +15 -0
- package/app/models/scroll-offset.js +25 -0
- package/app/models/scroll-offset.js.map +1 -0
- package/app/models/search-answer.d.ts +39 -0
- package/app/models/search-answer.js +20 -0
- package/app/models/search-answer.js.map +1 -0
- package/app/models/search-filter.d.ts +14 -0
- package/app/models/search-filter.js +20 -0
- package/app/models/search-filter.js.map +1 -0
- package/app/models/search-group.d.ts +14 -0
- package/app/models/search-group.js +18 -0
- package/app/models/search-group.js.map +1 -0
- package/app/models/search-query.d.ts +17 -0
- package/app/models/search-query.js +30 -0
- package/app/models/search-query.js.map +1 -0
- package/app/models/search-rank.d.ts +14 -0
- package/app/models/search-rank.js +32 -0
- package/app/models/search-rank.js.map +1 -0
- package/app/models/search-request.d.ts +15 -0
- package/app/models/search-request.js +20 -0
- package/app/models/search-request.js.map +1 -0
- package/app/models/search-result.d.ts +65 -0
- package/app/models/search-result.js +38 -0
- package/app/models/search-result.js.map +1 -0
- package/app/models/search-row.d.ts +15 -0
- package/app/models/search-row.js +20 -0
- package/app/models/search-row.js.map +1 -0
- package/app/models/search-session.d.ts +38 -0
- package/app/models/search-session.js +140 -0
- package/app/models/search-session.js.map +1 -0
- package/app/models/search-source-contribution.d.ts +75 -0
- package/app/models/search-source-contribution.js +38 -0
- package/app/models/search-source-contribution.js.map +1 -0
- package/app/models/settings/setting-options-supply.d.ts +18 -0
- package/app/models/settings/setting-options-supply.js +46 -0
- package/app/models/settings/setting-options-supply.js.map +1 -0
- package/app/models/settings/settings-group.d.ts +13 -0
- package/app/models/settings/settings-group.js +16 -0
- package/app/models/settings/settings-group.js.map +1 -0
- package/app/models/settings/settings-page-entry.d.ts +22 -0
- package/app/models/settings/settings-page-entry.js +30 -0
- package/app/models/settings/settings-page-entry.js.map +1 -0
- package/app/models/settings/settings-page.d.ts +26 -0
- package/app/models/settings/settings-page.js +62 -0
- package/app/models/settings/settings-page.js.map +1 -0
- package/app/models/settings/settings-row.d.ts +42 -0
- package/app/models/settings/settings-row.js +24 -0
- package/app/models/settings/settings-row.js.map +1 -0
- package/app/models/settings/shortcut-notice.d.ts +15 -0
- package/app/models/settings/shortcut-notice.js +20 -0
- package/app/models/settings/shortcut-notice.js.map +1 -0
- package/app/models/settings/shortcut-row.d.ts +17 -0
- package/app/models/settings/shortcut-row.js +26 -0
- package/app/models/settings/shortcut-row.js.map +1 -0
- package/app/models/settings/text-match.d.ts +16 -0
- package/app/models/settings/text-match.js +41 -0
- package/app/models/settings/text-match.js.map +1 -0
- package/app/models/settings/word-breaks.d.ts +13 -0
- package/app/models/settings/word-breaks.js +34 -0
- package/app/models/settings/word-breaks.js.map +1 -0
- package/app/models/settings-page-contribution.d.ts +46 -0
- package/app/models/settings-page-contribution.js +20 -0
- package/app/models/settings-page-contribution.js.map +1 -0
- package/app/models/shell-documents.d.ts +21 -0
- package/app/models/shell-documents.js +25 -0
- package/app/models/shell-documents.js.map +1 -0
- package/app/models/shell-menus.d.ts +16 -0
- package/app/models/shell-menus.js +97 -0
- package/app/models/shell-menus.js.map +1 -0
- package/app/models/shortcut-binding.d.ts +13 -0
- package/app/models/shortcut-binding.js +16 -0
- package/app/models/shortcut-binding.js.map +1 -0
- package/app/models/shortcut-collision.d.ts +14 -0
- package/app/models/shortcut-collision.js +18 -0
- package/app/models/shortcut-collision.js.map +1 -0
- package/app/models/shortcut-map.d.ts +27 -0
- package/app/models/shortcut-map.js +64 -0
- package/app/models/shortcut-map.js.map +1 -0
- package/app/models/spelling-offer.d.ts +15 -0
- package/app/models/spelling-offer.js +24 -0
- package/app/models/spelling-offer.js.map +1 -0
- package/app/models/startup-state.d.ts +17 -0
- package/app/models/startup-state.js +35 -0
- package/app/models/startup-state.js.map +1 -0
- package/app/models/status-bar-item-contribution.d.ts +45 -0
- package/app/models/status-bar-item-contribution.js +20 -0
- package/app/models/status-bar-item-contribution.js.map +1 -0
- package/app/models/status-bar-item-state.d.ts +82 -0
- package/app/models/status-bar-item-state.js +43 -0
- package/app/models/status-bar-item-state.js.map +1 -0
- package/app/models/status-bar-item.d.ts +62 -0
- package/app/models/status-bar-item.js +29 -0
- package/app/models/status-bar-item.js.map +1 -0
- package/app/models/submenu-row.d.ts +15 -0
- package/app/models/submenu-row.js +19 -0
- package/app/models/submenu-row.js.map +1 -0
- package/app/models/tab-content.d.ts +18 -0
- package/app/models/tab-content.js +22 -0
- package/app/models/tab-content.js.map +1 -0
- package/app/models/tab-target.d.ts +19 -0
- package/app/models/tab-target.js +30 -0
- package/app/models/tab-target.js.map +1 -0
- package/app/models/text-range.d.ts +40 -0
- package/app/models/text-range.js +25 -0
- package/app/models/text-range.js.map +1 -0
- package/app/models/toolbar-drop-target.d.ts +17 -0
- package/app/models/toolbar-drop-target.js +28 -0
- package/app/models/toolbar-drop-target.js.map +1 -0
- package/app/models/toolbar-fit.d.ts +10 -0
- package/app/models/toolbar-fit.js +17 -0
- package/app/models/toolbar-fit.js.map +1 -0
- package/app/models/toolbar-placement.d.ts +14 -0
- package/app/models/toolbar-placement.js +24 -0
- package/app/models/toolbar-placement.js.map +1 -0
- package/app/models/toolbar.d.ts +14 -0
- package/app/models/toolbar.js +18 -0
- package/app/models/toolbar.js.map +1 -0
- package/app/models/top-bar-action-contribution.d.ts +44 -0
- package/app/models/top-bar-action-contribution.js +21 -0
- package/app/models/top-bar-action-contribution.js.map +1 -0
- package/app/models/top-bar-action-state.d.ts +51 -0
- package/app/models/top-bar-action-state.js +27 -0
- package/app/models/top-bar-action-state.js.map +1 -0
- package/app/models/top-bar-action.d.ts +62 -0
- package/app/models/top-bar-action.js +29 -0
- package/app/models/top-bar-action.js.map +1 -0
- package/app/models/update-state.d.ts +23 -0
- package/app/models/update-state.js +56 -0
- package/app/models/update-state.js.map +1 -0
- package/app/models/view-badge.d.ts +37 -0
- package/app/models/view-badge.js +22 -0
- package/app/models/view-badge.js.map +1 -0
- package/app/models/view-contribution.d.ts +91 -0
- package/app/models/view-contribution.js +42 -0
- package/app/models/view-contribution.js.map +1 -0
- package/app/models/web-view-handle.d.ts +56 -0
- package/app/models/web-view-handle.js +118 -0
- package/app/models/web-view-handle.js.map +1 -0
- package/app/models/web-view-layer.d.ts +20 -0
- package/app/models/web-view-layer.js +45 -0
- package/app/models/web-view-layer.js.map +1 -0
- package/app/models/window-appearance.d.ts +18 -0
- package/app/models/window-appearance.js +61 -0
- package/app/models/window-appearance.js.map +1 -0
- package/app/models/window-application.d.ts +32 -0
- package/app/models/window-application.js +45 -0
- package/app/models/window-application.js.map +1 -0
- package/app/models/window-palette.d.ts +18 -0
- package/app/models/window-palette.js +26 -0
- package/app/models/window-palette.js.map +1 -0
- package/app/models/window-part-activation.d.ts +16 -0
- package/app/models/window-part-activation.js +18 -0
- package/app/models/window-part-activation.js.map +1 -0
- package/app/models/window-part-context.d.ts +171 -0
- package/app/models/window-part-context.js +708 -0
- package/app/models/window-part-context.js.map +1 -0
- package/app/models/window-part-source.d.ts +95 -0
- package/app/models/window-part-source.js +40 -0
- package/app/models/window-part-source.js.map +1 -0
- package/app/models/window-part-tokens.d.ts +32 -0
- package/app/models/window-part-tokens.js +15 -0
- package/app/models/window-part-tokens.js.map +1 -0
- package/app/models/window-secrets.d.ts +18 -0
- package/app/models/window-secrets.js +33 -0
- package/app/models/window-secrets.js.map +1 -0
- package/app/models/window-web-views.d.ts +18 -0
- package/app/models/window-web-views.js +34 -0
- package/app/models/window-web-views.js.map +1 -0
- package/app/services/agent-control.service.d.ts +24 -0
- package/app/services/agent-control.service.js +58 -0
- package/app/services/agent-control.service.js.map +1 -0
- package/app/services/appearance-settings.service.d.ts +12 -0
- package/app/services/appearance-settings.service.js +50 -0
- package/app/services/appearance-settings.service.js.map +1 -0
- package/app/services/bar-items.service.d.ts +22 -0
- package/app/services/bar-items.service.js +36 -0
- package/app/services/bar-items.service.js.map +1 -0
- package/app/services/clock-setting.service.d.ts +26 -0
- package/app/services/clock-setting.service.js +43 -0
- package/app/services/clock-setting.service.js.map +1 -0
- package/app/services/closing.service.d.ts +19 -0
- package/app/services/closing.service.js +99 -0
- package/app/services/closing.service.js.map +1 -0
- package/app/services/command.service.d.ts +51 -0
- package/app/services/command.service.js +178 -0
- package/app/services/command.service.js.map +1 -0
- package/app/services/details.service.d.ts +8 -0
- package/app/services/details.service.js +28 -0
- package/app/services/details.service.js.map +1 -0
- package/app/services/dialog-cover.service.d.ts +32 -0
- package/app/services/dialog-cover.service.js +102 -0
- package/app/services/dialog-cover.service.js.map +1 -0
- package/app/services/dock-growth.service.d.ts +15 -0
- package/app/services/dock-growth.service.js +63 -0
- package/app/services/dock-growth.service.js.map +1 -0
- package/app/services/document-history.service.d.ts +24 -0
- package/app/services/document-history.service.js +68 -0
- package/app/services/document-history.service.js.map +1 -0
- package/app/services/document-instances.service.d.ts +15 -0
- package/app/services/document-instances.service.js +47 -0
- package/app/services/document-instances.service.js.map +1 -0
- package/app/services/document-opener.service.d.ts +18 -0
- package/app/services/document-opener.service.js +75 -0
- package/app/services/document-opener.service.js.map +1 -0
- package/app/services/edit-target.service.d.ts +23 -0
- package/app/services/edit-target.service.js +93 -0
- package/app/services/edit-target.service.js.map +1 -0
- package/app/services/issued-file-grants.reader.d.ts +13 -0
- package/app/services/issued-file-grants.reader.js +24 -0
- package/app/services/issued-file-grants.reader.js.map +1 -0
- package/app/services/layout-menu.service.d.ts +9 -0
- package/app/services/layout-menu.service.js +32 -0
- package/app/services/layout-menu.service.js.map +1 -0
- package/app/services/layout-store.service.d.ts +10 -0
- package/app/services/layout-store.service.js +35 -0
- package/app/services/layout-store.service.js.map +1 -0
- package/app/services/layout.reader.d.ts +23 -0
- package/app/services/layout.reader.js +113 -0
- package/app/services/layout.reader.js.map +1 -0
- package/app/services/layout.service.d.ts +96 -0
- package/app/services/layout.service.js +301 -0
- package/app/services/layout.service.js.map +1 -0
- package/app/services/link.service.d.ts +34 -0
- package/app/services/link.service.js +116 -0
- package/app/services/link.service.js.map +1 -0
- package/app/services/live-view.service.d.ts +32 -0
- package/app/services/live-view.service.js +104 -0
- package/app/services/live-view.service.js.map +1 -0
- package/app/services/menu-bar.service.d.ts +28 -0
- package/app/services/menu-bar.service.js +89 -0
- package/app/services/menu-bar.service.js.map +1 -0
- package/app/services/menu.service.d.ts +34 -0
- package/app/services/menu.service.js +96 -0
- package/app/services/menu.service.js.map +1 -0
- package/app/services/module-selection.service.d.ts +18 -0
- package/app/services/module-selection.service.js +31 -0
- package/app/services/module-selection.service.js.map +1 -0
- package/app/services/module-status.service.d.ts +22 -0
- package/app/services/module-status.service.js +39 -0
- package/app/services/module-status.service.js.map +1 -0
- package/app/services/module-switch.service.d.ts +16 -0
- package/app/services/module-switch.service.js +56 -0
- package/app/services/module-switch.service.js.map +1 -0
- package/app/services/notification.service.d.ts +38 -0
- package/app/services/notification.service.js +103 -0
- package/app/services/notification.service.js.map +1 -0
- package/app/services/preload-bridge.service.d.ts +108 -0
- package/app/services/preload-bridge.service.js +461 -0
- package/app/services/preload-bridge.service.js.map +1 -0
- package/app/services/program-status.service.d.ts +27 -0
- package/app/services/program-status.service.js +75 -0
- package/app/services/program-status.service.js.map +1 -0
- package/app/services/quit.service.d.ts +17 -0
- package/app/services/quit.service.js +37 -0
- package/app/services/quit.service.js.map +1 -0
- package/app/services/recent-commands.service.d.ts +24 -0
- package/app/services/recent-commands.service.js +63 -0
- package/app/services/recent-commands.service.js.map +1 -0
- package/app/services/search-palette.service.d.ts +20 -0
- package/app/services/search-palette.service.js +66 -0
- package/app/services/search-palette.service.js.map +1 -0
- package/app/services/search.service.d.ts +20 -0
- package/app/services/search.service.js +31 -0
- package/app/services/search.service.js.map +1 -0
- package/app/services/setting-check.service.d.ts +10 -0
- package/app/services/setting-check.service.js +32 -0
- package/app/services/setting-check.service.js.map +1 -0
- package/app/services/setting-options.service.d.ts +14 -0
- package/app/services/setting-options.service.js +38 -0
- package/app/services/setting-options.service.js.map +1 -0
- package/app/services/settings-page.service.d.ts +19 -0
- package/app/services/settings-page.service.js +35 -0
- package/app/services/settings-page.service.js.map +1 -0
- package/app/services/settings-rows.service.d.ts +17 -0
- package/app/services/settings-rows.service.js +29 -0
- package/app/services/settings-rows.service.js.map +1 -0
- package/app/services/settings.service.d.ts +38 -0
- package/app/services/settings.service.js +104 -0
- package/app/services/settings.service.js.map +1 -0
- package/app/services/shell-commands.service.d.ts +61 -0
- package/app/services/shell-commands.service.js +346 -0
- package/app/services/shell-commands.service.js.map +1 -0
- package/app/services/shell-search-sources.service.d.ts +26 -0
- package/app/services/shell-search-sources.service.js +102 -0
- package/app/services/shell-search-sources.service.js.map +1 -0
- package/app/services/spelling.service.d.ts +26 -0
- package/app/services/spelling.service.js +75 -0
- package/app/services/spelling.service.js.map +1 -0
- package/app/services/startup.service.d.ts +19 -0
- package/app/services/startup.service.js +62 -0
- package/app/services/startup.service.js.map +1 -0
- package/app/services/support.service.d.ts +18 -0
- package/app/services/support.service.js +79 -0
- package/app/services/support.service.js.map +1 -0
- package/app/services/tab-destinations.service.d.ts +10 -0
- package/app/services/tab-destinations.service.js +41 -0
- package/app/services/tab-destinations.service.js.map +1 -0
- package/app/services/tab-drag.service.d.ts +33 -0
- package/app/services/tab-drag.service.js +138 -0
- package/app/services/tab-drag.service.js.map +1 -0
- package/app/services/tab-focus.service.d.ts +24 -0
- package/app/services/tab-focus.service.js +93 -0
- package/app/services/tab-focus.service.js.map +1 -0
- package/app/services/tab-label.service.d.ts +37 -0
- package/app/services/tab-label.service.js +104 -0
- package/app/services/tab-label.service.js.map +1 -0
- package/app/services/tab-rename.service.d.ts +30 -0
- package/app/services/tab-rename.service.js +82 -0
- package/app/services/tab-rename.service.js.map +1 -0
- package/app/services/tab-row.service.d.ts +16 -0
- package/app/services/tab-row.service.js +50 -0
- package/app/services/tab-row.service.js.map +1 -0
- package/app/services/tab-strip.service.d.ts +11 -0
- package/app/services/tab-strip.service.js +44 -0
- package/app/services/tab-strip.service.js.map +1 -0
- package/app/services/time-formats.service.d.ts +20 -0
- package/app/services/time-formats.service.js +40 -0
- package/app/services/time-formats.service.js.map +1 -0
- package/app/services/toast.service.d.ts +31 -0
- package/app/services/toast.service.js +143 -0
- package/app/services/toast.service.js.map +1 -0
- package/app/services/toolbar-drag.service.d.ts +21 -0
- package/app/services/toolbar-drag.service.js +105 -0
- package/app/services/toolbar-drag.service.js.map +1 -0
- package/app/services/toolbar.service.d.ts +34 -0
- package/app/services/toolbar.service.js +89 -0
- package/app/services/toolbar.service.js.map +1 -0
- package/app/services/update.service.d.ts +25 -0
- package/app/services/update.service.js +47 -0
- package/app/services/update.service.js.map +1 -0
- package/app/services/view-dialog.service.d.ts +27 -0
- package/app/services/view-dialog.service.js +107 -0
- package/app/services/view-dialog.service.js.map +1 -0
- package/app/services/view-instances.service.d.ts +27 -0
- package/app/services/view-instances.service.js +129 -0
- package/app/services/view-instances.service.js.map +1 -0
- package/app/services/web-view.service.d.ts +47 -0
- package/app/services/web-view.service.js +222 -0
- package/app/services/web-view.service.js.map +1 -0
- package/app/services/window-error-handler.d.ts +18 -0
- package/app/services/window-error-handler.js +43 -0
- package/app/services/window-error-handler.js.map +1 -0
- package/app/services/window-part-host.service.d.ts +199 -0
- package/app/services/window-part-host.service.js +793 -0
- package/app/services/window-part-host.service.js.map +1 -0
- package/app/services/window-row-overlay.service.d.ts +15 -0
- package/app/services/window-row-overlay.service.js +79 -0
- package/app/services/window-row-overlay.service.js.map +1 -0
- package/package.json +49 -3
- package/resources.d.ts +1039 -0
- package/resources.js +1451 -0
- package/resources.js.map +1 -0
- package/testing/models/fake-window-part-context.d.ts +1402 -0
- package/testing/models/fake-window-part-context.js +109 -0
- package/testing/models/fake-window-part-context.js.map +1 -0
- package/testing/models/fake-window-secrets.d.ts +109 -0
- package/testing/models/fake-window-secrets.js +14 -0
- package/testing/models/fake-window-secrets.js.map +1 -0
- package/testing/models/fake-window-web-views.d.ts +66 -0
- package/testing/models/fake-window-web-views.js +12 -0
- package/testing/models/fake-window-web-views.js.map +1 -0
|
@@ -0,0 +1,708 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import { signal } from "@angular/core";
|
|
10
|
+
import { ArgumentException, ArgumentOutOfRangeException } from "@noldova/context.exceptions";
|
|
11
|
+
import { FileGrant } from "@noldova/desktop.protocol";
|
|
12
|
+
import { FileSaveOutcome } from "../enums/file-save-outcome.js";
|
|
13
|
+
import { CommandAlreadyRegisteredException } from "../exceptions/command-already-registered.exception.js";
|
|
14
|
+
import { CommandNotDeclaredException } from "../exceptions/command-not-declared.exception.js";
|
|
15
|
+
import { ContributionNotDeclaredException } from "../exceptions/contribution-not-declared.exception.js";
|
|
16
|
+
import { ContributionRegisteredException } from "../exceptions/contribution-registered.exception.js";
|
|
17
|
+
import { ForeignContributionException } from "../exceptions/foreign-contribution.exception.js";
|
|
18
|
+
import { ForeignNameException } from "../exceptions/foreign-name.exception.js";
|
|
19
|
+
import { PlaceholderShownException } from "../exceptions/placeholder-shown.exception.js";
|
|
20
|
+
import { SearchSourceRegisteredException } from "../exceptions/search-source-registered.exception.js";
|
|
21
|
+
import { DocumentHeading } from "./document-heading.js";
|
|
22
|
+
import { DocumentLook } from "./document-look.js";
|
|
23
|
+
import { IssuedFileGrants } from "./issued-file-grants.js";
|
|
24
|
+
import { DocumentTab } from "./layout/document-tab.js";
|
|
25
|
+
import { ViewTab } from "./layout/view-tab.js";
|
|
26
|
+
import { MenuItem } from "./menu-item.js";
|
|
27
|
+
import { NotificationHandle } from "./notification-handle.js";
|
|
28
|
+
import { StatusBarItem } from "./status-bar-item.js";
|
|
29
|
+
import { TopBarAction } from "./top-bar-action.js";
|
|
30
|
+
import { WindowSecrets } from "./window-secrets.js";
|
|
31
|
+
import { WindowWebViews } from "./window-web-views.js";
|
|
32
|
+
import { Resources } from "../../resources.js";
|
|
33
|
+
export class WindowPartContext {
|
|
34
|
+
static ignore = () => undefined;
|
|
35
|
+
host;
|
|
36
|
+
owners;
|
|
37
|
+
source;
|
|
38
|
+
notifications = new Set();
|
|
39
|
+
commandList = [];
|
|
40
|
+
statusBarItemList = [];
|
|
41
|
+
topBarActionList = [];
|
|
42
|
+
viewList = [];
|
|
43
|
+
withdrawnViews = [];
|
|
44
|
+
fileGrants = new Set();
|
|
45
|
+
documentList = [];
|
|
46
|
+
placeholderList = [];
|
|
47
|
+
settingsPageList = [];
|
|
48
|
+
searchSourceList = [];
|
|
49
|
+
settingsRows = signal(new Map(), /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "settingsRows" }] : /* istanbul ignore next */ []));
|
|
51
|
+
saveList = [];
|
|
52
|
+
subscriptions = [];
|
|
53
|
+
dependencyListeners = new Set();
|
|
54
|
+
activeDependencies = new Set();
|
|
55
|
+
badgedViews = new Set();
|
|
56
|
+
workingTabs = new Map();
|
|
57
|
+
waitingTabs = new Map();
|
|
58
|
+
palettes = new Set();
|
|
59
|
+
isWithdrawn = false;
|
|
60
|
+
moduleId;
|
|
61
|
+
webViews;
|
|
62
|
+
secrets;
|
|
63
|
+
agentControl;
|
|
64
|
+
constructor(source, host) {
|
|
65
|
+
this.moduleId = source.moduleId;
|
|
66
|
+
this.owners = [source.moduleId, ...source.dependencies, ...source.optionalDependencies];
|
|
67
|
+
this.source = source;
|
|
68
|
+
this.host = host;
|
|
69
|
+
this.webViews = new WindowWebViews((pane, profileKey) => this.openWebViewAsync(pane, profileKey));
|
|
70
|
+
this.secrets = new WindowSecrets(source.moduleId, (method, payload) => host.requestAsync(method, payload));
|
|
71
|
+
this.agentControl = host.agentControl;
|
|
72
|
+
}
|
|
73
|
+
get views() {
|
|
74
|
+
return this.viewList;
|
|
75
|
+
}
|
|
76
|
+
get documents() {
|
|
77
|
+
return this.documentList;
|
|
78
|
+
}
|
|
79
|
+
get placeholders() {
|
|
80
|
+
return this.placeholderList;
|
|
81
|
+
}
|
|
82
|
+
get settingsPages() {
|
|
83
|
+
return this.settingsPageList;
|
|
84
|
+
}
|
|
85
|
+
get searchSources() {
|
|
86
|
+
return this.searchSourceList;
|
|
87
|
+
}
|
|
88
|
+
get saves() {
|
|
89
|
+
return this.saveList;
|
|
90
|
+
}
|
|
91
|
+
get commands() {
|
|
92
|
+
return this.commandList;
|
|
93
|
+
}
|
|
94
|
+
get statusBarItems() {
|
|
95
|
+
return this.source.statusBarItemNames.flatMap(t => this.statusBarItemList.filter(u => u.name === t));
|
|
96
|
+
}
|
|
97
|
+
get topBarActions() {
|
|
98
|
+
return this.source.topBarActionNames.flatMap(t => this.topBarActionList.filter(u => u.name === t));
|
|
99
|
+
}
|
|
100
|
+
registerView(view) {
|
|
101
|
+
this.requireDeclared(view.name, this.source.viewNames, this.viewList, Resources.viewKind);
|
|
102
|
+
if (!Object.isNull(view.tabRowPlace))
|
|
103
|
+
this.requireOwn(view.tabRowPlace);
|
|
104
|
+
if (this.isWithdrawn)
|
|
105
|
+
return;
|
|
106
|
+
this.viewList.push(view);
|
|
107
|
+
this.host.refresh();
|
|
108
|
+
}
|
|
109
|
+
registerDocument(document) {
|
|
110
|
+
this.requireDeclared(document.name, this.source.documentNames, this.documentList, Resources.documentKind);
|
|
111
|
+
if (!Object.isNull(document.tabRowPlace))
|
|
112
|
+
this.requireOwn(document.tabRowPlace);
|
|
113
|
+
if (this.isWithdrawn)
|
|
114
|
+
return;
|
|
115
|
+
this.documentList.push(document);
|
|
116
|
+
this.host.refresh();
|
|
117
|
+
}
|
|
118
|
+
registerPlaceholder(placeholder) {
|
|
119
|
+
this.requireDeclared(placeholder.name, this.source.placeholderNames, this.placeholderList, Resources.placeholderKind);
|
|
120
|
+
if (this.isWithdrawn)
|
|
121
|
+
return;
|
|
122
|
+
const registered = this.host.findPlaceholderName();
|
|
123
|
+
if (!Object.isNull(registered))
|
|
124
|
+
throw new PlaceholderShownException(this.moduleId, placeholder.name, registered);
|
|
125
|
+
this.placeholderList.push(placeholder);
|
|
126
|
+
this.host.refresh();
|
|
127
|
+
}
|
|
128
|
+
registerSettingsPage(page) {
|
|
129
|
+
this.requireDeclared(page.name, this.source.settingsPages.map(t => t.name), this.settingsPageList, Resources.settingsPageKind);
|
|
130
|
+
if (this.isWithdrawn)
|
|
131
|
+
return;
|
|
132
|
+
this.settingsPageList.push(page);
|
|
133
|
+
this.host.refresh();
|
|
134
|
+
}
|
|
135
|
+
setSettingsRows(page, rows) {
|
|
136
|
+
this.requireOwn(page);
|
|
137
|
+
if (!this.source.settingsPages.some(t => t.name === page))
|
|
138
|
+
throw new ContributionNotDeclaredException(this.moduleId, page, Resources.settingsPageKind);
|
|
139
|
+
for (const row of rows)
|
|
140
|
+
this.requireOwn(row.id);
|
|
141
|
+
if (new Set(rows.map(t => t.id)).size !== rows.length)
|
|
142
|
+
throw new ArgumentException(Resources.settingsRowsRepeated, Resources.rowsParameter);
|
|
143
|
+
if (this.isWithdrawn)
|
|
144
|
+
return;
|
|
145
|
+
const kept = [...rows];
|
|
146
|
+
this.settingsRows.update(t => new Map([...t, [page, kept]]));
|
|
147
|
+
}
|
|
148
|
+
settingsRowsOf(page) {
|
|
149
|
+
return this.settingsRows().get(page) ?? [];
|
|
150
|
+
}
|
|
151
|
+
registerCommand(command) {
|
|
152
|
+
this.requireOwn(command.name);
|
|
153
|
+
if (!this.source.commandNames.includes(command.name))
|
|
154
|
+
throw new CommandNotDeclaredException(this.moduleId, command.name);
|
|
155
|
+
if (this.isWithdrawn)
|
|
156
|
+
return;
|
|
157
|
+
if (this.host.isCommandRegistered(command.name))
|
|
158
|
+
throw new CommandAlreadyRegisteredException(this.moduleId, command.name);
|
|
159
|
+
this.commandList.push(command);
|
|
160
|
+
this.host.refresh();
|
|
161
|
+
}
|
|
162
|
+
registerSearchSource(source) {
|
|
163
|
+
this.requireOwn(source.name);
|
|
164
|
+
if (this.isWithdrawn)
|
|
165
|
+
return;
|
|
166
|
+
if (this.searchSourceList.some(t => t.name === source.name))
|
|
167
|
+
throw new SearchSourceRegisteredException(this.moduleId, source.name);
|
|
168
|
+
this.searchSourceList.push(source);
|
|
169
|
+
this.host.refresh();
|
|
170
|
+
}
|
|
171
|
+
registerStatusBarItem(item) {
|
|
172
|
+
this.requireDeclared(item.name, this.source.statusBarItemNames, this.statusBarItemList, Resources.statusBarItemKind);
|
|
173
|
+
const registered = new StatusBarItem(item, t => {
|
|
174
|
+
if (!Object.isNull(t.command))
|
|
175
|
+
this.requireAllowed(t.command);
|
|
176
|
+
});
|
|
177
|
+
if (this.isWithdrawn)
|
|
178
|
+
return registered;
|
|
179
|
+
this.statusBarItemList.push(registered);
|
|
180
|
+
this.host.refresh();
|
|
181
|
+
return registered;
|
|
182
|
+
}
|
|
183
|
+
registerTopBarAction(action) {
|
|
184
|
+
this.requireDeclared(action.name, this.source.topBarActionNames, this.topBarActionList, Resources.topBarActionKind);
|
|
185
|
+
const registered = new TopBarAction(action, t => this.requireAllowed(t.command));
|
|
186
|
+
if (this.isWithdrawn)
|
|
187
|
+
return registered;
|
|
188
|
+
this.topBarActionList.push(registered);
|
|
189
|
+
this.host.refresh();
|
|
190
|
+
return registered;
|
|
191
|
+
}
|
|
192
|
+
registerSave(save) {
|
|
193
|
+
if (this.isWithdrawn)
|
|
194
|
+
return WindowPartContext.ignore;
|
|
195
|
+
this.saveList.push(save);
|
|
196
|
+
return () => {
|
|
197
|
+
const index = this.saveList.indexOf(save);
|
|
198
|
+
if (index >= 0)
|
|
199
|
+
this.saveList.splice(index, 1);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
registerSelectionSource(element, source) {
|
|
203
|
+
if (this.isWithdrawn)
|
|
204
|
+
return WindowPartContext.ignore;
|
|
205
|
+
const unregister = this.host.registerSelectionSource(element, source);
|
|
206
|
+
this.subscriptions.push(unregister);
|
|
207
|
+
return unregister;
|
|
208
|
+
}
|
|
209
|
+
provideMenuGroup(group, provider) {
|
|
210
|
+
this.requireOwn(group);
|
|
211
|
+
if (!this.host.declaresDynamicMenuGroup(this.moduleId, group))
|
|
212
|
+
throw new ContributionNotDeclaredException(this.moduleId, group, Resources.dynamicMenuGroupKind);
|
|
213
|
+
if (this.isWithdrawn)
|
|
214
|
+
return WindowPartContext.ignore;
|
|
215
|
+
const withdraw = this.host.provideMenuGroup(group, context => provider(context).filter(t => this.isAllowed(t.command))
|
|
216
|
+
.map(t => MenuItem.ofCommand(t.command, t.commandArguments, t.label, t.icon)));
|
|
217
|
+
this.subscriptions.push(withdraw);
|
|
218
|
+
return withdraw;
|
|
219
|
+
}
|
|
220
|
+
provideSettingOptions(setting, provider) {
|
|
221
|
+
this.requireDynamicSetting(setting);
|
|
222
|
+
if (this.isWithdrawn)
|
|
223
|
+
return WindowPartContext.ignore;
|
|
224
|
+
const stop = this.host.provideSettingOptions(setting, provider);
|
|
225
|
+
this.subscriptions.push(stop);
|
|
226
|
+
return stop;
|
|
227
|
+
}
|
|
228
|
+
refreshSettingOptions(setting) {
|
|
229
|
+
this.requireDynamicSetting(setting);
|
|
230
|
+
this.host.refreshSettingOptions(setting);
|
|
231
|
+
}
|
|
232
|
+
provideSettingCheck(setting, check) {
|
|
233
|
+
this.requireOwn(setting);
|
|
234
|
+
if (!this.host.declaresCheckedSetting(setting))
|
|
235
|
+
throw new ContributionNotDeclaredException(this.moduleId, setting, Resources.checkedSettingKind);
|
|
236
|
+
if (this.isWithdrawn)
|
|
237
|
+
return WindowPartContext.ignore;
|
|
238
|
+
const stop = this.host.provideSettingCheck(setting, value => {
|
|
239
|
+
try {
|
|
240
|
+
return check(value);
|
|
241
|
+
}
|
|
242
|
+
catch (error) {
|
|
243
|
+
this.log(Resources.formatSettingCheckFailed(setting, error));
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
this.subscriptions.push(stop);
|
|
248
|
+
return stop;
|
|
249
|
+
}
|
|
250
|
+
setViewBadge(view, badge) {
|
|
251
|
+
this.requireOwn(view);
|
|
252
|
+
if (!this.source.viewNames.includes(view))
|
|
253
|
+
throw new ContributionNotDeclaredException(this.moduleId, view, Resources.viewKind);
|
|
254
|
+
if (this.isWithdrawn)
|
|
255
|
+
return;
|
|
256
|
+
if (Object.isNull(badge))
|
|
257
|
+
this.badgedViews.delete(view);
|
|
258
|
+
else
|
|
259
|
+
this.badgedViews.add(view);
|
|
260
|
+
this.host.setViewBadge(view, badge);
|
|
261
|
+
}
|
|
262
|
+
markWorking(name, instance) {
|
|
263
|
+
return this.markTab(name, instance, this.workingTabs, (t, u) => this.host.setTabWorking(t, u));
|
|
264
|
+
}
|
|
265
|
+
markWaiting(name, instance) {
|
|
266
|
+
return this.markTab(name, instance, this.waitingTabs, (t, u) => this.host.setTabWaiting(t, u));
|
|
267
|
+
}
|
|
268
|
+
runCommandAsync(name, commandArguments = null) {
|
|
269
|
+
if (name !== Resources.searchCommand)
|
|
270
|
+
this.requireAllowed(name);
|
|
271
|
+
return this.host.runCommandAsync(name, commandArguments);
|
|
272
|
+
}
|
|
273
|
+
findWindowCommand(event) {
|
|
274
|
+
return this.host.findWindowCommand(event);
|
|
275
|
+
}
|
|
276
|
+
keyOf(command) {
|
|
277
|
+
return this.host.keyOf(command);
|
|
278
|
+
}
|
|
279
|
+
async postNotificationAsync(post) {
|
|
280
|
+
this.requireNotification(post);
|
|
281
|
+
if (this.isWithdrawn)
|
|
282
|
+
return WindowPartContext.unposted(String.empty);
|
|
283
|
+
const id = await this.host.postNotificationAsync(post);
|
|
284
|
+
if (this.isWithdrawn) {
|
|
285
|
+
this.host.dismissNotification(id);
|
|
286
|
+
return WindowPartContext.unposted(id);
|
|
287
|
+
}
|
|
288
|
+
const handle = new NotificationHandle(id, () => this.dismissNotification(handle));
|
|
289
|
+
this.notifications.add(handle);
|
|
290
|
+
return handle;
|
|
291
|
+
}
|
|
292
|
+
openDocument(name, instance, title, options = {}) {
|
|
293
|
+
this.requireOwn(name);
|
|
294
|
+
const heading = new DocumentHeading(title, options.breadcrumb ?? [], options.breadcrumbIcon ?? null);
|
|
295
|
+
DocumentLook.validate(options);
|
|
296
|
+
if (this.isWithdrawn)
|
|
297
|
+
return;
|
|
298
|
+
this.host.openDocumentLook(this.moduleId, name, instance, options);
|
|
299
|
+
this.host.openDocument(this.moduleId, name, instance, heading, options.preview === true, options.after ?? null);
|
|
300
|
+
}
|
|
301
|
+
keepDocument(name, instance) {
|
|
302
|
+
this.requireOwn(name);
|
|
303
|
+
if (!this.isWithdrawn)
|
|
304
|
+
this.host.keepDocument(this.moduleId, name, instance);
|
|
305
|
+
}
|
|
306
|
+
closeDocument(name, instance) {
|
|
307
|
+
this.requireOwn(name);
|
|
308
|
+
if (!this.isWithdrawn)
|
|
309
|
+
this.host.closeDocument(this.moduleId, name, instance);
|
|
310
|
+
}
|
|
311
|
+
forgetDocument(name, instance) {
|
|
312
|
+
this.requireOwn(name);
|
|
313
|
+
if (!this.isWithdrawn)
|
|
314
|
+
this.host.forgetDocument(this.moduleId, name, instance);
|
|
315
|
+
}
|
|
316
|
+
updateDocument(name, instance, update) {
|
|
317
|
+
this.requireOwn(name);
|
|
318
|
+
const title = Object.isUndefined(update.title) ? null : DocumentHeading.requireTitle(update.title);
|
|
319
|
+
const breadcrumb = Object.isUndefined(update.breadcrumb) ? null : DocumentHeading.requireBreadcrumb(update.breadcrumb);
|
|
320
|
+
const breadcrumbIcon = DocumentHeading.requireUpdateIcon(update.breadcrumbIcon ?? null, breadcrumb);
|
|
321
|
+
const changesLook = DocumentLook.changes(update);
|
|
322
|
+
if (changesLook)
|
|
323
|
+
DocumentLook.validate(update);
|
|
324
|
+
if (this.isWithdrawn)
|
|
325
|
+
return;
|
|
326
|
+
this.host.updateDocument(this.moduleId, name, instance, title, breadcrumb, breadcrumbIcon);
|
|
327
|
+
if (changesLook)
|
|
328
|
+
this.host.updateDocumentLook(name, instance, update);
|
|
329
|
+
}
|
|
330
|
+
onDocumentClosed(name, listener) {
|
|
331
|
+
this.requireOwnDocument(name);
|
|
332
|
+
if (this.isWithdrawn)
|
|
333
|
+
return WindowPartContext.ignore;
|
|
334
|
+
const unsubscribe = this.host.onDocumentClosed(name, listener);
|
|
335
|
+
this.subscriptions.push(unsubscribe);
|
|
336
|
+
return unsubscribe;
|
|
337
|
+
}
|
|
338
|
+
onTabRenamed(name, listener) {
|
|
339
|
+
this.requireOwn(name);
|
|
340
|
+
if (this.isWithdrawn)
|
|
341
|
+
return WindowPartContext.ignore;
|
|
342
|
+
if (!this.viewList.some(t => t.name === name && t.isRenamable) && !this.documentList.some(t => t.name === name && t.isRenamable))
|
|
343
|
+
throw new ContributionNotDeclaredException(this.moduleId, name, Resources.renamableKind);
|
|
344
|
+
const unsubscribe = this.host.onTabRenamed(name, listener);
|
|
345
|
+
this.subscriptions.push(unsubscribe);
|
|
346
|
+
return unsubscribe;
|
|
347
|
+
}
|
|
348
|
+
async listOpenDocumentsAsync(name) {
|
|
349
|
+
this.requireOwnDocument(name);
|
|
350
|
+
return this.isWithdrawn ? null : await this.host.listOpenDocumentsAsync(this.moduleId, name);
|
|
351
|
+
}
|
|
352
|
+
openView(name, instance, title, options = {}) {
|
|
353
|
+
this.requireInstance(name, instance);
|
|
354
|
+
const heading = new DocumentHeading(title, options.breadcrumb ?? [], options.breadcrumbIcon ?? null);
|
|
355
|
+
if (!this.isWithdrawn)
|
|
356
|
+
this.host.openView(this.moduleId, name, instance, heading, options.icon ?? null, options.tabGroup ?? null);
|
|
357
|
+
}
|
|
358
|
+
updateView(name, instance, update) {
|
|
359
|
+
this.requireInstance(name, instance);
|
|
360
|
+
const title = Object.isUndefined(update.title) ? null : DocumentHeading.requireTitle(update.title);
|
|
361
|
+
const breadcrumb = Object.isUndefined(update.breadcrumb) ? null : DocumentHeading.requireBreadcrumb(update.breadcrumb);
|
|
362
|
+
const breadcrumbIcon = DocumentHeading.requireUpdateIcon(update.breadcrumbIcon ?? null, breadcrumb);
|
|
363
|
+
if (!this.isWithdrawn)
|
|
364
|
+
this.host.updateView(this.moduleId, name, instance, title, update.icon ?? null, breadcrumb, breadcrumbIcon);
|
|
365
|
+
}
|
|
366
|
+
closeView(name, instance) {
|
|
367
|
+
this.requireInstance(name, instance);
|
|
368
|
+
if (!this.isWithdrawn)
|
|
369
|
+
this.host.closeView(this.moduleId, name, instance);
|
|
370
|
+
}
|
|
371
|
+
showView(name) {
|
|
372
|
+
this.requirePlainView(name);
|
|
373
|
+
if (!this.isWithdrawn)
|
|
374
|
+
this.host.showView(this.moduleId, name);
|
|
375
|
+
}
|
|
376
|
+
hideViewDock(name, instance) {
|
|
377
|
+
if (Object.isUndefined(instance))
|
|
378
|
+
this.requirePlainView(name);
|
|
379
|
+
else
|
|
380
|
+
this.requireInstance(name, instance);
|
|
381
|
+
if (!this.isWithdrawn)
|
|
382
|
+
this.host.hideViewDock(this.moduleId, name, instance ?? null);
|
|
383
|
+
}
|
|
384
|
+
growViewDock(name, minimum, instance) {
|
|
385
|
+
if (Object.isUndefined(instance))
|
|
386
|
+
this.requirePlainView(name);
|
|
387
|
+
else
|
|
388
|
+
this.requireInstance(name, instance);
|
|
389
|
+
if (!(Number.isFinite(minimum) && minimum > 0))
|
|
390
|
+
throw new ArgumentOutOfRangeException(Resources.minimumParameter, minimum, Resources.dockGrowthMinimumInvalid);
|
|
391
|
+
if (this.isWithdrawn)
|
|
392
|
+
return WindowPartContext.ignore;
|
|
393
|
+
const release = this.host.growViewDock(name, instance ?? null, minimum);
|
|
394
|
+
this.subscriptions.push(release);
|
|
395
|
+
return release;
|
|
396
|
+
}
|
|
397
|
+
onViewClosed(name, listener) {
|
|
398
|
+
this.requireInstanceView(name);
|
|
399
|
+
if (this.isWithdrawn)
|
|
400
|
+
return WindowPartContext.ignore;
|
|
401
|
+
const unsubscribe = this.host.onViewClosed(name, listener);
|
|
402
|
+
this.subscriptions.push(unsubscribe);
|
|
403
|
+
return unsubscribe;
|
|
404
|
+
}
|
|
405
|
+
async showInDialogAsync(name, options = {}) {
|
|
406
|
+
this.requireReadable(name);
|
|
407
|
+
if (!this.isWithdrawn)
|
|
408
|
+
await this.host.showInDialogAsync(name, options.instance ?? null, options.title ?? null);
|
|
409
|
+
}
|
|
410
|
+
async openBelowWindowRowAsync(load) {
|
|
411
|
+
const component = await load();
|
|
412
|
+
if (this.isWithdrawn)
|
|
413
|
+
return null;
|
|
414
|
+
const palette = this.host.openBelowWindowRow(this, component);
|
|
415
|
+
if (Object.isNull(palette))
|
|
416
|
+
return null;
|
|
417
|
+
this.palettes.add(palette);
|
|
418
|
+
void palette.closed.then(() => this.palettes.delete(palette));
|
|
419
|
+
return palette;
|
|
420
|
+
}
|
|
421
|
+
log(message) {
|
|
422
|
+
this.host.log(this.moduleId, message);
|
|
423
|
+
}
|
|
424
|
+
async openLinkAsync(url, options = {}) {
|
|
425
|
+
if (!this.isWithdrawn)
|
|
426
|
+
await this.host.openLinkAsync(url, options);
|
|
427
|
+
}
|
|
428
|
+
showLinkMenu(url, event) {
|
|
429
|
+
if (!this.isWithdrawn)
|
|
430
|
+
this.host.showLinkMenu(url, event);
|
|
431
|
+
}
|
|
432
|
+
registerInAppBrowser(browser) {
|
|
433
|
+
if (this.isWithdrawn)
|
|
434
|
+
return WindowPartContext.ignore;
|
|
435
|
+
const unregister = this.host.registerInAppBrowser(browser, message => this.log(message));
|
|
436
|
+
this.subscriptions.push(unregister);
|
|
437
|
+
return unregister;
|
|
438
|
+
}
|
|
439
|
+
async showInFolderAsync(path) {
|
|
440
|
+
if (!this.isWithdrawn)
|
|
441
|
+
await this.host.showInFolderAsync(path);
|
|
442
|
+
}
|
|
443
|
+
async openFileAsync(path) {
|
|
444
|
+
if (!this.isWithdrawn)
|
|
445
|
+
await this.host.openFileAsync(path);
|
|
446
|
+
}
|
|
447
|
+
chooseFolderAsync() {
|
|
448
|
+
return this.isWithdrawn ? Promise.resolve(null) : this.host.chooseFolderAsync();
|
|
449
|
+
}
|
|
450
|
+
async chooseFilePathAsync(options = {}) {
|
|
451
|
+
const { extensions, folder } = options;
|
|
452
|
+
if (!Object.isUndefined(extensions) && (extensions.length === 0 || extensions.length > Resources.maximumFileExtensions || !extensions.every(t => Resources.fileExtensionPattern.test(t))))
|
|
453
|
+
throw new ArgumentException(Resources.fileExtensionsInvalid, Resources.extensionsParameter);
|
|
454
|
+
if (!Object.isUndefined(folder) && !this.isAbsoluteFolder(folder))
|
|
455
|
+
throw new ArgumentException(Resources.fileChoiceFolderInvalid, Resources.folderParameter);
|
|
456
|
+
return this.isWithdrawn ? null : await this.host.chooseFilePathAsync(options);
|
|
457
|
+
}
|
|
458
|
+
saveFileAsync(name, bytes) {
|
|
459
|
+
return this.isWithdrawn ? Promise.resolve(FileSaveOutcome.Cancelled) : this.host.saveFileAsync(name, bytes);
|
|
460
|
+
}
|
|
461
|
+
async chooseFilesAsync(options = {}) {
|
|
462
|
+
WindowPartContext.requireLifetime(options.lifetime);
|
|
463
|
+
if (this.isWithdrawn)
|
|
464
|
+
return IssuedFileGrants.none;
|
|
465
|
+
return this.keepGrants(await this.host.chooseFilesAsync(this.moduleId, options));
|
|
466
|
+
}
|
|
467
|
+
async grantFilesAsync(files, options = {}) {
|
|
468
|
+
WindowPartContext.requireLifetime(options.lifetime);
|
|
469
|
+
if (files.length > Resources.maximumOfferedFiles)
|
|
470
|
+
throw new ArgumentOutOfRangeException(Resources.filesParameter, files.length, Resources.tooManyOfferedFiles);
|
|
471
|
+
if (this.isWithdrawn || files.length === 0)
|
|
472
|
+
return IssuedFileGrants.none;
|
|
473
|
+
return this.keepGrants(await this.host.grantFilesAsync(this.moduleId, files, options));
|
|
474
|
+
}
|
|
475
|
+
discardFileGrants(grants) {
|
|
476
|
+
this.discard([...new Set(grants)].filter(t => this.fileGrants.delete(t)));
|
|
477
|
+
}
|
|
478
|
+
fileAddressOf(grant) {
|
|
479
|
+
if (!Resources.sharedFileGrantPattern.test(grant))
|
|
480
|
+
throw new ArgumentException(Resources.sharedFileGrantInvalid, Resources.grantParameter);
|
|
481
|
+
if (this.isWithdrawn)
|
|
482
|
+
this.discard([grant]);
|
|
483
|
+
else
|
|
484
|
+
this.fileGrants.add(grant);
|
|
485
|
+
return Resources.formatSharedFileUrl(grant);
|
|
486
|
+
}
|
|
487
|
+
async requestAsync(method, parameters) {
|
|
488
|
+
this.requireAllowed(method);
|
|
489
|
+
return this.host.requestAsync(method, parameters);
|
|
490
|
+
}
|
|
491
|
+
onEvent(event, listener) {
|
|
492
|
+
this.requireAllowed(event);
|
|
493
|
+
if (this.isWithdrawn)
|
|
494
|
+
return WindowPartContext.ignore;
|
|
495
|
+
const unsubscribe = this.host.onEvent(event, listener);
|
|
496
|
+
this.subscriptions.push(unsubscribe);
|
|
497
|
+
return unsubscribe;
|
|
498
|
+
}
|
|
499
|
+
readSetting(name) {
|
|
500
|
+
this.requireReadable(name);
|
|
501
|
+
return this.host.readSetting(name);
|
|
502
|
+
}
|
|
503
|
+
async readSettingAsync(name, scope = null) {
|
|
504
|
+
this.requireReadable(name);
|
|
505
|
+
return await this.host.readSettingAsync(name, scope);
|
|
506
|
+
}
|
|
507
|
+
async writeSettingAsync(name, value, scope = null) {
|
|
508
|
+
this.requireOwn(name);
|
|
509
|
+
await this.host.writeSettingAsync(name, value, scope);
|
|
510
|
+
}
|
|
511
|
+
async resetSettingAsync(name, scope = null) {
|
|
512
|
+
this.requireOwn(name);
|
|
513
|
+
await this.host.resetSettingAsync(name, scope);
|
|
514
|
+
}
|
|
515
|
+
onSettingChanged(name, listener) {
|
|
516
|
+
this.requireReadable(name);
|
|
517
|
+
if (this.isWithdrawn)
|
|
518
|
+
return WindowPartContext.ignore;
|
|
519
|
+
const unsubscribe = this.host.onSettingChanged(t => {
|
|
520
|
+
if (t.key.name.text === name)
|
|
521
|
+
listener(t.value, t.key.scope, t.isSet);
|
|
522
|
+
});
|
|
523
|
+
this.subscriptions.push(unsubscribe);
|
|
524
|
+
return unsubscribe;
|
|
525
|
+
}
|
|
526
|
+
onDependencyChanged(listener) {
|
|
527
|
+
if (this.isWithdrawn)
|
|
528
|
+
return WindowPartContext.ignore;
|
|
529
|
+
const entry = (moduleId, isActive) => listener(moduleId, isActive);
|
|
530
|
+
this.dependencyListeners.add(entry);
|
|
531
|
+
const stop = () => {
|
|
532
|
+
this.dependencyListeners.delete(entry);
|
|
533
|
+
};
|
|
534
|
+
this.subscriptions.push(stop);
|
|
535
|
+
return stop;
|
|
536
|
+
}
|
|
537
|
+
isDependencyActive(moduleId) {
|
|
538
|
+
return !this.isWithdrawn && this.activeDependencies.has(moduleId);
|
|
539
|
+
}
|
|
540
|
+
announceDependency(moduleId, isActive, fail) {
|
|
541
|
+
if (isActive)
|
|
542
|
+
this.activeDependencies.add(moduleId);
|
|
543
|
+
else
|
|
544
|
+
this.activeDependencies.delete(moduleId);
|
|
545
|
+
for (const listener of [...this.dependencyListeners]) {
|
|
546
|
+
if (!this.dependencyListeners.has(listener))
|
|
547
|
+
continue;
|
|
548
|
+
try {
|
|
549
|
+
listener(moduleId, isActive);
|
|
550
|
+
}
|
|
551
|
+
catch (error) {
|
|
552
|
+
fail(error);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
withdraw() {
|
|
557
|
+
this.isWithdrawn = true;
|
|
558
|
+
this.webViews.withdraw();
|
|
559
|
+
this.discard([...this.fileGrants]);
|
|
560
|
+
this.fileGrants.clear();
|
|
561
|
+
for (const unsubscribe of this.subscriptions.splice(0))
|
|
562
|
+
unsubscribe();
|
|
563
|
+
this.withdrawnViews.push(...this.viewList.splice(0));
|
|
564
|
+
this.documentList.length = 0;
|
|
565
|
+
this.placeholderList.length = 0;
|
|
566
|
+
this.settingsPageList.length = 0;
|
|
567
|
+
this.searchSourceList.length = 0;
|
|
568
|
+
this.saveList.length = 0;
|
|
569
|
+
this.commandList.length = 0;
|
|
570
|
+
for (const handle of [...this.notifications])
|
|
571
|
+
this.dismissNotification(handle);
|
|
572
|
+
for (const palette of [...this.palettes])
|
|
573
|
+
palette.close();
|
|
574
|
+
for (const view of [...this.badgedViews])
|
|
575
|
+
this.host.setViewBadge(view, null);
|
|
576
|
+
this.badgedViews.clear();
|
|
577
|
+
for (const [key, marks] of this.workingTabs) {
|
|
578
|
+
marks.clear();
|
|
579
|
+
this.host.setTabWorking(key, false);
|
|
580
|
+
}
|
|
581
|
+
this.workingTabs.clear();
|
|
582
|
+
for (const [key, marks] of this.waitingTabs) {
|
|
583
|
+
marks.clear();
|
|
584
|
+
this.host.setTabWaiting(key, false);
|
|
585
|
+
}
|
|
586
|
+
this.waitingTabs.clear();
|
|
587
|
+
this.statusBarItemList.length = 0;
|
|
588
|
+
this.topBarActionList.length = 0;
|
|
589
|
+
this.host.refresh();
|
|
590
|
+
}
|
|
591
|
+
isAllowed(name) {
|
|
592
|
+
return this.owners.includes(name.substring(0, name.indexOf(Resources.contributionSeparator)));
|
|
593
|
+
}
|
|
594
|
+
get knownViews() {
|
|
595
|
+
return this.isWithdrawn ? this.withdrawnViews : this.viewList;
|
|
596
|
+
}
|
|
597
|
+
keepGrants(issued) {
|
|
598
|
+
const grants = issued.files.map(t => t.grant);
|
|
599
|
+
if (this.isWithdrawn) {
|
|
600
|
+
this.discard(grants);
|
|
601
|
+
return IssuedFileGrants.none;
|
|
602
|
+
}
|
|
603
|
+
for (const grant of grants)
|
|
604
|
+
this.fileGrants.add(grant);
|
|
605
|
+
return issued;
|
|
606
|
+
}
|
|
607
|
+
discard(grants) {
|
|
608
|
+
if (grants.length > 0)
|
|
609
|
+
this.host.discardFileGrants(grants);
|
|
610
|
+
}
|
|
611
|
+
isAbsoluteFolder(folder) {
|
|
612
|
+
const absolute = this.host.platform === Resources.windowsPlatform ? Resources.windowsAbsolutePathPattern : Resources.posixAbsolutePathPattern;
|
|
613
|
+
return absolute.test(folder) && !Resources.controlCharacterPattern.test(folder);
|
|
614
|
+
}
|
|
615
|
+
static requireLifetime(lifetime) {
|
|
616
|
+
if (!Object.isUndefined(lifetime) && (!Number.isInteger(lifetime) || lifetime <= 0 || lifetime > FileGrant.maximumLifetime))
|
|
617
|
+
throw new ArgumentOutOfRangeException(Resources.lifetimeParameter, lifetime, Resources.fileGrantLifetimeInvalid);
|
|
618
|
+
}
|
|
619
|
+
static unposted(id) {
|
|
620
|
+
return new NotificationHandle(id, WindowPartContext.ignore);
|
|
621
|
+
}
|
|
622
|
+
dismissNotification(handle) {
|
|
623
|
+
if (this.notifications.delete(handle))
|
|
624
|
+
this.host.dismissNotification(handle.id);
|
|
625
|
+
}
|
|
626
|
+
requireNotification(post) {
|
|
627
|
+
this.requireOwn(post.kind.text);
|
|
628
|
+
if (!this.source.notificationKinds.includes(post.kind.text))
|
|
629
|
+
throw new ContributionNotDeclaredException(this.moduleId, post.kind.text, Resources.notificationKind);
|
|
630
|
+
for (const command of [...Object.isNull(post.open) ? [] : [post.open], ...post.actions.map(t => t.command)])
|
|
631
|
+
this.requireAllowed(command.name.text);
|
|
632
|
+
}
|
|
633
|
+
async openWebViewAsync(pane, profileKey) {
|
|
634
|
+
const tab = this.findOwnTab(pane.name.text, pane.instance ?? undefined);
|
|
635
|
+
return await this.host.openWebViewAsync(this, this.moduleId, pane, tab, profileKey);
|
|
636
|
+
}
|
|
637
|
+
markTab(name, instance, tabs, show) {
|
|
638
|
+
const key = this.findOwnTab(name, instance).key;
|
|
639
|
+
if (this.isWithdrawn)
|
|
640
|
+
return WindowPartContext.ignore;
|
|
641
|
+
const mark = {};
|
|
642
|
+
const marks = tabs.get(key) ?? new Set();
|
|
643
|
+
marks.add(mark);
|
|
644
|
+
if (marks.size === 1) {
|
|
645
|
+
tabs.set(key, marks);
|
|
646
|
+
show(key, true);
|
|
647
|
+
}
|
|
648
|
+
return () => {
|
|
649
|
+
if (!marks.delete(mark) || marks.size > 0)
|
|
650
|
+
return;
|
|
651
|
+
tabs.delete(key);
|
|
652
|
+
show(key, false);
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
findOwnTab(name, instance) {
|
|
656
|
+
this.requireOwn(name);
|
|
657
|
+
if (this.source.viewNames.includes(name))
|
|
658
|
+
return new ViewTab(name, instance);
|
|
659
|
+
if (this.source.documentNames.includes(name))
|
|
660
|
+
return new DocumentTab(name, instance);
|
|
661
|
+
throw new ContributionNotDeclaredException(this.moduleId, name, Resources.viewOrDocumentKind);
|
|
662
|
+
}
|
|
663
|
+
requireOwn(name) {
|
|
664
|
+
if (!name.startsWith(`${this.moduleId}${Resources.contributionSeparator}`))
|
|
665
|
+
throw new ForeignContributionException(this.moduleId, name);
|
|
666
|
+
}
|
|
667
|
+
requireInstance(name, instance) {
|
|
668
|
+
this.requireInstanceView(name);
|
|
669
|
+
if (String.isNullOrWhitespace(instance))
|
|
670
|
+
throw new ArgumentException(Resources.invalidInstance, Resources.instanceParameter);
|
|
671
|
+
}
|
|
672
|
+
requireOwnDocument(name) {
|
|
673
|
+
this.requireOwn(name);
|
|
674
|
+
if (!this.source.documentNames.includes(name))
|
|
675
|
+
throw new ContributionNotDeclaredException(this.moduleId, name, Resources.documentKind);
|
|
676
|
+
}
|
|
677
|
+
requireInstanceView(name) {
|
|
678
|
+
this.requireOwn(name);
|
|
679
|
+
if (!this.knownViews.some(t => t.name === name && t.hasInstances))
|
|
680
|
+
throw new ContributionNotDeclaredException(this.moduleId, name, Resources.instanceViewKind);
|
|
681
|
+
}
|
|
682
|
+
requirePlainView(name) {
|
|
683
|
+
this.requireOwn(name);
|
|
684
|
+
if (!this.knownViews.some(t => t.name === name && !t.hasInstances))
|
|
685
|
+
throw new ContributionNotDeclaredException(this.moduleId, name, Resources.plainViewKind);
|
|
686
|
+
}
|
|
687
|
+
requireDynamicSetting(setting) {
|
|
688
|
+
this.requireOwn(setting);
|
|
689
|
+
if (!this.host.declaresDynamicSetting(setting))
|
|
690
|
+
throw new ContributionNotDeclaredException(this.moduleId, setting, Resources.dynamicSettingKind);
|
|
691
|
+
}
|
|
692
|
+
requireDeclared(name, declared, registered, kind) {
|
|
693
|
+
this.requireOwn(name);
|
|
694
|
+
if (!declared.includes(name))
|
|
695
|
+
throw new ContributionNotDeclaredException(this.moduleId, name, kind);
|
|
696
|
+
if (registered.some(t => t.name === name))
|
|
697
|
+
throw new ContributionRegisteredException(this.moduleId, name, kind);
|
|
698
|
+
}
|
|
699
|
+
requireReadable(name) {
|
|
700
|
+
if (!name.startsWith(`${Resources.shellOwner}${Resources.contributionSeparator}`))
|
|
701
|
+
this.requireAllowed(name);
|
|
702
|
+
}
|
|
703
|
+
requireAllowed(name) {
|
|
704
|
+
if (!this.isAllowed(name))
|
|
705
|
+
throw new ForeignNameException(this.moduleId, name);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
//# sourceMappingURL=window-part-context.js.map
|