@theia/core 1.77.0-next.7 → 1.77.0-next.77
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/README.md +5 -5
- package/lib/browser/breadcrumbs/breadcrumbs-renderer.js +1 -1
- package/lib/browser/breadcrumbs/breadcrumbs-renderer.js.map +1 -1
- package/lib/browser/catalog.json +304 -18
- package/lib/browser/color-application-contribution.d.ts +7 -1
- package/lib/browser/color-application-contribution.d.ts.map +1 -1
- package/lib/browser/color-application-contribution.js +15 -4
- package/lib/browser/color-application-contribution.js.map +1 -1
- package/lib/browser/color-application-contribution.spec.d.ts +2 -0
- package/lib/browser/color-application-contribution.spec.d.ts.map +1 -0
- package/lib/browser/color-application-contribution.spec.js +96 -0
- package/lib/browser/color-application-contribution.spec.js.map +1 -0
- package/lib/browser/color-registry.d.ts +7 -1
- package/lib/browser/color-registry.d.ts.map +1 -1
- package/lib/browser/color-registry.js +12 -0
- package/lib/browser/color-registry.js.map +1 -1
- package/lib/browser/common-commands.d.ts +3 -0
- package/lib/browser/common-commands.d.ts.map +1 -1
- package/lib/browser/common-commands.js +15 -0
- package/lib/browser/common-commands.js.map +1 -1
- package/lib/browser/common-frontend-contribution.d.ts +8 -1
- package/lib/browser/common-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/common-frontend-contribution.js +47 -3
- package/lib/browser/common-frontend-contribution.js.map +1 -1
- package/lib/browser/common-frontend-contribution.spec.js +2 -1
- package/lib/browser/common-frontend-contribution.spec.js.map +1 -1
- package/lib/browser/components/card.d.ts +1 -1
- package/lib/browser/components/card.d.ts.map +1 -1
- package/lib/browser/components/card.js +3 -2
- package/lib/browser/components/card.js.map +1 -1
- package/lib/browser/connection-status-service.spec.js +2 -1
- package/lib/browser/connection-status-service.spec.js.map +1 -1
- package/lib/browser/context-key-service.d.ts +11 -0
- package/lib/browser/context-key-service.d.ts.map +1 -1
- package/lib/browser/context-key-service.js +7 -0
- package/lib/browser/context-key-service.js.map +1 -1
- package/lib/browser/decorations-service.spec.js +2 -1
- package/lib/browser/decorations-service.spec.js.map +1 -1
- package/lib/browser/dialogs/react-dialog.spec.js +2 -1
- package/lib/browser/dialogs/react-dialog.spec.js.map +1 -1
- package/lib/browser/diff-uris.js +1 -1
- package/lib/browser/diff-uris.js.map +1 -1
- package/lib/browser/endpoint.js +2 -1
- package/lib/browser/endpoint.js.map +1 -1
- package/lib/browser/endpoint.spec.js +2 -1
- package/lib/browser/endpoint.spec.js.map +1 -1
- package/lib/browser/frontend-application-module.d.ts.map +1 -1
- package/lib/browser/frontend-application-module.js +3 -0
- package/lib/browser/frontend-application-module.js.map +1 -1
- package/lib/browser/keybinding.d.ts +95 -17
- package/lib/browser/keybinding.d.ts.map +1 -1
- package/lib/browser/keybinding.js +406 -76
- package/lib/browser/keybinding.js.map +1 -1
- package/lib/browser/keybinding.spec.js +804 -33
- package/lib/browser/keybinding.spec.js.map +1 -1
- package/lib/browser/keyboard/browser-keyboard-frontend-contribution.js +1 -1
- package/lib/browser/keyboard/browser-keyboard-frontend-contribution.js.map +1 -1
- package/lib/browser/keyboard/browser-keyboard-layout-provider.d.ts +3 -4
- package/lib/browser/keyboard/browser-keyboard-layout-provider.d.ts.map +1 -1
- package/lib/browser/keyboard/browser-keyboard-layout-provider.js +3 -3
- package/lib/browser/keyboard/browser-keyboard-layout-provider.js.map +1 -1
- package/lib/browser/keyboard/browser-keyboard-layout-provider.spec.js +42 -3
- package/lib/browser/keyboard/browser-keyboard-layout-provider.spec.js.map +1 -1
- package/lib/browser/keyboard/keyboard-layout-service.d.ts +67 -15
- package/lib/browser/keyboard/keyboard-layout-service.d.ts.map +1 -1
- package/lib/browser/keyboard/keyboard-layout-service.js +313 -98
- package/lib/browser/keyboard/keyboard-layout-service.js.map +1 -1
- package/lib/browser/keyboard/keyboard-layout-service.spec.js +570 -15
- package/lib/browser/keyboard/keyboard-layout-service.spec.js.map +1 -1
- package/lib/browser/keyboard/keys.spec.js +187 -3
- package/lib/browser/keyboard/keys.spec.js.map +1 -1
- package/lib/browser/label-provider.d.ts.map +1 -1
- package/lib/browser/label-provider.js +5 -3
- package/lib/browser/label-provider.js.map +1 -1
- package/lib/browser/label-provider.spec.js +2 -1
- package/lib/browser/label-provider.spec.js.map +1 -1
- package/lib/browser/markdown-rendering/markdown-link-handler.js +2 -1
- package/lib/browser/markdown-rendering/markdown-link-handler.js.map +1 -1
- package/lib/browser/markdown-rendering/markdown-renderer.d.ts +1 -1
- package/lib/browser/markdown-rendering/markdown-renderer.d.ts.map +1 -1
- package/lib/browser/markdown-rendering/markdown-renderer.js +4 -4
- package/lib/browser/markdown-rendering/markdown-renderer.js.map +1 -1
- package/lib/browser/markdown-rendering/markdown.js +2 -1
- package/lib/browser/markdown-rendering/markdown.js.map +1 -1
- package/lib/browser/markdown-rendering/markdown.spec.js +2 -1
- package/lib/browser/markdown-rendering/markdown.spec.js.map +1 -1
- package/lib/browser/menu/action-menu-node.d.ts +5 -3
- package/lib/browser/menu/action-menu-node.d.ts.map +1 -1
- package/lib/browser/menu/action-menu-node.js +2 -11
- package/lib/browser/menu/action-menu-node.js.map +1 -1
- package/lib/browser/menu/action-menu-node.spec.d.ts +2 -0
- package/lib/browser/menu/action-menu-node.spec.d.ts.map +1 -0
- package/lib/browser/menu/action-menu-node.spec.js +54 -0
- package/lib/browser/menu/action-menu-node.spec.js.map +1 -0
- package/lib/browser/menu/browser-menu-plugin.js +1 -1
- package/lib/browser/menu/browser-menu-plugin.js.map +1 -1
- package/lib/browser/menu/menu.spec.js +2 -1
- package/lib/browser/menu/menu.spec.js.map +1 -1
- package/lib/browser/opener-service.spec.js +3 -2
- package/lib/browser/opener-service.spec.js.map +1 -1
- package/lib/browser/perspective-service.spec.js +2 -1
- package/lib/browser/perspective-service.spec.js.map +1 -1
- package/lib/browser/preferences/preference-proxy.spec.js +2 -1
- package/lib/browser/preferences/preference-proxy.spec.js.map +1 -1
- package/lib/browser/preferences/preference-schema-provider.spec.js +2 -1
- package/lib/browser/preferences/preference-schema-provider.spec.js.map +1 -1
- package/lib/browser/preferences/preference-service.spec.js +2 -1
- package/lib/browser/preferences/preference-service.spec.js.map +1 -1
- package/lib/browser/preferences/preference-validation-service.spec.js +78 -77
- package/lib/browser/preferences/preference-validation-service.spec.js.map +1 -1
- package/lib/browser/quick-input/quick-command-service.d.ts +10 -1
- package/lib/browser/quick-input/quick-command-service.d.ts.map +1 -1
- package/lib/browser/quick-input/quick-command-service.js +31 -6
- package/lib/browser/quick-input/quick-command-service.js.map +1 -1
- package/lib/browser/quick-input/quick-command-service.spec.d.ts +2 -0
- package/lib/browser/quick-input/quick-command-service.spec.d.ts.map +1 -0
- package/lib/browser/quick-input/quick-command-service.spec.js +130 -0
- package/lib/browser/quick-input/quick-command-service.spec.js.map +1 -0
- package/lib/browser/quick-input/quick-help-service.js +1 -1
- package/lib/browser/quick-input/quick-help-service.js.map +1 -1
- package/lib/browser/quick-input/quick-input-service.spec.js +2 -1
- package/lib/browser/quick-input/quick-input-service.spec.js.map +1 -1
- package/lib/browser/quick-input/quick-pick-service-impl.d.ts +6 -6
- package/lib/browser/quick-input/quick-pick-service-impl.d.ts.map +1 -1
- package/lib/browser/quick-input/quick-view-service.spec.js +2 -1
- package/lib/browser/quick-input/quick-view-service.spec.js.map +1 -1
- package/lib/browser/secondary-window-handler.d.ts +4 -4
- package/lib/browser/secondary-window-handler.d.ts.map +1 -1
- package/lib/browser/shell/application-shell.js +1 -1
- package/lib/browser/shell/application-shell.js.map +1 -1
- package/lib/browser/shell/application-shell.spec.js +2 -1
- package/lib/browser/shell/application-shell.spec.js.map +1 -1
- package/lib/browser/shell/index.d.ts +1 -0
- package/lib/browser/shell/index.d.ts.map +1 -1
- package/lib/browser/shell/index.js +1 -0
- package/lib/browser/shell/index.js.map +1 -1
- package/lib/browser/shell/shell-layout-restorer.d.ts +2 -0
- package/lib/browser/shell/shell-layout-restorer.d.ts.map +1 -1
- package/lib/browser/shell/shell-layout-restorer.js +6 -0
- package/lib/browser/shell/shell-layout-restorer.js.map +1 -1
- package/lib/browser/shell/shell-layout-restorer.spec.js +9 -1
- package/lib/browser/shell/shell-layout-restorer.spec.js.map +1 -1
- package/lib/browser/shell/side-panel-handler.d.ts +12 -1
- package/lib/browser/shell/side-panel-handler.d.ts.map +1 -1
- package/lib/browser/shell/side-panel-handler.js +73 -0
- package/lib/browser/shell/side-panel-handler.js.map +1 -1
- package/lib/browser/shell/side-panel-handler.spec.d.ts +2 -0
- package/lib/browser/shell/side-panel-handler.spec.d.ts.map +1 -0
- package/lib/browser/shell/side-panel-handler.spec.js +85 -0
- package/lib/browser/shell/side-panel-handler.spec.js.map +1 -0
- package/lib/browser/shell/side-panel-item-visibility.d.ts +55 -0
- package/lib/browser/shell/side-panel-item-visibility.d.ts.map +1 -0
- package/lib/browser/shell/side-panel-item-visibility.js +100 -0
- package/lib/browser/shell/side-panel-item-visibility.js.map +1 -0
- package/lib/browser/shell/side-panel-item-visibility.spec.d.ts +2 -0
- package/lib/browser/shell/side-panel-item-visibility.spec.d.ts.map +1 -0
- package/lib/browser/shell/side-panel-item-visibility.spec.js +80 -0
- package/lib/browser/shell/side-panel-item-visibility.spec.js.map +1 -0
- package/lib/browser/shell/side-panel-toolbar.d.ts +1 -1
- package/lib/browser/shell/side-panel-toolbar.d.ts.map +1 -1
- package/lib/browser/shell/sidebar-menu-widget.js +1 -1
- package/lib/browser/shell/sidebar-menu-widget.js.map +1 -1
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.js +1 -1
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.js.map +1 -1
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.spec.js +2 -1
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.spec.js.map +1 -1
- package/lib/browser/shell/tab-bars.d.ts +17 -0
- package/lib/browser/shell/tab-bars.d.ts.map +1 -1
- package/lib/browser/shell/tab-bars.js +33 -15
- package/lib/browser/shell/tab-bars.js.map +1 -1
- package/lib/browser/shell/tab-bars.spec.js +86 -0
- package/lib/browser/shell/tab-bars.spec.js.map +1 -1
- package/lib/browser/status-bar/status-bar.js +1 -1
- package/lib/browser/status-bar/status-bar.js.map +1 -1
- package/lib/browser/storage-service.spec.js +2 -1
- package/lib/browser/storage-service.spec.js.map +1 -1
- package/lib/browser/test/jsdom.d.ts.map +1 -1
- package/lib/browser/test/jsdom.js +11 -0
- package/lib/browser/test/jsdom.js.map +1 -1
- package/lib/browser/tooltip-service.js +1 -1
- package/lib/browser/tooltip-service.js.map +1 -1
- package/lib/browser/tree/tree-compression/compressed-tree-model.d.ts +2 -0
- package/lib/browser/tree/tree-compression/compressed-tree-model.d.ts.map +1 -1
- package/lib/browser/tree/tree-compression/compressed-tree-model.js +6 -2
- package/lib/browser/tree/tree-compression/compressed-tree-model.js.map +1 -1
- package/lib/browser/tree/tree-compression/compressed-tree-model.spec.d.ts +2 -0
- package/lib/browser/tree/tree-compression/compressed-tree-model.spec.d.ts.map +1 -0
- package/lib/browser/tree/tree-compression/compressed-tree-model.spec.js +52 -0
- package/lib/browser/tree/tree-compression/compressed-tree-model.spec.js.map +1 -0
- package/lib/browser/tree/tree-consistency.spec.js +1 -1
- package/lib/browser/tree/tree-consistency.spec.js.map +1 -1
- package/lib/browser/tree/tree-container.spec.js +6 -5
- package/lib/browser/tree/tree-container.spec.js.map +1 -1
- package/lib/browser/tree/tree-iterator.js +1 -1
- package/lib/browser/tree/tree-iterator.js.map +1 -1
- package/lib/browser/tree/tree-model.js +2 -2
- package/lib/browser/tree/tree-model.js.map +1 -1
- package/lib/browser/tree/tree-selection-state.d.ts +23 -1
- package/lib/browser/tree/tree-selection-state.d.ts.map +1 -1
- package/lib/browser/tree/tree-selection-state.js +23 -1
- package/lib/browser/tree/tree-selection-state.js.map +1 -1
- package/lib/browser/tree/tree-view-welcome-widget.js +1 -1
- package/lib/browser/tree/tree-view-welcome-widget.js.map +1 -1
- package/lib/browser/tree/tree-widget.d.ts +2 -2
- package/lib/browser/tree/tree-widget.d.ts.map +1 -1
- package/lib/browser/tree/tree-widget.js +3 -4
- package/lib/browser/tree/tree-widget.js.map +1 -1
- package/lib/browser/tree/tree-widget.spec.js +18 -0
- package/lib/browser/tree/tree-widget.spec.js.map +1 -1
- package/lib/browser/tree/tree.spec.js +2 -1
- package/lib/browser/tree/tree.spec.js.map +1 -1
- package/lib/browser/user-working-directory-provider.js +1 -1
- package/lib/browser/user-working-directory-provider.js.map +1 -1
- package/lib/browser/view-container.d.ts.map +1 -1
- package/lib/browser/view-container.js +2 -1
- package/lib/browser/view-container.js.map +1 -1
- package/lib/browser/widget-status-bar-service.d.ts +3 -1
- package/lib/browser/widget-status-bar-service.d.ts.map +1 -1
- package/lib/browser/widget-status-bar-service.js +15 -2
- package/lib/browser/widget-status-bar-service.js.map +1 -1
- package/lib/browser/widget-status-bar-service.spec.d.ts +2 -0
- package/lib/browser/widget-status-bar-service.spec.d.ts.map +1 -0
- package/lib/browser/widget-status-bar-service.spec.js +92 -0
- package/lib/browser/widget-status-bar-service.spec.js.map +1 -0
- package/lib/browser/widgets/react-renderer.js +1 -1
- package/lib/browser/widgets/react-renderer.js.map +1 -1
- package/lib/browser/widgets/react-widget.js +1 -1
- package/lib/browser/widgets/react-widget.js.map +1 -1
- package/lib/browser/widgets/select-component.d.ts.map +1 -1
- package/lib/browser/widgets/select-component.js +10 -14
- package/lib/browser/widgets/select-component.js.map +1 -1
- package/lib/browser/widgets/select-component.spec.d.ts +2 -0
- package/lib/browser/widgets/select-component.spec.d.ts.map +1 -0
- package/lib/browser/widgets/select-component.spec.js +67 -0
- package/lib/browser/widgets/select-component.spec.js.map +1 -0
- package/lib/browser/widgets/widget.js +1 -1
- package/lib/browser/widgets/widget.js.map +1 -1
- package/lib/common/buffer.js +3 -2
- package/lib/common/buffer.js.map +1 -1
- package/lib/common/cancellation.js.map +1 -1
- package/lib/common/command.spec.js +2 -1
- package/lib/common/command.spec.js.map +1 -1
- package/lib/common/core-preferences.js +5 -5
- package/lib/common/core-preferences.js.map +1 -1
- package/lib/common/disposable.spec.js +3 -2
- package/lib/common/disposable.spec.js.map +1 -1
- package/lib/common/encoding-service.js +2 -2
- package/lib/common/encoding-service.js.map +1 -1
- package/lib/common/event.d.ts +1 -1
- package/lib/common/event.d.ts.map +1 -1
- package/lib/common/event.js +0 -1
- package/lib/common/event.js.map +1 -1
- package/lib/common/file-uri.js +2 -1
- package/lib/common/file-uri.js.map +1 -1
- package/lib/common/fuzzy-search.js +1 -1
- package/lib/common/fuzzy-search.js.map +1 -1
- package/lib/common/glob.d.ts.map +1 -1
- package/lib/common/glob.js +9 -15
- package/lib/common/glob.js.map +1 -1
- package/lib/common/index.js +1 -1
- package/lib/common/index.js.map +1 -1
- package/lib/common/keyboard/keyboard-layout-provider.d.ts +7 -0
- package/lib/common/keyboard/keyboard-layout-provider.d.ts.map +1 -1
- package/lib/common/keyboard/keyboard-layout-provider.js.map +1 -1
- package/lib/common/keys.d.ts +86 -3
- package/lib/common/keys.d.ts.map +1 -1
- package/lib/common/keys.js +263 -24
- package/lib/common/keys.js.map +1 -1
- package/lib/common/message-rpc/channel.spec.js +3 -2
- package/lib/common/message-rpc/channel.spec.js.map +1 -1
- package/lib/common/messaging/proxy-factory.js +2 -2
- package/lib/common/messaging/proxy-factory.js.map +1 -1
- package/lib/common/messaging/proxy-factory.spec.js +2 -1
- package/lib/common/messaging/proxy-factory.spec.js.map +1 -1
- package/lib/common/messaging/web-socket-channel.d.ts +1 -1
- package/lib/common/messaging/web-socket-channel.d.ts.map +1 -1
- package/lib/common/path.spec.js +2 -1
- package/lib/common/path.spec.js.map +1 -1
- package/lib/common/performance/stopwatch.spec.js +2 -1
- package/lib/common/performance/stopwatch.spec.js.map +1 -1
- package/lib/common/preferences/preference-schema-service.d.ts +2 -2
- package/lib/common/preferences/preference-schema-service.d.ts.map +1 -1
- package/lib/common/preferences/preference-service.js +1 -1
- package/lib/common/preferences/preference-service.js.map +1 -1
- package/lib/common/promise-util.d.ts.map +1 -1
- package/lib/common/promise-util.js +5 -2
- package/lib/common/promise-util.js.map +1 -1
- package/lib/common/promise-util.spec.js +17 -1
- package/lib/common/promise-util.spec.js.map +1 -1
- package/lib/common/quick-pick-service.d.ts +5 -0
- package/lib/common/quick-pick-service.d.ts.map +1 -1
- package/lib/common/quick-pick-service.js +2 -1
- package/lib/common/quick-pick-service.js.map +1 -1
- package/lib/common/reference.spec.js +2 -1
- package/lib/common/reference.spec.js.map +1 -1
- package/lib/common/resource.js +1 -1
- package/lib/common/resource.js.map +1 -1
- package/lib/common/selection-service.spec.js +2 -1
- package/lib/common/selection-service.spec.js.map +1 -1
- package/lib/common/selection.js +2 -1
- package/lib/common/selection.js.map +1 -1
- package/lib/common/stream.d.ts.map +1 -1
- package/lib/common/stream.js +2 -1
- package/lib/common/stream.js.map +1 -1
- package/lib/common/strings.d.ts.map +1 -1
- package/lib/common/strings.js +1 -2
- package/lib/common/strings.js.map +1 -1
- package/lib/common/ternary-search-tree.js +2 -2
- package/lib/common/ternary-search-tree.js.map +1 -1
- package/lib/common/ternary-search-tree.spec.js +12 -0
- package/lib/common/ternary-search-tree.spec.js.map +1 -1
- package/lib/common/test/mock-resource-provider.js +1 -1
- package/lib/common/test/mock-resource-provider.js.map +1 -1
- package/lib/common/types.spec.js +2 -1
- package/lib/common/types.spec.js.map +1 -1
- package/lib/common/uri-command-handler.js +4 -3
- package/lib/common/uri-command-handler.js.map +1 -1
- package/lib/common/uri-command-handler.spec.js +3 -2
- package/lib/common/uri-command-handler.spec.js.map +1 -1
- package/lib/common/uri.spec.js +3 -2
- package/lib/common/uri.spec.js.map +1 -1
- package/lib/electron-browser/electron-clipboard-service.d.ts +1 -1
- package/lib/electron-browser/electron-clipboard-service.d.ts.map +1 -1
- package/lib/electron-browser/keyboard/electron-keyboard-module.d.ts +2 -0
- package/lib/electron-browser/keyboard/electron-keyboard-module.d.ts.map +1 -1
- package/lib/electron-browser/keyboard/electron-keyboard-module.js +8 -1
- package/lib/electron-browser/keyboard/electron-keyboard-module.js.map +1 -1
- package/lib/electron-browser/keyboard/electron-keyboard-module.spec.d.ts +2 -0
- package/lib/electron-browser/keyboard/electron-keyboard-module.spec.d.ts.map +1 -0
- package/lib/electron-browser/keyboard/electron-keyboard-module.spec.js +28 -0
- package/lib/electron-browser/keyboard/electron-keyboard-module.spec.js.map +1 -0
- package/lib/electron-browser/menu/electron-main-menu-factory.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-main-menu-factory.js +3 -2
- package/lib/electron-browser/menu/electron-main-menu-factory.js.map +1 -1
- package/lib/electron-browser/menu/electron-menu-contribution.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-menu-contribution.js +3 -0
- package/lib/electron-browser/menu/electron-menu-contribution.js.map +1 -1
- package/lib/electron-browser/preload.js +1 -1
- package/lib/electron-browser/preload.js.map +1 -1
- package/lib/electron-browser/window/window-zoom-action-bar.js +2 -1
- package/lib/electron-browser/window/window-zoom-action-bar.js.map +1 -1
- package/lib/electron-common/electron-api.d.ts +6 -1
- package/lib/electron-common/electron-api.d.ts.map +1 -1
- package/lib/electron-common/electron-api.js +21 -0
- package/lib/electron-common/electron-api.js.map +1 -1
- package/lib/electron-common/electron-api.spec.d.ts +2 -0
- package/lib/electron-common/electron-api.spec.d.ts.map +1 -0
- package/lib/electron-common/electron-api.spec.js +40 -0
- package/lib/electron-common/electron-api.spec.js.map +1 -0
- package/lib/electron-main/electron-api-main.d.ts +0 -1
- package/lib/electron-main/electron-api-main.d.ts.map +1 -1
- package/lib/electron-main/electron-api-main.js +8 -18
- package/lib/electron-main/electron-api-main.js.map +1 -1
- package/lib/electron-main/electron-main-application.d.ts.map +1 -1
- package/lib/electron-main/electron-main-application.js +10 -7
- package/lib/electron-main/electron-main-application.js.map +1 -1
- package/lib/electron-node/hosting/electron-backend-hosting-module.spec.js +2 -1
- package/lib/electron-node/hosting/electron-backend-hosting-module.spec.js.map +1 -1
- package/lib/electron-node/keyboard/electron-keyboard-layout-provider.js +1 -1
- package/lib/electron-node/keyboard/electron-keyboard-layout-provider.js.map +1 -1
- package/lib/electron-node/token/electron-token-validator.js +2 -2
- package/lib/electron-node/token/electron-token-validator.js.map +1 -1
- package/lib/node/backend-application.d.ts +11 -5
- package/lib/node/backend-application.d.ts.map +1 -1
- package/lib/node/backend-application.js +34 -12
- package/lib/node/backend-application.js.map +1 -1
- package/lib/node/backend-application.spec.js +52 -3
- package/lib/node/backend-application.spec.js.map +1 -1
- package/lib/node/bundled-resource-provider.js +4 -4
- package/lib/node/bundled-resource-provider.js.map +1 -1
- package/lib/node/bundled-resource-provider.spec.js +5 -4
- package/lib/node/bundled-resource-provider.spec.js.map +1 -1
- package/lib/node/cli.d.ts +1 -1
- package/lib/node/cli.d.ts.map +1 -1
- package/lib/node/cli.js +2 -2
- package/lib/node/cli.js.map +1 -1
- package/lib/node/cli.spec.js +3 -2
- package/lib/node/cli.spec.js.map +1 -1
- package/lib/node/console-logger-server.js +1 -1
- package/lib/node/console-logger-server.js.map +1 -1
- package/lib/node/env-variables/env-variables-server.js +1 -1
- package/lib/node/env-variables/env-variables-server.js.map +1 -1
- package/lib/node/environment-utils.spec.js +2 -1
- package/lib/node/environment-utils.spec.js.map +1 -1
- package/lib/node/file-uri.spec.js +4 -3
- package/lib/node/file-uri.spec.js.map +1 -1
- package/lib/node/filesystem-locking.js +1 -1
- package/lib/node/filesystem-locking.js.map +1 -1
- package/lib/node/hosting/browser-connection-token.js +2 -2
- package/lib/node/hosting/browser-connection-token.js.map +1 -1
- package/lib/node/i18n/localization-contribution.js +1 -1
- package/lib/node/i18n/localization-contribution.js.map +1 -1
- package/lib/node/key-store-server.js +1 -1
- package/lib/node/key-store-server.js.map +1 -1
- package/lib/node/logger-cli-contribution.js +2 -2
- package/lib/node/logger-cli-contribution.js.map +1 -1
- package/lib/node/logger-cli-contribution.spec.js +17 -16
- package/lib/node/logger-cli-contribution.spec.js.map +1 -1
- package/lib/node/messaging/binary-message-pipe.d.ts.map +1 -1
- package/lib/node/messaging/binary-message-pipe.js +5 -3
- package/lib/node/messaging/binary-message-pipe.js.map +1 -1
- package/lib/node/messaging/binary-message-pipe.spec.d.ts +2 -0
- package/lib/node/messaging/binary-message-pipe.spec.d.ts.map +1 -0
- package/lib/node/messaging/binary-message-pipe.spec.js +71 -0
- package/lib/node/messaging/binary-message-pipe.spec.js.map +1 -0
- package/lib/node/messaging/ipc-connection-provider.js +2 -2
- package/lib/node/messaging/ipc-connection-provider.js.map +1 -1
- package/lib/node/process-utils.d.ts +61 -0
- package/lib/node/process-utils.d.ts.map +1 -1
- package/lib/node/process-utils.js +157 -4
- package/lib/node/process-utils.js.map +1 -1
- package/lib/node/process-utils.slow-spec.d.ts +2 -0
- package/lib/node/process-utils.slow-spec.d.ts.map +1 -0
- package/lib/node/process-utils.slow-spec.js +106 -0
- package/lib/node/process-utils.slow-spec.js.map +1 -0
- package/lib/node/process-utils.spec.js +139 -1
- package/lib/node/process-utils.spec.js.map +1 -1
- package/lib/node/request/backend-request-facade.spec.js +2 -1
- package/lib/node/request/backend-request-facade.spec.js.map +1 -1
- package/lib/node/setting-service.spec.js +2 -1
- package/lib/node/setting-service.spec.js.map +1 -1
- package/lib/node/test/exiting-backend.d.ts +18 -0
- package/lib/node/test/exiting-backend.d.ts.map +1 -0
- package/lib/node/test/exiting-backend.js +71 -0
- package/lib/node/test/exiting-backend.js.map +1 -0
- package/package.json +16 -16
- package/src/browser/color-application-contribution.spec.ts +108 -0
- package/src/browser/color-application-contribution.ts +16 -4
- package/src/browser/color-registry.ts +13 -0
- package/src/browser/common-commands.ts +15 -0
- package/src/browser/common-frontend-contribution.ts +46 -2
- package/src/browser/components/card.tsx +1 -1
- package/src/browser/context-key-service.ts +15 -0
- package/src/browser/frontend-application-module.ts +3 -0
- package/src/browser/keybinding.spec.ts +895 -34
- package/src/browser/keybinding.ts +470 -85
- package/src/browser/keyboard/browser-keyboard-frontend-contribution.ts +1 -1
- package/src/browser/keyboard/browser-keyboard-layout-provider.spec.ts +52 -1
- package/src/browser/keyboard/browser-keyboard-layout-provider.ts +5 -5
- package/src/browser/keyboard/keyboard-layout-service.spec.ts +673 -15
- package/src/browser/keyboard/keyboard-layout-service.ts +362 -106
- package/src/browser/keyboard/keys.spec.ts +206 -1
- package/src/browser/label-provider.ts +3 -1
- package/src/browser/markdown-rendering/markdown-renderer.ts +1 -1
- package/src/browser/menu/action-menu-node.spec.ts +60 -0
- package/src/browser/menu/action-menu-node.ts +8 -14
- package/src/browser/menu/browser-menu-plugin.ts +1 -1
- package/src/browser/preferences/preference-validation-service.spec.ts +1 -1
- package/src/browser/quick-input/quick-command-service.spec.ts +159 -0
- package/src/browser/quick-input/quick-command-service.ts +36 -9
- package/src/browser/quick-input/quick-help-service.ts +1 -1
- package/src/browser/shell/index.ts +1 -0
- package/src/browser/shell/shell-layout-restorer.spec.ts +10 -0
- package/src/browser/shell/shell-layout-restorer.ts +5 -0
- package/src/browser/shell/side-panel-handler.spec.ts +94 -0
- package/src/browser/shell/side-panel-handler.ts +75 -1
- package/src/browser/shell/side-panel-item-visibility.spec.ts +91 -0
- package/src/browser/shell/side-panel-item-visibility.ts +115 -0
- package/src/browser/shell/tab-bars.spec.ts +96 -1
- package/src/browser/shell/tab-bars.ts +36 -13
- package/src/browser/style/hover-service.css +0 -2
- package/src/browser/test/jsdom.ts +11 -0
- package/src/browser/tree/tree-compression/compressed-tree-model.spec.ts +57 -0
- package/src/browser/tree/tree-compression/compressed-tree-model.ts +11 -2
- package/src/browser/tree/tree-container.spec.ts +1 -1
- package/src/browser/tree/tree-iterator.ts +1 -1
- package/src/browser/tree/tree-model.ts +2 -2
- package/src/browser/tree/tree-selection-state.ts +40 -1
- package/src/browser/tree/tree-widget.spec.tsx +20 -0
- package/src/browser/tree/tree-widget.tsx +4 -5
- package/src/browser/view-container.ts +2 -1
- package/src/browser/widget-status-bar-service.spec.ts +106 -0
- package/src/browser/widget-status-bar-service.ts +16 -3
- package/src/browser/widgets/select-component.spec.ts +77 -0
- package/src/browser/widgets/select-component.tsx +6 -10
- package/src/common/cancellation.ts +1 -1
- package/src/common/core-preferences.ts +5 -5
- package/src/common/disposable.spec.ts +1 -1
- package/src/common/event.ts +1 -2
- package/src/common/glob.ts +13 -30
- package/src/common/json-schema.ts +1 -1
- package/src/common/keyboard/keyboard-layout-provider.ts +8 -0
- package/src/common/keys.ts +312 -27
- package/src/common/message-rpc/channel.spec.ts +1 -1
- package/src/common/messaging/proxy-factory.ts +2 -2
- package/src/common/promise-util.spec.ts +18 -2
- package/src/common/promise-util.ts +5 -2
- package/src/common/quick-pick-service.ts +5 -0
- package/src/common/stream.ts +4 -3
- package/src/common/strings.ts +2 -5
- package/src/common/ternary-search-tree.spec.ts +14 -0
- package/src/common/ternary-search-tree.ts +3 -3
- package/src/common/uri-command-handler.ts +2 -2
- package/src/electron-browser/electron-clipboard-service.ts +1 -1
- package/src/electron-browser/keyboard/electron-keyboard-module.spec.ts +29 -0
- package/src/electron-browser/keyboard/electron-keyboard-module.ts +9 -2
- package/src/electron-browser/menu/electron-main-menu-factory.ts +3 -3
- package/src/electron-browser/menu/electron-menu-contribution.ts +4 -0
- package/src/electron-browser/preload.ts +2 -2
- package/src/electron-common/electron-api.spec.ts +42 -0
- package/src/electron-common/electron-api.ts +24 -1
- package/src/electron-main/electron-api-main.ts +7 -17
- package/src/electron-main/electron-main-application.ts +8 -5
- package/src/node/backend-application.spec.ts +68 -2
- package/src/node/backend-application.ts +28 -6
- package/src/node/cli.ts +1 -1
- package/src/node/logger-cli-contribution.spec.ts +1 -1
- package/src/node/messaging/binary-message-pipe.spec.ts +81 -0
- package/src/node/messaging/binary-message-pipe.ts +5 -4
- package/src/node/process-utils.slow-spec.ts +122 -0
- package/src/node/process-utils.spec.ts +162 -0
- package/src/node/process-utils.ts +166 -3
- package/src/node/test/exiting-backend.ts +75 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting-service.spec.js","sourceRoot":"","sources":["../../src/node/setting-service.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,iCAAiC;AACjC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF
|
|
1
|
+
{"version":3,"file":"setting-service.spec.js","sourceRoot":"","sources":["../../src/node/setting-service.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,iCAAiC;AACjC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,+BAA8B;AAC9B,2BAAoC;AACpC,yCAAsC;AACtC,qDAA+B;AAC/B,2DAA6D;AAC7D,6CAA2C;AAC3C,4DAAwD;AACxD,uCAAoC;AACpC,uDAAuD;AAEvD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAChC,MAAM,gBAAgB,GAAG,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC;IAEzC,MAAM,KAAK,GAAG,GAAc,EAAE;QAC1B,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;QAC/D,SAAS,CAAC,IAAI,CAAC,oCAAkB,CAAC,CAAC,MAAM,EAAE,CAAC;QAC5C,SAAS,CAAC,IAAI,CAAC,wBAAU,CAAC,CAAC,MAAM,EAAE,CAAC;QACpC,SAAS,CAAC,IAAI,CAAC,gBAAO,CAAC,CAAC,SAAS,CAAC,wBAAU,CAAC,CAAC;QAC9C,SAAS,CAAC,IAAI,CAAC,kCAAkB,CAAC,CAAC,eAAe,CAAC;YAC/C,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,gB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its process handlers, starts a
|
|
3
|
+
* child process, prints the PID of the child and exits with code {@link EXITING_BACKEND_EXIT_CODE}.
|
|
4
|
+
* The `exit` handler of the `BackendApplication` then terminates the process tree.
|
|
5
|
+
* Set {@link EXITING_BACKEND_NO_POWERSHELL} to make the listing of the children of the process fail.
|
|
6
|
+
* Set {@link EXITING_BACKEND_GRACEFUL} to shut down as on `SIGTERM` instead, which exits with code 1.
|
|
7
|
+
*/
|
|
8
|
+
import 'reflect-metadata';
|
|
9
|
+
export declare const EXITING_BACKEND_EXIT_CODE = 3;
|
|
10
|
+
/**
|
|
11
|
+
* Environment variable that makes PowerShell unrunnable for the {@link ProcessUtils} of the script.
|
|
12
|
+
*/
|
|
13
|
+
export declare const EXITING_BACKEND_NO_POWERSHELL = "THEIA_TEST_EXITING_BACKEND_NO_POWERSHELL";
|
|
14
|
+
/**
|
|
15
|
+
* Environment variable that makes the script shut down gracefully, as on `SIGTERM`, rather than exit abruptly.
|
|
16
|
+
*/
|
|
17
|
+
export declare const EXITING_BACKEND_GRACEFUL = "THEIA_TEST_EXITING_BACKEND_GRACEFUL";
|
|
18
|
+
//# sourceMappingURL=exiting-backend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exiting-backend.d.ts","sourceRoot":"","sources":["../../../src/node/test/exiting-backend.ts"],"names":[],"mappings":"AAgBA;;;;;;GAMG;AAEH,OAAO,kBAAkB,CAAC;AAW1B,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,6BAA6B,6CAA6C,CAAC;AAExF;;GAEG;AACH,eAAO,MAAM,wBAAwB,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2026 EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.EXITING_BACKEND_GRACEFUL = exports.EXITING_BACKEND_NO_POWERSHELL = exports.EXITING_BACKEND_EXIT_CODE = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
/**
|
|
21
|
+
* Script for tests: creates a `BackendApplication`, which installs its process handlers, starts a
|
|
22
|
+
* child process, prints the PID of the child and exits with code {@link EXITING_BACKEND_EXIT_CODE}.
|
|
23
|
+
* The `exit` handler of the `BackendApplication` then terminates the process tree.
|
|
24
|
+
* Set {@link EXITING_BACKEND_NO_POWERSHELL} to make the listing of the children of the process fail.
|
|
25
|
+
* Set {@link EXITING_BACKEND_GRACEFUL} to shut down as on `SIGTERM` instead, which exits with code 1.
|
|
26
|
+
*/
|
|
27
|
+
require("reflect-metadata");
|
|
28
|
+
const cp = tslib_1.__importStar(require("child_process"));
|
|
29
|
+
const inversify_1 = require("inversify");
|
|
30
|
+
const common_1 = require("../../common");
|
|
31
|
+
const mock_logger_1 = require("../../common/test/mock-logger");
|
|
32
|
+
const backend_application_1 = require("../backend-application");
|
|
33
|
+
const node_stopwatch_1 = require("../performance/node-stopwatch");
|
|
34
|
+
const process_utils_1 = require("../process-utils");
|
|
35
|
+
exports.EXITING_BACKEND_EXIT_CODE = 3;
|
|
36
|
+
/**
|
|
37
|
+
* Environment variable that makes PowerShell unrunnable for the {@link ProcessUtils} of the script.
|
|
38
|
+
*/
|
|
39
|
+
exports.EXITING_BACKEND_NO_POWERSHELL = 'THEIA_TEST_EXITING_BACKEND_NO_POWERSHELL';
|
|
40
|
+
/**
|
|
41
|
+
* Environment variable that makes the script shut down gracefully, as on `SIGTERM`, rather than exit abruptly.
|
|
42
|
+
*/
|
|
43
|
+
exports.EXITING_BACKEND_GRACEFUL = 'THEIA_TEST_EXITING_BACKEND_GRACEFUL';
|
|
44
|
+
class NoPowerShellProcessUtils extends process_utils_1.ProcessUtils {
|
|
45
|
+
winGetPowerShellPath() {
|
|
46
|
+
return 'C:\\does-not-exist\\powershell.exe';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (require.main === module) {
|
|
50
|
+
const container = new inversify_1.Container();
|
|
51
|
+
container.bind(backend_application_1.RootContainer).toConstantValue(container);
|
|
52
|
+
container.bind(common_1.ILogger).to(mock_logger_1.MockLogger).inSingletonScope();
|
|
53
|
+
container.bind(common_1.Stopwatch).to(node_stopwatch_1.NodeStopwatch).inSingletonScope();
|
|
54
|
+
container.bind(process_utils_1.ProcessUtils).to(process.env[exports.EXITING_BACKEND_NO_POWERSHELL] ? NoPowerShellProcessUtils : process_utils_1.ProcessUtils).inSingletonScope();
|
|
55
|
+
container.bind(backend_application_1.BackendApplicationCliContribution).toSelf().inSingletonScope();
|
|
56
|
+
container.bind(backend_application_1.EarlyExpressMiddleware).toSelf().inSingletonScope();
|
|
57
|
+
(0, common_1.bindContributionProvider)(container, backend_application_1.BackendApplicationContribution);
|
|
58
|
+
container.bind(backend_application_1.BackendApplication).toSelf().inSingletonScope();
|
|
59
|
+
container.get(backend_application_1.BackendApplication);
|
|
60
|
+
const child = cp.spawn(process.execPath, ['-e', 'setInterval(() => {}, 1000)'], { stdio: 'ignore' });
|
|
61
|
+
child.on('spawn', () => process.stdout.write(`${child.pid}\n`, () => {
|
|
62
|
+
if (process.env[exports.EXITING_BACKEND_GRACEFUL]) {
|
|
63
|
+
// Signals cannot be sent to a process on Windows, so invoke the handler of the `BackendApplication` directly.
|
|
64
|
+
process.emit('SIGTERM', 'SIGTERM');
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
process.exit(exports.EXITING_BACKEND_EXIT_CODE);
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=exiting-backend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exiting-backend.js","sourceRoot":"","sources":["../../../src/node/test/exiting-backend.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF;;;;;;GAMG;AAEH,4BAA0B;AAC1B,0DAAoC;AACpC,yCAAsC;AACtC,yCAA4E;AAC5E,+DAA2D;AAC3D,gEAEgC;AAChC,kEAA8D;AAC9D,oDAAgD;AAEnC,QAAA,yBAAyB,GAAG,CAAC,CAAC;AAE3C;;GAEG;AACU,QAAA,6BAA6B,GAAG,0CAA0C,CAAC;AAExF;;GAEG;AACU,QAAA,wBAAwB,GAAG,qCAAqC,CAAC;AAE9E,MAAM,wBAAyB,SAAQ,4BAAY;IAC5B,oBAAoB;QACnC,OAAO,oCAAoC,CAAC;IAChD,CAAC;CACJ;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC1B,MAAM,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;IAClC,SAAS,CAAC,IAAI,CAAC,mCAAa,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IACzD,SAAS,CAAC,IAAI,CAAC,gBAAO,CAAC,CAAC,EAAE,CAAC,wBAAU,CAAC,CAAC,gBAAgB,EAAE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,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/core",
|
|
3
|
-
"version": "1.77.0-next.
|
|
3
|
+
"version": "1.77.0-next.77+e4fc9729e",
|
|
4
4
|
"description": "Theia is a cloud & desktop IDE framework implemented in TypeScript.",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@babel/runtime": "^7.29.
|
|
8
|
+
"@babel/runtime": "^7.29.10",
|
|
9
9
|
"@lumino/algorithm": "^2.0.5",
|
|
10
10
|
"@lumino/commands": "^2.3.4",
|
|
11
11
|
"@lumino/coreutils": "^2.2.3",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@lumino/virtualdom": "^2.0.5",
|
|
18
18
|
"@lumino/widgets": "2.7.5",
|
|
19
19
|
"@parcel/watcher": "^2.6.0",
|
|
20
|
-
"@theia/application-package": "1.77.0-next.
|
|
21
|
-
"@theia/request": "1.77.0-next.
|
|
20
|
+
"@theia/application-package": "1.77.0-next.77+e4fc9729e",
|
|
21
|
+
"@theia/request": "1.77.0-next.77+e4fc9729e",
|
|
22
22
|
"@types/body-parser": "^1.19.6",
|
|
23
23
|
"@types/express": "^4.17.25",
|
|
24
24
|
"@types/fs-extra": "^4.0.15",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"@types/markdown-it-emoji": "^3.0.1",
|
|
29
29
|
"@types/route-parser": "^0.1.7",
|
|
30
30
|
"@types/safer-buffer": "^2.1.3",
|
|
31
|
-
"@types/ws": "^8.18.
|
|
31
|
+
"@types/ws": "^8.18.2",
|
|
32
32
|
"@types/yargs": "^17.0.35",
|
|
33
33
|
"@vscode/codicons": "0.0.45",
|
|
34
34
|
"ajv": "^6.15.0",
|
|
35
35
|
"async-mutex": "^0.4.1",
|
|
36
36
|
"body-parser": "^1.20.8",
|
|
37
37
|
"cookie": "^1.1.1",
|
|
38
|
-
"dompurify": "^3.4.
|
|
38
|
+
"dompurify": "^3.4.16",
|
|
39
39
|
"drivelist": "^12.0.2",
|
|
40
|
-
"express": "^4.22.
|
|
40
|
+
"express": "^4.22.3",
|
|
41
41
|
"fast-json-stable-stringify": "^2.1.0",
|
|
42
42
|
"file-icons-js": "~1.0.3",
|
|
43
43
|
"font-awesome": "^4.7.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"keytar": "7.9.0",
|
|
52
52
|
"lodash.debounce": "^4.0.8",
|
|
53
53
|
"lodash.throttle": "^4.1.1",
|
|
54
|
-
"markdown-it": "^14.3.
|
|
54
|
+
"markdown-it": "^14.3.2",
|
|
55
55
|
"markdown-it-anchor": "^9.2.1",
|
|
56
56
|
"markdown-it-emoji": "^3.1.0",
|
|
57
57
|
"msgpackr": "^1.12.1",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"reflect-metadata": "^0.2.2",
|
|
63
63
|
"route-parser": "^0.0.5",
|
|
64
64
|
"safer-buffer": "^2.1.2",
|
|
65
|
-
"socket.io": "^4.8.
|
|
66
|
-
"socket.io-client": "^4.8.
|
|
65
|
+
"socket.io": "^4.8.4",
|
|
66
|
+
"socket.io-client": "^4.8.4",
|
|
67
67
|
"tslib": "^2.8.1",
|
|
68
68
|
"uuid": "^11.1.1",
|
|
69
69
|
"vscode-languageserver-protocol": "3.17.5",
|
|
70
70
|
"vscode-uri": "3.0.8",
|
|
71
|
-
"ws": "^8.
|
|
71
|
+
"ws": "^8.22.0",
|
|
72
72
|
"yargs": "^17.7.3"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
@@ -223,15 +223,15 @@
|
|
|
223
223
|
"devDependencies": {
|
|
224
224
|
"@theia/ext-scripts": "1.76.0",
|
|
225
225
|
"@theia/re-exports": "1.76.0",
|
|
226
|
-
"@types/react": "^19.
|
|
227
|
-
"@types/react-dom": "^19.
|
|
226
|
+
"@types/react": "^19.3.0",
|
|
227
|
+
"@types/react-dom": "^19.3.0",
|
|
228
228
|
"minimist": "^1.2.8",
|
|
229
229
|
"nodejs-file-downloader": "4.13.0",
|
|
230
|
-
"react": "^19.
|
|
231
|
-
"react-dom": "^19.
|
|
230
|
+
"react": "^19.3.0",
|
|
231
|
+
"react-dom": "^19.3.0"
|
|
232
232
|
},
|
|
233
233
|
"nyc": {
|
|
234
234
|
"extends": "../../configs/nyc.json"
|
|
235
235
|
},
|
|
236
|
-
"gitHead": "
|
|
236
|
+
"gitHead": "e4fc9729ea0646a6be4362a1969fbbd35b9ac105"
|
|
237
237
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2026 EclipseSource GmbH.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { enableJSDOM } from './test/jsdom';
|
|
18
|
+
let disableJSDOM = enableJSDOM();
|
|
19
|
+
|
|
20
|
+
import { expect } from 'chai';
|
|
21
|
+
import './shell/application-shell'; // load first to avoid a circular import failure via `SecondaryWindowHandler`
|
|
22
|
+
import { ColorApplicationContribution } from './color-application-contribution';
|
|
23
|
+
import { ColorRegistry } from './color-registry';
|
|
24
|
+
import { ThemeService } from './theming';
|
|
25
|
+
disableJSDOM();
|
|
26
|
+
|
|
27
|
+
class TestColorRegistry extends ColorRegistry {
|
|
28
|
+
|
|
29
|
+
readonly values = new Map<string, string>();
|
|
30
|
+
|
|
31
|
+
override *getColors(): IterableIterator<string> {
|
|
32
|
+
yield* this.values.keys();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
override getCurrentColor(id: string): string | undefined {
|
|
36
|
+
return this.values.get(id);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class TestColorApplicationContribution extends ColorApplicationContribution {
|
|
41
|
+
|
|
42
|
+
protected override readonly themeService = { getCurrentTheme: () => ({ type: 'dark' }) } as unknown as ThemeService;
|
|
43
|
+
|
|
44
|
+
constructor(protected override readonly colors: ColorRegistry) {
|
|
45
|
+
super();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
updateWindowForTest(win: Window): void {
|
|
49
|
+
this.updateWindow(win);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
describe('ColorApplicationContribution', () => {
|
|
54
|
+
|
|
55
|
+
let colors: TestColorRegistry;
|
|
56
|
+
let contribution: TestColorApplicationContribution;
|
|
57
|
+
|
|
58
|
+
beforeEach(() => {
|
|
59
|
+
disableJSDOM = enableJSDOM();
|
|
60
|
+
colors = new TestColorRegistry();
|
|
61
|
+
colors.values.set('editor.background', '#1e1e1e');
|
|
62
|
+
colors.values.set('scmGraph.historyItemHoverAdditionsForeground', '#487e02');
|
|
63
|
+
colors.values.set('unresolved.color', '');
|
|
64
|
+
contribution = new TestColorApplicationContribution(colors);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
afterEach(() => {
|
|
68
|
+
disableJSDOM();
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('sets a --theia- and a --vscode- prefixed variable for every resolved color', () => {
|
|
72
|
+
contribution.updateWindowForTest(window);
|
|
73
|
+
const style = document.documentElement.style;
|
|
74
|
+
expect(style.getPropertyValue('--theia-editor-background')).to.equal('#1e1e1e');
|
|
75
|
+
expect(style.getPropertyValue('--vscode-editor-background')).to.equal('#1e1e1e');
|
|
76
|
+
expect(style.getPropertyValue('--theia-scmGraph-historyItemHoverAdditionsForeground')).to.equal('#487e02');
|
|
77
|
+
expect(style.getPropertyValue('--vscode-scmGraph-historyItemHoverAdditionsForeground')).to.equal('#487e02');
|
|
78
|
+
expect(style.length).to.equal(4);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('does not set variables for colors without a value', () => {
|
|
82
|
+
contribution.updateWindowForTest(window);
|
|
83
|
+
const style = document.documentElement.style;
|
|
84
|
+
expect(style.getPropertyValue('--theia-unresolved-color')).to.equal('');
|
|
85
|
+
expect(style.getPropertyValue('--vscode-unresolved-color')).to.equal('');
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it('overwrites the variables in place on a subsequent update', () => {
|
|
89
|
+
contribution.updateWindowForTest(window);
|
|
90
|
+
colors.values.set('editor.background', '#ffffff');
|
|
91
|
+
contribution.updateWindowForTest(window);
|
|
92
|
+
const style = document.documentElement.style;
|
|
93
|
+
expect(style.getPropertyValue('--theia-editor-background')).to.equal('#ffffff');
|
|
94
|
+
expect(style.getPropertyValue('--vscode-editor-background')).to.equal('#ffffff');
|
|
95
|
+
expect(style.length).to.equal(4);
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it('removes both variables of a color that the current theme does not provide anymore', () => {
|
|
99
|
+
contribution.updateWindowForTest(window);
|
|
100
|
+
colors.values.delete('scmGraph.historyItemHoverAdditionsForeground');
|
|
101
|
+
contribution.updateWindowForTest(window);
|
|
102
|
+
const style = document.documentElement.style;
|
|
103
|
+
expect(style.getPropertyValue('--theia-scmGraph-historyItemHoverAdditionsForeground')).to.equal('');
|
|
104
|
+
expect(style.getPropertyValue('--vscode-scmGraph-historyItemHoverAdditionsForeground')).to.equal('');
|
|
105
|
+
expect(style.getPropertyValue('--theia-editor-background')).to.equal('#1e1e1e');
|
|
106
|
+
expect(style.length).to.equal(2);
|
|
107
|
+
});
|
|
108
|
+
});
|
|
@@ -73,6 +73,13 @@ export class ColorApplicationContribution implements FrontendApplicationContribu
|
|
|
73
73
|
this.onDidChangeEmitter.fire();
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* The CSS variables currently applied to the document element of a window. Used to only remove
|
|
78
|
+
* those that the current theme does not provide anymore, instead of removing and re-applying all
|
|
79
|
+
* of them on every update.
|
|
80
|
+
*/
|
|
81
|
+
protected readonly appliedCssVariables = new WeakMap<Window, ReadonlySet<string>>();
|
|
82
|
+
|
|
76
83
|
protected readonly toUpdate = new DisposableCollection();
|
|
77
84
|
protected update(): void {
|
|
78
85
|
this.toUpdate.dispose();
|
|
@@ -88,14 +95,19 @@ export class ColorApplicationContribution implements FrontendApplicationContribu
|
|
|
88
95
|
|
|
89
96
|
const documentElement = win.document.documentElement;
|
|
90
97
|
if (documentElement) {
|
|
98
|
+
const applied = new Set<string>();
|
|
91
99
|
for (const id of this.colors.getColors()) {
|
|
92
|
-
const
|
|
93
|
-
if (variable) {
|
|
94
|
-
const { name, value } = variable;
|
|
100
|
+
for (const { name, value } of this.colors.getCurrentCssVariables(id)) {
|
|
95
101
|
documentElement.style.setProperty(name, value);
|
|
96
|
-
|
|
102
|
+
applied.add(name);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
for (const name of this.appliedCssVariables.get(win) ?? []) {
|
|
106
|
+
if (!applied.has(name)) {
|
|
107
|
+
documentElement.style.removeProperty(name);
|
|
97
108
|
}
|
|
98
109
|
}
|
|
110
|
+
this.appliedCssVariables.set(win, applied);
|
|
99
111
|
}
|
|
100
112
|
}
|
|
101
113
|
|
|
@@ -39,6 +39,19 @@ export class ColorRegistry {
|
|
|
39
39
|
return { name, value };
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* All CSS variables to set for the given color: the primary one from {@link getCurrentCssVariable} and the
|
|
44
|
+
* `--vscode-` prefixed alias. VS Code extensions reference colors with the `--vscode-` prefix, e.g. in the
|
|
45
|
+
* inline styles of the HTML they render, and Monaco only defines those variables within its own containers.
|
|
46
|
+
*/
|
|
47
|
+
getCurrentCssVariables(id: string): ColorCssVariable[] {
|
|
48
|
+
const variable = this.getCurrentCssVariable(id);
|
|
49
|
+
if (!variable) {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
return [variable, { name: this.toCssVariableName(id, 'vscode'), value: variable.value }];
|
|
53
|
+
}
|
|
54
|
+
|
|
42
55
|
toCssVariableName(id: string, prefix = 'theia'): string {
|
|
43
56
|
return `--${prefix}-${id.replace(/\./g, '-')}`;
|
|
44
57
|
}
|
|
@@ -172,6 +172,21 @@ export namespace CommonCommands {
|
|
|
172
172
|
category: VIEW_CATEGORY,
|
|
173
173
|
label: 'Toggle Status Bar Visibility'
|
|
174
174
|
});
|
|
175
|
+
export const HIDE_SIDE_PANEL_ITEM = Command.toLocalizedCommand({
|
|
176
|
+
id: 'core.sidePanel.hideItem',
|
|
177
|
+
category: VIEW_CATEGORY,
|
|
178
|
+
label: 'Hide from Side Bar'
|
|
179
|
+
}, 'theia/core/common/hideSidePanelItem', VIEW_CATEGORY_KEY);
|
|
180
|
+
export const KEEP_SIDE_PANEL_ITEM = Command.toLocalizedCommand({
|
|
181
|
+
id: 'core.sidePanel.keepItem',
|
|
182
|
+
category: VIEW_CATEGORY,
|
|
183
|
+
label: 'Keep in Side Bar'
|
|
184
|
+
}, 'theia/core/common/keepSidePanelItem', VIEW_CATEGORY_KEY);
|
|
185
|
+
export const RESET_HIDDEN_SIDE_PANEL_ITEMS = Command.toLocalizedCommand({
|
|
186
|
+
id: 'core.sidePanel.resetHiddenItems',
|
|
187
|
+
category: VIEW_CATEGORY,
|
|
188
|
+
label: 'Reset Hidden Side Bar Items'
|
|
189
|
+
}, 'theia/core/common/resetHiddenSidePanelItems', VIEW_CATEGORY_KEY);
|
|
175
190
|
export const PIN_TAB = Command.toDefaultLocalizedCommand({
|
|
176
191
|
id: 'workbench.action.pinEditor',
|
|
177
192
|
category: VIEW_CATEGORY,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
/* eslint-disable max-len, @
|
|
17
|
+
/* eslint-disable max-len, @stylistic/indent */
|
|
18
18
|
|
|
19
19
|
import debounce = require('lodash.debounce');
|
|
20
20
|
import { injectable, inject, optional } from 'inversify';
|
|
@@ -32,7 +32,10 @@ import { SelectionService } from '../common/selection-service';
|
|
|
32
32
|
import { MessageService } from '../common/message-service';
|
|
33
33
|
import { OpenerService, open } from '../browser/opener-service';
|
|
34
34
|
import { ApplicationShell } from './shell/application-shell';
|
|
35
|
-
import {
|
|
35
|
+
import {
|
|
36
|
+
SHELL_TABBAR_CONTEXT_CLOSE, SHELL_TABBAR_CONTEXT_COPY, SHELL_TABBAR_CONTEXT_HIDE, SHELL_TABBAR_CONTEXT_PIN, SHELL_TABBAR_CONTEXT_SPLIT, SideTabBar
|
|
37
|
+
} from './shell/tab-bars';
|
|
38
|
+
import { SidePanelItemVisibility } from './shell/side-panel-item-visibility';
|
|
36
39
|
import { AboutDialog } from './about-dialog';
|
|
37
40
|
import URI from '../common/uri';
|
|
38
41
|
import { ContextKey, ContextKeyService } from './context-key-service';
|
|
@@ -88,6 +91,15 @@ export const CLASSNAME_OS_MAC = 'mac';
|
|
|
88
91
|
export const CLASSNAME_OS_WINDOWS = 'windows';
|
|
89
92
|
export const CLASSNAME_OS_LINUX = 'linux';
|
|
90
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Mirrors VS Code's `workbench.action.toggleKeybindingsLog` command. It logs how each key press was interpreted so keyboard-layout problems can be diagnosed on machines where they cannot be reproduced.
|
|
96
|
+
*/
|
|
97
|
+
export const TOGGLE_KEYBOARD_SHORTCUTS_TROUBLESHOOTING = Command.toDefaultLocalizedCommand({
|
|
98
|
+
id: 'workbench.action.toggleKeybindingsLog',
|
|
99
|
+
category: 'Developer',
|
|
100
|
+
label: 'Toggle Keyboard Shortcuts Troubleshooting'
|
|
101
|
+
});
|
|
102
|
+
|
|
91
103
|
@injectable()
|
|
92
104
|
export class CommonFrontendContribution implements FrontendApplicationContribution, MenuContribution, CommandContribution, KeybindingContribution, ColorContribution {
|
|
93
105
|
|
|
@@ -112,12 +124,18 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
|
|
|
112
124
|
@inject(CommandRegistry)
|
|
113
125
|
protected readonly commandRegistry: CommandRegistry;
|
|
114
126
|
|
|
127
|
+
@inject(KeybindingRegistry)
|
|
128
|
+
protected readonly keybindingRegistry: KeybindingRegistry;
|
|
129
|
+
|
|
115
130
|
@inject(MenuModelRegistry)
|
|
116
131
|
protected readonly menuRegistry: MenuModelRegistry;
|
|
117
132
|
|
|
118
133
|
@inject(StorageService)
|
|
119
134
|
protected readonly storageService: StorageService;
|
|
120
135
|
|
|
136
|
+
@inject(SidePanelItemVisibility)
|
|
137
|
+
protected readonly sidePanelItemVisibility: SidePanelItemVisibility;
|
|
138
|
+
|
|
121
139
|
@inject(QuickInputService) @optional()
|
|
122
140
|
protected readonly quickInputService: QuickInputService;
|
|
123
141
|
|
|
@@ -442,6 +460,16 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
|
|
|
442
460
|
label: nls.localizeByDefault('Toggle Menu Bar'),
|
|
443
461
|
order: '0'
|
|
444
462
|
});
|
|
463
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_HIDE, {
|
|
464
|
+
commandId: CommonCommands.HIDE_SIDE_PANEL_ITEM.id,
|
|
465
|
+
label: nls.localizeByDefault('Hide'),
|
|
466
|
+
order: '0'
|
|
467
|
+
});
|
|
468
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_HIDE, {
|
|
469
|
+
commandId: CommonCommands.KEEP_SIDE_PANEL_ITEM.id,
|
|
470
|
+
label: nls.localizeByDefault('Keep'),
|
|
471
|
+
order: '1'
|
|
472
|
+
});
|
|
445
473
|
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_PIN, {
|
|
446
474
|
commandId: CommonCommands.PIN_TAB.id,
|
|
447
475
|
label: nls.localizeByDefault('Pin'),
|
|
@@ -495,6 +523,10 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
|
|
|
495
523
|
}
|
|
496
524
|
|
|
497
525
|
registerCommands(commandRegistry: CommandRegistry): void {
|
|
526
|
+
commandRegistry.registerCommand(TOGGLE_KEYBOARD_SHORTCUTS_TROUBLESHOOTING, {
|
|
527
|
+
execute: () => this.keybindingRegistry.toggleKeyboardShortcutsTroubleshooting(),
|
|
528
|
+
isToggled: () => this.keybindingRegistry.isKeyboardShortcutsTroubleshooting()
|
|
529
|
+
});
|
|
498
530
|
commandRegistry.registerCommand(CommonCommands.OPEN, UriAwareCommandHandler.MultiSelect(this.selectionService, {
|
|
499
531
|
execute: uris => uris.map(uri => open(this.openerService, uri)),
|
|
500
532
|
}));
|
|
@@ -778,6 +810,18 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
|
|
|
778
810
|
commandRegistry.registerCommand(CommonCommands.SELECT_ICON_THEME, {
|
|
779
811
|
execute: () => this.selectIconTheme()
|
|
780
812
|
});
|
|
813
|
+
commandRegistry.registerCommand(CommonCommands.HIDE_SIDE_PANEL_ITEM, new CurrentWidgetCommandAdapter(this.shell, {
|
|
814
|
+
isVisible: (title, tabBar) => Boolean(title && tabBar instanceof SideTabBar && !tabBar.shouldHideTitle(title)),
|
|
815
|
+
isEnabled: (title, tabBar) => Boolean(title && tabBar instanceof SideTabBar && tabBar.canHideTitle(title)),
|
|
816
|
+
execute: title => title && this.sidePanelItemVisibility.setHidden(title.owner.id, true),
|
|
817
|
+
}));
|
|
818
|
+
commandRegistry.registerCommand(CommonCommands.KEEP_SIDE_PANEL_ITEM, new CurrentWidgetCommandAdapter(this.shell, {
|
|
819
|
+
isVisible: (title, tabBar) => Boolean(title && tabBar instanceof SideTabBar && tabBar.shouldHideTitle(title)),
|
|
820
|
+
execute: title => title && this.sidePanelItemVisibility.setHidden(title.owner.id, false),
|
|
821
|
+
}));
|
|
822
|
+
commandRegistry.registerCommand(CommonCommands.RESET_HIDDEN_SIDE_PANEL_ITEMS, {
|
|
823
|
+
execute: () => this.sidePanelItemVisibility.reset()
|
|
824
|
+
});
|
|
781
825
|
commandRegistry.registerCommand(CommonCommands.PIN_TAB, new CurrentWidgetCommandAdapter(this.shell, {
|
|
782
826
|
isEnabled: title => Boolean(title && !isPinned(title)),
|
|
783
827
|
execute: title => this.togglePinned(title),
|
|
@@ -56,7 +56,7 @@ export interface CardProps {
|
|
|
56
56
|
* data, article, or other object. Cards provide interaction behaviour when the `onClick`
|
|
57
57
|
* call-back prop is supplied.
|
|
58
58
|
*/
|
|
59
|
-
export const Card = React.memo(function
|
|
59
|
+
export const Card = React.memo(function CardComponent(props: CardProps): React.ReactElement {
|
|
60
60
|
const {
|
|
61
61
|
icon,
|
|
62
62
|
title,
|
|
@@ -71,6 +71,13 @@ export interface ContextKeyService extends ContextMatcher {
|
|
|
71
71
|
*/
|
|
72
72
|
with<T>(values: Record<string, unknown>, callback: () => T): T;
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Evaluates {@link callback} against the context of the given element or context object
|
|
76
|
+
* rather than the context of the currently focused element.
|
|
77
|
+
* {@link callback | The callback} must be synchronous.
|
|
78
|
+
*/
|
|
79
|
+
withContext<T>(context: HTMLElement | Context, callback: () => T): T;
|
|
80
|
+
|
|
74
81
|
/**
|
|
75
82
|
* Creates a child service with a separate context scoped to the HTML element passed in.
|
|
76
83
|
* Useful for e.g. setting the {view} context value for particular widgets.
|
|
@@ -138,6 +145,14 @@ export class ContextKeyServiceDummyImpl implements ContextKeyService {
|
|
|
138
145
|
return callback();
|
|
139
146
|
}
|
|
140
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Details should be implemented by an extension, e.g. by the monaco extension.
|
|
150
|
+
* Callback must be synchronous.
|
|
151
|
+
*/
|
|
152
|
+
withContext<T>(context: HTMLElement | Context, callback: () => T): T {
|
|
153
|
+
return callback();
|
|
154
|
+
}
|
|
155
|
+
|
|
141
156
|
/**
|
|
142
157
|
* Details should implemented by an extension, e.g. by the monaco extension.
|
|
143
158
|
*/
|
|
@@ -141,6 +141,7 @@ import { StylingParticipant, StylingService } from './styling-service';
|
|
|
141
141
|
import { bindCommonStylingParticipants } from './common-styling-participants';
|
|
142
142
|
import { HoverService } from './hover-service';
|
|
143
143
|
import { AdditionalViewsMenuPath, AdditionalViewsMenuWidget, AdditionalViewsMenuWidgetFactory } from './shell/additional-views-menu-widget';
|
|
144
|
+
import { SidePanelItemVisibility, SidePanelItemVisibilityImpl } from './shell/side-panel-item-visibility';
|
|
144
145
|
import { LanguageIconLabelProvider } from './language-icon-provider';
|
|
145
146
|
import { bindTreePreferences } from '../common/tree-preference';
|
|
146
147
|
import { OpenWithService } from './open-with-service';
|
|
@@ -181,6 +182,8 @@ export const frontendApplicationModule = new ContainerModule((bind, _unbind, _is
|
|
|
181
182
|
bind(ApplicationShell).toSelf().inSingletonScope();
|
|
182
183
|
bind(SidePanelHandlerFactory).toAutoFactory(SidePanelHandler);
|
|
183
184
|
bind(SidePanelHandler).toSelf();
|
|
185
|
+
bind(SidePanelItemVisibilityImpl).toSelf().inSingletonScope();
|
|
186
|
+
bind(SidePanelItemVisibility).toService(SidePanelItemVisibilityImpl);
|
|
184
187
|
bind(SidebarTopMenuWidgetFactory).toAutoFactory(SidebarMenuWidget);
|
|
185
188
|
bind(SidebarMenuWidget).toSelf();
|
|
186
189
|
bind(SidebarBottomMenuWidget).toSelf();
|