@theia/core 1.45.1 → 1.46.0-next.72
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 +6 -6
- package/i18n/nls.cs.json +524 -520
- package/i18n/nls.de.json +524 -520
- package/i18n/nls.es.json +524 -520
- package/i18n/nls.fr.json +524 -520
- package/i18n/nls.hu.json +524 -520
- package/i18n/nls.it.json +524 -520
- package/i18n/nls.ja.json +524 -520
- package/i18n/nls.json +524 -520
- package/i18n/nls.pl.json +524 -520
- package/i18n/nls.pt-br.json +524 -520
- package/i18n/nls.pt-pt.json +524 -520
- package/i18n/nls.ru.json +524 -520
- package/i18n/nls.zh-cn.json +524 -520
- package/lib/browser/about-dialog.d.ts +33 -33
- package/lib/browser/about-dialog.js +136 -136
- package/lib/browser/authentication-service.d.ts +144 -144
- package/lib/browser/authentication-service.js +332 -332
- package/lib/browser/breadcrumbs/breadcrumb-popup-container.d.ts +34 -34
- package/lib/browser/breadcrumbs/breadcrumb-popup-container.js +114 -114
- package/lib/browser/breadcrumbs/breadcrumb-renderer.d.ts +12 -12
- package/lib/browser/breadcrumbs/breadcrumb-renderer.js +42 -42
- package/lib/browser/breadcrumbs/breadcrumbs-constants.d.ts +49 -49
- package/lib/browser/breadcrumbs/breadcrumbs-constants.js +27 -27
- package/lib/browser/breadcrumbs/breadcrumbs-renderer.d.ts +43 -43
- package/lib/browser/breadcrumbs/breadcrumbs-renderer.js +187 -187
- package/lib/browser/breadcrumbs/breadcrumbs-service.d.ts +32 -32
- package/lib/browser/breadcrumbs/breadcrumbs-service.js +119 -119
- package/lib/browser/breadcrumbs/index.d.ts +5 -5
- package/lib/browser/breadcrumbs/index.js +32 -32
- package/lib/browser/browser-clipboard-service.d.ts +23 -23
- package/lib/browser/browser-clipboard-service.js +115 -115
- package/lib/browser/browser.d.ts +37 -34
- package/lib/browser/browser.d.ts.map +1 -1
- package/lib/browser/browser.js +196 -192
- package/lib/browser/browser.js.map +1 -1
- package/lib/browser/clipboard-service.d.ts +6 -6
- package/lib/browser/clipboard-service.js +19 -19
- package/lib/browser/color-application-contribution.d.ts +24 -24
- package/lib/browser/color-application-contribution.js +108 -108
- package/lib/browser/color-registry.d.ts +14 -14
- package/lib/browser/color-registry.js +63 -63
- package/lib/browser/command-open-handler.d.ts +9 -9
- package/lib/browser/command-open-handler.js +66 -66
- package/lib/browser/common-frontend-contribution.d.ts +206 -206
- package/lib/browser/common-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/common-frontend-contribution.js +2307 -2307
- package/lib/browser/common-frontend-contribution.js.map +1 -1
- package/lib/browser/common-styling-participants.d.ts +27 -27
- package/lib/browser/common-styling-participants.js +370 -370
- package/lib/browser/connection-status-service.d.ts +77 -77
- package/lib/browser/connection-status-service.js +209 -209
- package/lib/browser/connection-status-service.spec.d.ts +1 -1
- package/lib/browser/connection-status-service.spec.js +161 -161
- package/lib/browser/context-key-service.d.ts +82 -83
- package/lib/browser/context-key-service.d.ts.map +1 -1
- package/lib/browser/context-key-service.js +88 -88
- package/lib/browser/context-key-service.js.map +1 -1
- package/lib/browser/context-menu-renderer.d.ts +54 -55
- package/lib/browser/context-menu-renderer.d.ts.map +1 -1
- package/lib/browser/context-menu-renderer.js +92 -96
- package/lib/browser/context-menu-renderer.js.map +1 -1
- package/lib/browser/core-preferences.d.ts +37 -36
- package/lib/browser/core-preferences.d.ts.map +1 -1
- package/lib/browser/core-preferences.js +300 -295
- package/lib/browser/core-preferences.js.map +1 -1
- package/lib/browser/credentials-service.d.ts +35 -35
- package/lib/browser/credentials-service.js +91 -91
- package/lib/browser/decoration-style.d.ts +6 -6
- package/lib/browser/decoration-style.js +64 -64
- package/lib/browser/decorations-service.d.ts +30 -30
- package/lib/browser/decorations-service.js +163 -163
- package/lib/browser/dialogs/react-dialog.d.ts +17 -17
- package/lib/browser/dialogs/react-dialog.js +60 -60
- package/lib/browser/dialogs.d.ts +135 -135
- package/lib/browser/dialogs.js +457 -457
- package/lib/browser/diff-uris.d.ts +17 -17
- package/lib/browser/diff-uris.js +126 -126
- package/lib/browser/encoding-registry.d.ts +18 -18
- package/lib/browser/encoding-registry.js +96 -96
- package/lib/browser/endpoint.d.ts +42 -42
- package/lib/browser/endpoint.js +120 -120
- package/lib/browser/endpoint.spec.d.ts +1 -1
- package/lib/browser/endpoint.spec.js +122 -122
- package/lib/browser/external-uri-service.d.ts +24 -24
- package/lib/browser/external-uri-service.js +77 -77
- package/lib/browser/frontend-application-bindings.d.ts +5 -5
- package/lib/browser/frontend-application-bindings.js +56 -56
- package/lib/browser/frontend-application-config-provider.d.ts +8 -8
- package/lib/browser/frontend-application-config-provider.js +46 -46
- package/lib/browser/frontend-application-config-provider.spec.d.ts +1 -1
- package/lib/browser/frontend-application-config-provider.spec.js +40 -40
- package/lib/browser/frontend-application-contribution.d.ts +75 -75
- package/lib/browser/frontend-application-contribution.js +50 -50
- package/lib/browser/frontend-application-module.d.ts +8 -8
- package/lib/browser/frontend-application-module.d.ts.map +1 -1
- package/lib/browser/frontend-application-module.js +354 -353
- package/lib/browser/frontend-application-module.js.map +1 -1
- package/lib/browser/frontend-application-state.d.ts +19 -19
- package/lib/browser/frontend-application-state.js +79 -79
- package/lib/browser/frontend-application.d.ts +86 -86
- package/lib/browser/frontend-application.js +319 -319
- package/lib/browser/hover-service.d.ts +50 -50
- package/lib/browser/hover-service.js +207 -207
- package/lib/browser/http-open-handler.d.ts +14 -14
- package/lib/browser/http-open-handler.js +54 -54
- package/lib/browser/i18n/i18n-frontend-module.d.ts +3 -3
- package/lib/browser/i18n/i18n-frontend-module.js +25 -25
- package/lib/browser/i18n/language-quick-pick-service.d.ts +15 -15
- package/lib/browser/i18n/language-quick-pick-service.js +144 -144
- package/lib/browser/icon-registry.d.ts +56 -62
- package/lib/browser/icon-registry.d.ts.map +1 -1
- package/lib/browser/icon-registry.js +24 -24
- package/lib/browser/icon-registry.js.map +1 -1
- package/lib/browser/icon-theme-contribution.d.ts +23 -23
- package/lib/browser/icon-theme-contribution.js +72 -72
- package/lib/browser/icon-theme-service.d.ts +63 -63
- package/lib/browser/icon-theme-service.js +206 -206
- package/lib/browser/index.d.ts +31 -31
- package/lib/browser/index.js +58 -58
- package/lib/browser/json-schema-store.d.ts +37 -37
- package/lib/browser/json-schema-store.js +119 -119
- package/lib/browser/keybinding.d.ts +288 -288
- package/lib/browser/keybinding.js +682 -682
- package/lib/browser/keybinding.spec.d.ts +1 -1
- package/lib/browser/keybinding.spec.js +456 -456
- package/lib/browser/keyboard/browser-keyboard-frontend-contribution.d.ts +13 -13
- package/lib/browser/keyboard/browser-keyboard-frontend-contribution.js +118 -118
- package/lib/browser/keyboard/browser-keyboard-layout-provider.d.ts +91 -91
- package/lib/browser/keyboard/browser-keyboard-layout-provider.js +426 -426
- package/lib/browser/keyboard/browser-keyboard-layout-provider.spec.d.ts +1 -1
- package/lib/browser/keyboard/browser-keyboard-layout-provider.spec.js +157 -157
- package/lib/browser/keyboard/browser-keyboard-module.d.ts +3 -3
- package/lib/browser/keyboard/browser-keyboard-module.js +30 -30
- package/lib/browser/keyboard/index.d.ts +4 -4
- package/lib/browser/keyboard/index.js +31 -31
- package/lib/browser/keyboard/keyboard-layout-service.d.ts +49 -49
- package/lib/browser/keyboard/keyboard-layout-service.js +435 -435
- package/lib/browser/keyboard/keyboard-layout-service.spec.d.ts +1 -1
- package/lib/browser/keyboard/keyboard-layout-service.spec.js +115 -115
- package/lib/browser/keyboard/keys.d.ts +4 -4
- package/lib/browser/keyboard/keys.js +31 -31
- package/lib/browser/keyboard/keys.spec.d.ts +1 -1
- package/lib/browser/keyboard/keys.spec.js +205 -205
- package/lib/browser/keys.d.ts +2 -2
- package/lib/browser/keys.js +28 -28
- package/lib/browser/label-parser.d.ts +34 -34
- package/lib/browser/label-parser.js +112 -112
- package/lib/browser/label-parser.spec.d.ts +1 -1
- package/lib/browser/label-parser.spec.js +146 -146
- package/lib/browser/label-provider.d.ts +140 -140
- package/lib/browser/label-provider.js +318 -318
- package/lib/browser/label-provider.spec.d.ts +1 -1
- package/lib/browser/label-provider.spec.js +53 -53
- package/lib/browser/language-icon-provider.d.ts +14 -14
- package/lib/browser/language-icon-provider.js +73 -73
- package/lib/browser/language-service.d.ts +38 -38
- package/lib/browser/language-service.js +71 -71
- package/lib/browser/logger-frontend-module.d.ts +2 -2
- package/lib/browser/logger-frontend-module.js +63 -63
- package/lib/browser/markdown-rendering/markdown-renderer.d.ts +39 -39
- package/lib/browser/markdown-rendering/markdown-renderer.d.ts.map +1 -1
- package/lib/browser/markdown-rendering/markdown-renderer.js +80 -80
- package/lib/browser/menu/browser-context-menu-renderer.d.ts +12 -12
- package/lib/browser/menu/browser-context-menu-renderer.js +61 -61
- package/lib/browser/menu/browser-menu-module.d.ts +3 -3
- package/lib/browser/menu/browser-menu-module.js +28 -28
- package/lib/browser/menu/browser-menu-plugin.d.ts +103 -103
- package/lib/browser/menu/browser-menu-plugin.js +450 -450
- package/lib/browser/menu/context-menu-context.d.ts +7 -7
- package/lib/browser/menu/context-menu-context.js +50 -50
- package/lib/browser/messaging/connection-source.d.ts +8 -8
- package/lib/browser/messaging/connection-source.js +19 -19
- package/lib/browser/messaging/frontend-id-provider.d.ts +12 -12
- package/lib/browser/messaging/frontend-id-provider.js +39 -39
- package/lib/browser/messaging/index.d.ts +1 -1
- package/lib/browser/messaging/index.js +28 -28
- package/lib/browser/messaging/messaging-frontend-module.d.ts +2 -2
- package/lib/browser/messaging/messaging-frontend-module.js +41 -41
- package/lib/browser/messaging/service-connection-provider.d.ts +47 -47
- package/lib/browser/messaging/service-connection-provider.js +114 -114
- package/lib/browser/messaging/ws-connection-provider.d.ts +12 -12
- package/lib/browser/messaging/ws-connection-provider.js +57 -57
- package/lib/browser/messaging/ws-connection-source.d.ts +42 -42
- package/lib/browser/messaging/ws-connection-source.js +225 -225
- package/lib/browser/mime-service.d.ts +7 -7
- package/lib/browser/mime-service.js +35 -35
- package/lib/browser/navigatable-types.d.ts +33 -33
- package/lib/browser/navigatable-types.js +63 -63
- package/lib/browser/navigatable.d.ts +8 -8
- package/lib/browser/navigatable.js +47 -47
- package/lib/browser/opener-service.d.ts +79 -79
- package/lib/browser/opener-service.js +90 -90
- package/lib/browser/opener-service.spec.d.ts +1 -1
- package/lib/browser/opener-service.spec.js +46 -46
- package/lib/browser/performance/frontend-stopwatch.d.ts +20 -20
- package/lib/browser/performance/frontend-stopwatch.js +74 -74
- package/lib/browser/performance/index.d.ts +2 -2
- package/lib/browser/performance/index.js +29 -29
- package/lib/browser/performance/measurement-frontend-bindings.d.ts +19 -19
- package/lib/browser/performance/measurement-frontend-bindings.js +32 -32
- package/lib/browser/preferences/index.d.ts +7 -7
- package/lib/browser/preferences/index.js +34 -34
- package/lib/browser/preferences/injectable-preference-proxy.d.ts +51 -51
- package/lib/browser/preferences/injectable-preference-proxy.js +284 -284
- package/lib/browser/preferences/preference-configurations.d.ts +22 -22
- package/lib/browser/preferences/preference-configurations.js +80 -80
- package/lib/browser/preferences/preference-contribution.d.ts +111 -111
- package/lib/browser/preferences/preference-contribution.js +394 -394
- package/lib/browser/preferences/preference-language-override-service.d.ts +39 -39
- package/lib/browser/preferences/preference-language-override-service.js +112 -112
- package/lib/browser/preferences/preference-provider.d.ts +132 -132
- package/lib/browser/preferences/preference-provider.js +227 -227
- package/lib/browser/preferences/preference-provider.spec.d.ts +1 -1
- package/lib/browser/preferences/preference-provider.spec.js +33 -33
- package/lib/browser/preferences/preference-proxy.d.ts +150 -150
- package/lib/browser/preferences/preference-proxy.js +229 -229
- package/lib/browser/preferences/preference-proxy.spec.d.ts +1 -1
- package/lib/browser/preferences/preference-proxy.spec.js +337 -337
- package/lib/browser/preferences/preference-schema-provider.spec.d.ts +1 -1
- package/lib/browser/preferences/preference-schema-provider.spec.js +115 -115
- package/lib/browser/preferences/preference-scope.d.ts +2 -2
- package/lib/browser/preferences/preference-scope.js +20 -20
- package/lib/browser/preferences/preference-service.d.ts +278 -278
- package/lib/browser/preferences/preference-service.js +358 -358
- package/lib/browser/preferences/preference-service.spec.d.ts +1 -1
- package/lib/browser/preferences/preference-service.spec.js +505 -505
- package/lib/browser/preferences/preference-validation-service.d.ts +57 -57
- package/lib/browser/preferences/preference-validation-service.js +354 -354
- package/lib/browser/preferences/preference-validation-service.spec.d.ts +1 -1
- package/lib/browser/preferences/preference-validation-service.spec.js +330 -330
- package/lib/browser/preferences/test/index.d.ts +3 -3
- package/lib/browser/preferences/test/index.js +30 -30
- package/lib/browser/preferences/test/mock-preference-provider.d.ts +16 -16
- package/lib/browser/preferences/test/mock-preference-provider.js +46 -46
- package/lib/browser/preferences/test/mock-preference-proxy.d.ts +3 -3
- package/lib/browser/preferences/test/mock-preference-proxy.js +49 -49
- package/lib/browser/preferences/test/mock-preference-service.d.ts +28 -28
- package/lib/browser/preferences/test/mock-preference-service.js +67 -67
- package/lib/browser/preload/i18n-preload-contribution.d.ts +6 -6
- package/lib/browser/preload/i18n-preload-contribution.js +62 -62
- package/lib/browser/preload/os-preload-contribution.d.ts +6 -6
- package/lib/browser/preload/os-preload-contribution.js +48 -48
- package/lib/browser/preload/preload-module.d.ts +3 -3
- package/lib/browser/preload/preload-module.js +38 -38
- package/lib/browser/preload/preloader.d.ts +11 -11
- package/lib/browser/preload/preloader.js +44 -44
- package/lib/browser/preload/theme-preload-contribution.d.ts +4 -4
- package/lib/browser/preload/theme-preload-contribution.js +39 -39
- package/lib/browser/progress-bar-factory.d.ts +11 -11
- package/lib/browser/progress-bar-factory.js +20 -20
- package/lib/browser/progress-bar.d.ts +15 -15
- package/lib/browser/progress-bar.js +89 -89
- package/lib/browser/progress-client.d.ts +12 -12
- package/lib/browser/progress-client.js +61 -61
- package/lib/browser/progress-location-service.d.ts +21 -21
- package/lib/browser/progress-location-service.js +96 -96
- package/lib/browser/progress-location-service.spec.d.ts +1 -1
- package/lib/browser/progress-location-service.spec.js +44 -44
- package/lib/browser/progress-status-bar-item.d.ts +16 -16
- package/lib/browser/progress-status-bar-item.js +89 -89
- package/lib/browser/quick-input/index.d.ts +8 -8
- package/lib/browser/quick-input/index.js +35 -35
- package/lib/browser/quick-input/quick-access.d.ts +53 -53
- package/lib/browser/quick-input/quick-access.js +20 -20
- package/lib/browser/quick-input/quick-command-frontend-contribution.d.ts +11 -11
- package/lib/browser/quick-input/quick-command-frontend-contribution.js +104 -104
- package/lib/browser/quick-input/quick-command-service.d.ts +59 -59
- package/lib/browser/quick-input/quick-command-service.js +233 -233
- package/lib/browser/quick-input/quick-help-service.d.ts +11 -11
- package/lib/browser/quick-input/quick-help-service.js +91 -91
- package/lib/browser/quick-input/quick-input-frontend-contribution.d.ts +7 -7
- package/lib/browser/quick-input/quick-input-frontend-contribution.js +46 -46
- package/lib/browser/quick-input/quick-input-service.d.ts +1 -1
- package/lib/browser/quick-input/quick-input-service.js +28 -28
- package/lib/browser/quick-input/quick-input-service.spec.d.ts +1 -1
- package/lib/browser/quick-input/quick-input-service.spec.js +159 -159
- package/lib/browser/quick-input/quick-pick-service-impl.d.ts +30 -30
- package/lib/browser/quick-input/quick-pick-service-impl.js +77 -77
- package/lib/browser/quick-input/quick-view-service.d.ts +23 -23
- package/lib/browser/quick-input/quick-view-service.js +86 -86
- package/lib/browser/request/browser-request-module.d.ts +18 -18
- package/lib/browser/request/browser-request-module.js +23 -23
- package/lib/browser/request/browser-request-service.d.ts +41 -41
- package/lib/browser/request/browser-request-service.js +180 -180
- package/lib/browser/resource-context-key.d.ts +19 -19
- package/lib/browser/resource-context-key.js +83 -83
- package/lib/browser/save-resource-service.d.ts +35 -35
- package/lib/browser/save-resource-service.d.ts.map +1 -1
- package/lib/browser/save-resource-service.js +72 -71
- package/lib/browser/save-resource-service.js.map +1 -1
- package/lib/browser/saveable.d.ts +124 -124
- package/lib/browser/saveable.js +274 -274
- package/lib/browser/secondary-window-handler.d.ts +64 -64
- package/lib/browser/secondary-window-handler.js +208 -208
- package/lib/browser/shell/additional-views-menu-widget.d.ts +19 -19
- package/lib/browser/shell/additional-views-menu-widget.js +81 -81
- package/lib/browser/shell/application-shell-mouse-tracker.d.ts +30 -30
- package/lib/browser/shell/application-shell-mouse-tracker.js +107 -107
- package/lib/browser/shell/application-shell.d.ts +572 -572
- package/lib/browser/shell/application-shell.d.ts.map +1 -1
- package/lib/browser/shell/application-shell.js +1995 -1990
- package/lib/browser/shell/application-shell.js.map +1 -1
- package/lib/browser/shell/current-widget-command-adapter.d.ts +23 -23
- package/lib/browser/shell/current-widget-command-adapter.js +41 -41
- package/lib/browser/shell/index.d.ts +7 -7
- package/lib/browser/shell/index.js +34 -34
- package/lib/browser/shell/shell-layout-restorer.d.ts +123 -123
- package/lib/browser/shell/shell-layout-restorer.js +347 -347
- package/lib/browser/shell/side-panel-handler.d.ts +286 -286
- package/lib/browser/shell/side-panel-handler.js +667 -667
- package/lib/browser/shell/side-panel-toolbar.d.ts +25 -25
- package/lib/browser/shell/side-panel-toolbar.js +96 -96
- package/lib/browser/shell/sidebar-bottom-menu-widget.d.ts +9 -9
- package/lib/browser/shell/sidebar-bottom-menu-widget.js +46 -46
- package/lib/browser/shell/sidebar-menu-widget.d.ts +38 -38
- package/lib/browser/shell/sidebar-menu-widget.js +121 -121
- package/lib/browser/shell/sidebar-top-menu-widget.d.ts +6 -6
- package/lib/browser/shell/sidebar-top-menu-widget.js +35 -35
- package/lib/browser/shell/split-panels.d.ts +42 -42
- package/lib/browser/shell/split-panels.js +177 -177
- package/lib/browser/shell/tab-bar-decorator.d.ts +40 -35
- package/lib/browser/shell/tab-bar-decorator.d.ts.map +1 -1
- package/lib/browser/shell/tab-bar-decorator.js +95 -64
- package/lib/browser/shell/tab-bar-decorator.js.map +1 -1
- package/lib/browser/shell/tab-bar-toolbar/index.d.ts +3 -3
- package/lib/browser/shell/tab-bar-toolbar/index.js +30 -30
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.d.ts +15 -15
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.js +35 -35
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.d.ts +95 -95
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.js +253 -253
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.d.ts +136 -136
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.js +88 -88
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.d.ts +88 -88
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.js +417 -417
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.spec.d.ts +1 -1
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.spec.js +51 -51
- package/lib/browser/shell/tab-bars.d.ts +339 -338
- package/lib/browser/shell/tab-bars.d.ts.map +1 -1
- package/lib/browser/shell/tab-bars.js +1309 -1277
- package/lib/browser/shell/tab-bars.js.map +1 -1
- package/lib/browser/shell/tab-bars.spec.d.ts +1 -1
- package/lib/browser/shell/tab-bars.spec.js +56 -56
- package/lib/browser/shell/theia-dock-panel.d.ts +59 -59
- package/lib/browser/shell/theia-dock-panel.js +226 -226
- package/lib/browser/shell/view-contribution.d.ts +43 -43
- package/lib/browser/shell/view-contribution.js +167 -167
- package/lib/browser/source-tree/index.d.ts +3 -3
- package/lib/browser/source-tree/index.js +30 -30
- package/lib/browser/source-tree/source-tree-widget.d.ts +21 -21
- package/lib/browser/source-tree/source-tree-widget.js +118 -118
- package/lib/browser/source-tree/source-tree.d.ts +36 -36
- package/lib/browser/source-tree/source-tree.js +134 -134
- package/lib/browser/source-tree/tree-source.d.ts +35 -35
- package/lib/browser/source-tree/tree-source.js +64 -64
- package/lib/browser/status-bar/index.d.ts +5 -5
- package/lib/browser/status-bar/index.js +40 -40
- package/lib/browser/status-bar/status-bar-types.d.ts +72 -72
- package/lib/browser/status-bar/status-bar-types.js +25 -25
- package/lib/browser/status-bar/status-bar-view-model.d.ts +35 -35
- package/lib/browser/status-bar/status-bar-view-model.js +212 -212
- package/lib/browser/status-bar/status-bar.d.ts +34 -34
- package/lib/browser/status-bar/status-bar.js +192 -192
- package/lib/browser/storage-service.d.ts +35 -35
- package/lib/browser/storage-service.js +130 -130
- package/lib/browser/storage-service.spec.d.ts +1 -1
- package/lib/browser/storage-service.spec.js +68 -68
- package/lib/browser/styling-service.d.ts +28 -28
- package/lib/browser/styling-service.js +85 -85
- package/lib/browser/supported-encodings.d.ts +9 -9
- package/lib/browser/supported-encodings.js +263 -263
- package/lib/browser/test/jsdom.d.ts +8 -8
- package/lib/browser/test/jsdom.js +69 -69
- package/lib/browser/test/mock-connection-status-service.d.ts +5 -5
- package/lib/browser/test/mock-connection-status-service.js +32 -32
- package/lib/browser/test/mock-env-variables-server.d.ts +12 -12
- package/lib/browser/test/mock-env-variables-server.js +42 -42
- package/lib/browser/test/mock-opener-service.d.ts +8 -8
- package/lib/browser/test/mock-opener-service.js +40 -40
- package/lib/browser/test/mock-storage-service.d.ts +11 -11
- package/lib/browser/test/mock-storage-service.js +54 -54
- package/lib/browser/theming.d.ts +50 -50
- package/lib/browser/theming.js +211 -211
- package/lib/browser/tooltip-service.d.ts +34 -34
- package/lib/browser/tooltip-service.js +87 -87
- package/lib/browser/tooltip-service.js.map +1 -1
- package/lib/browser/tree/fuzzy-search.d.ts +60 -60
- package/lib/browser/tree/fuzzy-search.js +80 -80
- package/lib/browser/tree/fuzzy-search.spec.d.ts +1 -1
- package/lib/browser/tree/fuzzy-search.spec.js +89 -89
- package/lib/browser/tree/index.d.ts +13 -12
- package/lib/browser/tree/index.d.ts.map +1 -1
- package/lib/browser/tree/index.js +40 -39
- package/lib/browser/tree/index.js.map +1 -1
- package/lib/browser/tree/search-box-debounce.d.ts +33 -33
- package/lib/browser/tree/search-box-debounce.js +75 -75
- package/lib/browser/tree/search-box.d.ts +105 -105
- package/lib/browser/tree/search-box.js +265 -265
- package/lib/browser/tree/test/mock-selectable-tree-model.d.ts +15 -0
- package/lib/browser/tree/test/mock-selectable-tree-model.d.ts.map +1 -0
- package/lib/browser/tree/test/mock-selectable-tree-model.js +103 -0
- package/lib/browser/tree/test/mock-selectable-tree-model.js.map +1 -0
- package/lib/browser/tree/test/mock-tree-model.d.ts +12 -12
- package/lib/browser/tree/test/mock-tree-model.js +129 -129
- package/lib/browser/tree/test/tree-test-container.d.ts +2 -2
- package/lib/browser/tree/test/tree-test-container.js +52 -52
- package/lib/browser/tree/tree-compression/compressed-tree-expansion-service.d.ts +8 -8
- package/lib/browser/tree/tree-compression/compressed-tree-expansion-service.js +67 -67
- package/lib/browser/tree/tree-compression/compressed-tree-model.d.ts +23 -23
- package/lib/browser/tree/tree-compression/compressed-tree-model.js +97 -97
- package/lib/browser/tree/tree-compression/compressed-tree-widget.d.ts +38 -38
- package/lib/browser/tree/tree-compression/compressed-tree-widget.js +198 -198
- package/lib/browser/tree/tree-compression/index.d.ts +4 -4
- package/lib/browser/tree/tree-compression/index.js +31 -31
- package/lib/browser/tree/tree-compression/tree-compression-service.d.ts +58 -58
- package/lib/browser/tree/tree-compression/tree-compression-service.js +103 -103
- package/lib/browser/tree/tree-consistency.spec.d.ts +1 -1
- package/lib/browser/tree/tree-consistency.spec.js +104 -104
- package/lib/browser/tree/tree-container.d.ts +51 -51
- package/lib/browser/tree/tree-container.js +115 -115
- package/lib/browser/tree/tree-container.spec.d.ts +1 -1
- package/lib/browser/tree/tree-container.spec.js +45 -45
- package/lib/browser/tree/tree-decorator.d.ts +143 -143
- package/lib/browser/tree/tree-decorator.js +123 -123
- package/lib/browser/tree/tree-decorator.spec.d.ts +1 -1
- package/lib/browser/tree/tree-decorator.spec.js +145 -145
- package/lib/browser/tree/tree-expansion.d.ts +65 -65
- package/lib/browser/tree/tree-expansion.js +132 -132
- package/lib/browser/tree/tree-expansion.spec.d.ts +1 -1
- package/lib/browser/tree/tree-expansion.spec.js +155 -155
- package/lib/browser/tree/tree-focus-service.d.ts +19 -19
- package/lib/browser/tree/tree-focus-service.js +61 -61
- package/lib/browser/tree/tree-iterator.d.ts +94 -94
- package/lib/browser/tree/tree-iterator.js +223 -223
- package/lib/browser/tree/tree-iterator.spec.d.ts +1 -1
- package/lib/browser/tree/tree-iterator.spec.js +150 -150
- package/lib/browser/tree/tree-label-provider.d.ts +8 -8
- package/lib/browser/tree/tree-label-provider.js +44 -44
- package/lib/browser/tree/tree-model.d.ts +202 -178
- package/lib/browser/tree/tree-model.d.ts.map +1 -1
- package/lib/browser/tree/tree-model.js +403 -357
- package/lib/browser/tree/tree-model.js.map +1 -1
- package/lib/browser/tree/tree-navigation.d.ts +10 -10
- package/lib/browser/tree/tree-navigation.js +62 -62
- package/lib/browser/tree/tree-preference.d.ts +11 -0
- package/lib/browser/tree/tree-preference.d.ts.map +1 -0
- package/lib/browser/tree/tree-preference.js +47 -0
- package/lib/browser/tree/tree-preference.js.map +1 -0
- package/lib/browser/tree/tree-search.d.ts +36 -36
- package/lib/browser/tree/tree-search.js +138 -138
- package/lib/browser/tree/tree-selectable.spec.d.ts +2 -0
- package/lib/browser/tree/tree-selectable.spec.d.ts.map +1 -0
- package/lib/browser/tree/tree-selectable.spec.js +147 -0
- package/lib/browser/tree/tree-selectable.spec.js.map +1 -0
- package/lib/browser/tree/tree-selection-impl.d.ts +44 -44
- package/lib/browser/tree/tree-selection-impl.js +166 -166
- package/lib/browser/tree/tree-selection-state.d.ts +48 -48
- package/lib/browser/tree/tree-selection-state.js +227 -227
- package/lib/browser/tree/tree-selection-state.spec.d.ts +1 -1
- package/lib/browser/tree/tree-selection-state.spec.js +420 -420
- package/lib/browser/tree/tree-selection.d.ts +86 -86
- package/lib/browser/tree/tree-selection.js +86 -86
- package/lib/browser/tree/tree-view-welcome-widget.d.ts +45 -45
- package/lib/browser/tree/tree-view-welcome-widget.js +200 -200
- package/lib/browser/tree/tree-widget-selection.d.ts +11 -11
- package/lib/browser/tree/tree-widget-selection.js +46 -46
- package/lib/browser/tree/tree-widget.d.ts +559 -556
- package/lib/browser/tree/tree-widget.d.ts.map +1 -1
- package/lib/browser/tree/tree-widget.js +1363 -1342
- package/lib/browser/tree/tree-widget.js.map +1 -1
- package/lib/browser/tree/tree.d.ts +180 -180
- package/lib/browser/tree/tree.d.ts.map +1 -1
- package/lib/browser/tree/tree.js +296 -293
- package/lib/browser/tree/tree.js.map +1 -1
- package/lib/browser/tree/tree.spec.d.ts +1 -1
- package/lib/browser/tree/tree.spec.js +226 -226
- package/lib/browser/user-working-directory-provider.d.ts +23 -23
- package/lib/browser/user-working-directory-provider.js +84 -84
- package/lib/browser/view-container.d.ts +312 -312
- package/lib/browser/view-container.js +1466 -1466
- package/lib/browser/widget-decoration.d.ts +299 -299
- package/lib/browser/widget-decoration.js +140 -140
- package/lib/browser/widget-manager.d.ts +172 -163
- package/lib/browser/widget-manager.d.ts.map +1 -1
- package/lib/browser/widget-manager.js +230 -207
- package/lib/browser/widget-manager.js.map +1 -1
- package/lib/browser/widget-manager.spec.d.ts +1 -1
- package/lib/browser/widget-manager.spec.js +91 -91
- package/lib/browser/widget-open-handler.d.ts +88 -88
- package/lib/browser/widget-open-handler.js +145 -145
- package/lib/browser/widgets/alert-message.d.ts +23 -23
- package/lib/browser/widgets/alert-message.js +38 -38
- package/lib/browser/widgets/enhanced-preview-widget.d.ts +6 -6
- package/lib/browser/widgets/enhanced-preview-widget.js +26 -26
- package/lib/browser/widgets/extractable-widget.d.ts +13 -13
- package/lib/browser/widgets/extractable-widget.js +26 -26
- package/lib/browser/widgets/index.d.ts +4 -4
- package/lib/browser/widgets/index.js +31 -31
- package/lib/browser/widgets/previewable-widget.d.ts +8 -8
- package/lib/browser/widgets/previewable-widget.js +30 -30
- package/lib/browser/widgets/react-renderer.d.ts +14 -14
- package/lib/browser/widgets/react-renderer.js +59 -59
- package/lib/browser/widgets/react-widget.d.ts +16 -16
- package/lib/browser/widgets/react-widget.js +57 -57
- package/lib/browser/widgets/select-component.d.ts +53 -53
- package/lib/browser/widgets/select-component.d.ts.map +1 -1
- package/lib/browser/widgets/select-component.js +307 -306
- package/lib/browser/widgets/select-component.js.map +1 -1
- package/lib/browser/widgets/widget.d.ts +108 -106
- package/lib/browser/widgets/widget.d.ts.map +1 -1
- package/lib/browser/widgets/widget.js +385 -377
- package/lib/browser/widgets/widget.js.map +1 -1
- package/lib/browser/window/browser-window-module.d.ts +3 -3
- package/lib/browser/window/browser-window-module.js +32 -32
- package/lib/browser/window/default-secondary-window-service.d.ts +25 -25
- package/lib/browser/window/default-secondary-window-service.js +198 -198
- package/lib/browser/window/default-window-service.d.ts +49 -49
- package/lib/browser/window/default-window-service.js +172 -172
- package/lib/browser/window/default-window-service.spec.d.ts +1 -1
- package/lib/browser/window/default-window-service.spec.js +80 -80
- package/lib/browser/window/secondary-window-service.d.ts +20 -20
- package/lib/browser/window/secondary-window-service.js +19 -19
- package/lib/browser/window/test/mock-window-service.d.ts +10 -10
- package/lib/browser/window/test/mock-window-service.js +38 -38
- package/lib/browser/window/window-service.d.ts +45 -45
- package/lib/browser/window/window-service.js +22 -22
- package/lib/browser/window/window-title-service.d.ts +31 -31
- package/lib/browser/window/window-title-service.js +120 -120
- package/lib/browser/window/window-title-updater.d.ts +19 -19
- package/lib/browser/window/window-title-updater.js +107 -107
- package/lib/browser/window-contribution.d.ts +14 -14
- package/lib/browser/window-contribution.js +70 -70
- package/lib/browser-only/frontend-only-application-module.d.ts +5 -0
- package/lib/browser-only/frontend-only-application-module.d.ts.map +1 -0
- package/lib/browser-only/frontend-only-application-module.js +115 -0
- package/lib/browser-only/frontend-only-application-module.js.map +1 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.d.ts +4 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.d.ts.map +1 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.js +35 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.js.map +1 -0
- package/lib/browser-only/logger-frontend-only-module.d.ts +3 -0
- package/lib/browser-only/logger-frontend-only-module.d.ts.map +1 -0
- package/lib/browser-only/logger-frontend-only-module.js +61 -0
- package/lib/browser-only/logger-frontend-only-module.js.map +1 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.d.ts +14 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.d.ts.map +1 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.js +57 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.js.map +1 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.d.ts +3 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.d.ts.map +1 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.js +48 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.js.map +1 -0
- package/lib/browser-only/preload/frontend-only-preload-module.d.ts +4 -0
- package/lib/browser-only/preload/frontend-only-preload-module.d.ts.map +1 -0
- package/lib/browser-only/preload/frontend-only-preload-module.js +52 -0
- package/lib/browser-only/preload/frontend-only-preload-module.js.map +1 -0
- package/lib/common/accessibility.d.ts +16 -16
- package/lib/common/accessibility.js +17 -17
- package/lib/common/application-error.d.ts +20 -20
- package/lib/common/application-error.js +62 -62
- package/lib/common/application-error.spec.d.ts +1 -1
- package/lib/common/application-error.spec.js +26 -26
- package/lib/common/application-protocol.d.ts +20 -19
- package/lib/common/application-protocol.d.ts.map +1 -1
- package/lib/common/application-protocol.js +20 -20
- package/lib/common/array-utils.d.ts +55 -55
- package/lib/common/array-utils.js +118 -118
- package/lib/common/buffer.d.ts +43 -43
- package/lib/common/buffer.js +205 -205
- package/lib/common/cancellation.d.ts +24 -24
- package/lib/common/cancellation.js +142 -142
- package/lib/common/char-code.d.ts +401 -401
- package/lib/common/char-code.js +22 -22
- package/lib/common/collections.d.ts +29 -29
- package/lib/common/collections.js +121 -121
- package/lib/common/color.d.ts +71 -71
- package/lib/common/color.js +43 -43
- package/lib/common/command.d.ts +232 -232
- package/lib/common/command.js +364 -364
- package/lib/common/command.spec.d.ts +1 -1
- package/lib/common/command.spec.js +173 -173
- package/lib/common/contribution-filter/contribution-filter-registry.d.ts +17 -17
- package/lib/common/contribution-filter/contribution-filter-registry.js +88 -88
- package/lib/common/contribution-filter/contribution-filter.d.ts +41 -41
- package/lib/common/contribution-filter/contribution-filter.js +20 -20
- package/lib/common/contribution-filter/filter.d.ts +6 -6
- package/lib/common/contribution-filter/filter.js +19 -19
- package/lib/common/contribution-filter/index.d.ts +3 -3
- package/lib/common/contribution-filter/index.js +30 -30
- package/lib/common/contribution-provider.d.ts +20 -20
- package/lib/common/contribution-provider.js +82 -82
- package/lib/common/disposable.d.ts +80 -43
- package/lib/common/disposable.d.ts.map +1 -1
- package/lib/common/disposable.js +173 -120
- package/lib/common/disposable.js.map +1 -1
- package/lib/common/disposable.spec.d.ts +1 -1
- package/lib/common/disposable.spec.js +80 -29
- package/lib/common/disposable.spec.js.map +1 -1
- package/lib/common/encoding-service.d.ts +38 -38
- package/lib/common/encoding-service.js +307 -307
- package/lib/common/encodings.d.ts +7 -7
- package/lib/common/encodings.js +25 -25
- package/lib/common/env-variables/env-variables-protocol.d.ts +20 -20
- package/lib/common/env-variables/env-variables-protocol.js +20 -20
- package/lib/common/env-variables/index.d.ts +1 -1
- package/lib/common/env-variables/index.js +28 -28
- package/lib/common/event.d.ts +115 -115
- package/lib/common/event.js +385 -385
- package/lib/common/event.spec.d.ts +1 -1
- package/lib/common/event.spec.js +29 -29
- package/lib/{node → common}/file-uri.d.ts +14 -14
- package/lib/common/file-uri.d.ts.map +1 -0
- package/lib/{node → common}/file-uri.js +62 -62
- package/lib/common/file-uri.js.map +1 -0
- package/lib/common/frontend-application-state.d.ts +15 -15
- package/lib/common/frontend-application-state.js +33 -33
- package/lib/common/glob.d.ts +50 -50
- package/lib/common/glob.js +591 -591
- package/lib/common/hash.d.ts +7 -7
- package/lib/common/hash.js +84 -84
- package/lib/common/i18n/localization-server.d.ts +6 -6
- package/lib/common/i18n/localization-server.js +20 -20
- package/lib/common/i18n/localization.d.ts +34 -34
- package/lib/common/i18n/localization.js +59 -59
- package/lib/common/index.d.ts +35 -34
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +65 -64
- package/lib/common/index.js.map +1 -1
- package/lib/common/json-schema.d.ts +72 -72
- package/lib/common/json-schema.js +17 -17
- package/lib/common/key-store.d.ts +12 -12
- package/lib/common/key-store.js +20 -20
- package/lib/common/keybinding.d.ts +75 -75
- package/lib/common/keybinding.js +113 -113
- package/lib/common/keyboard/keyboard-layout-provider.d.ts +26 -26
- package/lib/common/keyboard/keyboard-layout-provider.js +22 -22
- package/lib/common/keys.d.ts +253 -253
- package/lib/common/keys.js +634 -634
- package/lib/common/label-protocol.d.ts +13 -13
- package/lib/common/label-protocol.js +17 -17
- package/lib/common/logger-protocol.d.ts +41 -41
- package/lib/common/logger-protocol.js +105 -105
- package/lib/common/logger-watcher.d.ts +9 -9
- package/lib/common/logger-watcher.js +54 -54
- package/lib/common/logger.d.ts +207 -207
- package/lib/common/logger.js +212 -212
- package/lib/common/logger.spec.d.ts +1 -1
- package/lib/common/logger.spec.js +41 -41
- package/lib/common/lsp-types.d.ts +9 -9
- package/lib/common/lsp-types.js +30 -30
- package/lib/common/markdown-rendering/icon-utilities.d.ts +7 -7
- package/lib/common/markdown-rendering/icon-utilities.js +32 -32
- package/lib/common/markdown-rendering/index.d.ts +2 -2
- package/lib/common/markdown-rendering/index.js +29 -29
- package/lib/common/markdown-rendering/markdown-string.d.ts +46 -43
- package/lib/common/markdown-rendering/markdown-string.d.ts.map +1 -1
- package/lib/common/markdown-rendering/markdown-string.js +126 -126
- package/lib/common/markdown-rendering/markdown-string.js.map +1 -1
- package/lib/common/menu/action-menu-node.d.ts +19 -19
- package/lib/common/menu/action-menu-node.js +56 -56
- package/lib/common/menu/composite-menu-node.d.ts +46 -46
- package/lib/common/menu/composite-menu-node.js +93 -93
- package/lib/common/menu/index.d.ts +5 -5
- package/lib/common/menu/index.js +32 -32
- package/lib/common/menu/menu-adapter.d.ts +35 -35
- package/lib/common/menu/menu-adapter.js +100 -100
- package/lib/common/menu/menu-model-registry.d.ts +145 -145
- package/lib/common/menu/menu-model-registry.d.ts.map +1 -1
- package/lib/common/menu/menu-model-registry.js +286 -272
- package/lib/common/menu/menu-model-registry.js.map +1 -1
- package/lib/common/menu/menu-types.d.ts +148 -148
- package/lib/common/menu/menu-types.js +93 -93
- package/lib/common/menu/menu.spec.d.ts +1 -1
- package/lib/common/menu/menu.spec.js +96 -69
- package/lib/common/menu/menu.spec.js.map +1 -1
- package/lib/common/message-rpc/channel.d.ts +123 -123
- package/lib/common/message-rpc/channel.js +230 -230
- package/lib/common/message-rpc/channel.spec.d.ts +8 -8
- package/lib/common/message-rpc/channel.spec.js +79 -79
- package/lib/common/message-rpc/index.d.ts +3 -3
- package/lib/common/message-rpc/index.js +24 -24
- package/lib/common/message-rpc/message-buffer.d.ts +51 -51
- package/lib/common/message-rpc/message-buffer.js +59 -59
- package/lib/common/message-rpc/msg-pack-extension-manager.d.ts +22 -22
- package/lib/common/message-rpc/msg-pack-extension-manager.js +57 -57
- package/lib/common/message-rpc/rpc-message-encoder.d.ts +103 -103
- package/lib/common/message-rpc/rpc-message-encoder.js +113 -113
- package/lib/common/message-rpc/rpc-message-encoder.spec.d.ts +1 -1
- package/lib/common/message-rpc/rpc-message-encoder.spec.js +58 -58
- package/lib/common/message-rpc/rpc-protocol.d.ts +67 -65
- package/lib/common/message-rpc/rpc-protocol.d.ts.map +1 -1
- package/lib/common/message-rpc/rpc-protocol.js +209 -191
- package/lib/common/message-rpc/rpc-protocol.js.map +1 -1
- package/lib/common/message-rpc/uint8-array-message-buffer.d.ts +52 -52
- package/lib/common/message-rpc/uint8-array-message-buffer.js +174 -174
- package/lib/common/message-rpc/uint8-array-message-buffer.spec.d.ts +1 -1
- package/lib/common/message-rpc/uint8-array-message-buffer.spec.js +38 -38
- package/lib/common/message-service-protocol.d.ts +110 -110
- package/lib/common/message-service-protocol.js +78 -78
- package/lib/common/message-service.d.ts +134 -134
- package/lib/common/message-service.js +162 -162
- package/lib/common/messaging/connection-error-handler.d.ts +28 -28
- package/lib/common/messaging/connection-error-handler.js +47 -47
- package/lib/common/messaging/connection-management.d.ts +24 -24
- package/lib/common/messaging/connection-management.js +37 -37
- package/lib/common/messaging/handler.d.ts +7 -7
- package/lib/common/messaging/handler.js +20 -20
- package/lib/common/messaging/index.d.ts +3 -3
- package/lib/common/messaging/index.js +30 -30
- package/lib/common/messaging/proxy-factory.d.ts +180 -180
- package/lib/common/messaging/proxy-factory.d.ts.map +1 -1
- package/lib/common/messaging/proxy-factory.js +280 -287
- package/lib/common/messaging/proxy-factory.js.map +1 -1
- package/lib/common/messaging/proxy-factory.spec.d.ts +1 -1
- package/lib/common/messaging/proxy-factory.spec.js +99 -99
- package/lib/common/messaging/socket-write-buffer.d.ts +10 -10
- package/lib/common/messaging/socket-write-buffer.js +49 -49
- package/lib/common/messaging/web-socket-channel.d.ts +19 -19
- package/lib/common/messaging/web-socket-channel.js +64 -64
- package/lib/common/nls.d.ts +15 -15
- package/lib/common/nls.js +133 -133
- package/lib/common/numbers.d.ts +5 -5
- package/lib/common/numbers.js +23 -23
- package/lib/common/objects.d.ts +8 -8
- package/lib/common/objects.js +118 -118
- package/lib/common/objects.spec.d.ts +1 -1
- package/lib/common/objects.spec.js +101 -101
- package/lib/common/os.d.ts +31 -31
- package/lib/common/os.js +73 -73
- package/lib/common/path.d.ts +93 -93
- package/lib/common/path.js +307 -307
- package/lib/common/path.spec.d.ts +1 -1
- package/lib/common/path.spec.js +350 -350
- package/lib/common/paths.d.ts +24 -24
- package/lib/common/paths.js +226 -226
- package/lib/common/performance/index.d.ts +3 -3
- package/lib/common/performance/index.js +30 -30
- package/lib/common/performance/measurement-protocol.d.ts +64 -64
- package/lib/common/performance/measurement-protocol.js +78 -78
- package/lib/common/performance/measurement.d.ts +111 -111
- package/lib/common/performance/measurement.js +17 -17
- package/lib/common/performance/stopwatch.d.ts +75 -75
- package/lib/common/performance/stopwatch.js +156 -156
- package/lib/common/preferences/preference-schema.d.ts +52 -52
- package/lib/common/preferences/preference-schema.js +58 -58
- package/lib/common/preferences/preference-scope.d.ts +19 -19
- package/lib/common/preferences/preference-scope.js +71 -71
- package/lib/common/preferences/preference-scope.spec.d.ts +1 -1
- package/lib/common/preferences/preference-scope.spec.js +44 -44
- package/lib/common/prioritizeable.d.ts +16 -16
- package/lib/common/prioritizeable.js +55 -55
- package/lib/common/progress-service-protocol.d.ts +13 -13
- package/lib/common/progress-service-protocol.js +19 -19
- package/lib/common/progress-service.d.ts +13 -13
- package/lib/common/progress-service.js +96 -96
- package/lib/common/promise-util.d.ts +51 -51
- package/lib/common/promise-util.js +132 -132
- package/lib/common/promise-util.spec.d.ts +1 -1
- package/lib/common/promise-util.spec.js +55 -55
- package/lib/common/quick-pick-service.d.ts +269 -280
- package/lib/common/quick-pick-service.d.ts.map +1 -1
- package/lib/common/quick-pick-service.js +133 -158
- package/lib/common/quick-pick-service.js.map +1 -1
- package/lib/common/reference.d.ts +95 -40
- package/lib/common/reference.d.ts.map +1 -1
- package/lib/common/reference.js +207 -152
- package/lib/common/reference.js.map +1 -1
- package/lib/common/reference.spec.d.ts +1 -1
- package/lib/common/reference.spec.js +125 -125
- package/lib/common/resource.d.ts +207 -205
- package/lib/common/resource.d.ts.map +1 -1
- package/lib/common/resource.js +333 -333
- package/lib/common/resource.js.map +1 -1
- package/lib/common/selection-command-handler.d.ts +24 -24
- package/lib/common/selection-command-handler.js +83 -83
- package/lib/common/selection-service.d.ts +18 -18
- package/lib/common/selection-service.js +48 -48
- package/lib/common/selection-service.spec.d.ts +1 -1
- package/lib/common/selection-service.spec.js +38 -38
- package/lib/common/selection.d.ts +9 -9
- package/lib/common/selection.js +47 -47
- package/lib/common/severity.d.ts +15 -15
- package/lib/common/severity.js +113 -113
- package/lib/common/stream.d.ts +176 -176
- package/lib/common/stream.js +474 -474
- package/lib/common/strings.d.ts +24 -24
- package/lib/common/strings.js +215 -215
- package/lib/common/telemetry.d.ts +19 -19
- package/lib/common/telemetry.js +24 -24
- package/lib/common/ternary-search-tree.d.ts +50 -50
- package/lib/common/ternary-search-tree.js +381 -381
- package/lib/common/test/expect.d.ts +2 -2
- package/lib/common/test/expect.js +34 -34
- package/lib/common/test/mock-logger.d.ts +27 -27
- package/lib/common/test/mock-logger.js +104 -104
- package/lib/common/test/mock-menu.d.ts +7 -7
- package/lib/common/test/mock-menu.js +34 -34
- package/lib/common/test/mock-resource-provider.d.ts +6 -6
- package/lib/common/test/mock-resource-provider.js +44 -44
- package/lib/common/theme.d.ts +40 -15
- package/lib/common/theme.d.ts.map +1 -1
- package/lib/common/theme.js +22 -22
- package/lib/common/theme.js.map +1 -1
- package/lib/common/types.d.ts +58 -58
- package/lib/common/types.js +126 -126
- package/lib/common/types.spec.d.ts +1 -1
- package/lib/common/types.spec.js +73 -73
- package/lib/common/uri-command-handler.d.ts +53 -53
- package/lib/common/uri-command-handler.js +99 -99
- package/lib/common/uri-command-handler.spec.d.ts +1 -1
- package/lib/common/uri-command-handler.spec.js +80 -80
- package/lib/common/uri.d.ts +87 -86
- package/lib/common/uri.d.ts.map +1 -1
- package/lib/common/uri.js +236 -236
- package/lib/common/uri.js.map +1 -1
- package/lib/common/uri.spec.d.ts +1 -1
- package/lib/common/uri.spec.js +230 -230
- package/lib/common/uuid.d.ts +8 -2
- package/lib/common/uuid.d.ts.map +1 -1
- package/lib/common/uuid.js +44 -85
- package/lib/common/uuid.js.map +1 -1
- package/lib/common/version.d.ts +1 -1
- package/lib/common/version.js +19 -19
- package/lib/common/view-column.d.ts +17 -17
- package/lib/common/view-column.js +36 -36
- package/lib/common/window.d.ts +16 -16
- package/lib/common/window.js +22 -22
- package/lib/electron-browser/electron-clipboard-service.d.ts +5 -5
- package/lib/electron-browser/electron-clipboard-service.js +38 -38
- package/lib/electron-browser/keyboard/electron-keyboard-layout-change-notifier.d.ts +11 -11
- package/lib/electron-browser/keyboard/electron-keyboard-layout-change-notifier.js +54 -54
- package/lib/electron-browser/keyboard/electron-keyboard-module.d.ts +3 -3
- package/lib/electron-browser/keyboard/electron-keyboard-module.js +26 -26
- package/lib/electron-browser/menu/electron-context-menu-renderer.d.ts +30 -30
- package/lib/electron-browser/menu/electron-context-menu-renderer.js +137 -137
- package/lib/electron-browser/menu/electron-main-menu-factory.d.ts +59 -59
- package/lib/electron-browser/menu/electron-main-menu-factory.js +282 -282
- package/lib/electron-browser/menu/electron-menu-contribution.d.ts +78 -77
- package/lib/electron-browser/menu/electron-menu-contribution.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-menu-contribution.js +482 -473
- package/lib/electron-browser/menu/electron-menu-contribution.js.map +1 -1
- package/lib/electron-browser/menu/electron-menu-module.d.ts +3 -3
- package/lib/electron-browser/menu/electron-menu-module.js +39 -39
- package/lib/electron-browser/messaging/electron-frontend-id-provider.d.ts +4 -4
- package/lib/electron-browser/messaging/electron-frontend-id-provider.js +34 -34
- package/lib/electron-browser/messaging/electron-ipc-connection-source.d.ts +23 -23
- package/lib/electron-browser/messaging/electron-ipc-connection-source.js +64 -64
- package/lib/electron-browser/messaging/electron-local-ws-connection-source.d.ts +6 -6
- package/lib/electron-browser/messaging/electron-local-ws-connection-source.js +54 -54
- package/lib/electron-browser/messaging/electron-messaging-frontend-module.d.ts +2 -2
- package/lib/electron-browser/messaging/electron-messaging-frontend-module.js +75 -75
- package/lib/electron-browser/messaging/electron-messaging-frontend-module.js.map +1 -1
- package/lib/electron-browser/messaging/electron-ws-connection-source.d.ts +11 -11
- package/lib/electron-browser/messaging/electron-ws-connection-source.js +50 -50
- package/lib/electron-browser/preload.d.ts +1 -1
- package/lib/electron-browser/preload.js +201 -201
- package/lib/electron-browser/request/electron-browser-request-module.d.ts +18 -18
- package/lib/electron-browser/request/electron-browser-request-module.js +26 -26
- package/lib/electron-browser/token/electron-token-frontend-module.d.ts +3 -3
- package/lib/electron-browser/token/electron-token-frontend-module.js +22 -22
- package/lib/electron-browser/window/electron-frontend-application-state.d.ts +4 -4
- package/lib/electron-browser/window/electron-frontend-application-state.js +36 -36
- package/lib/electron-browser/window/electron-secondary-window-service.d.ts +7 -7
- package/lib/electron-browser/window/electron-secondary-window-service.js +47 -47
- package/lib/electron-browser/window/electron-window-module.d.ts +3 -3
- package/lib/electron-browser/window/electron-window-module.js +39 -39
- package/lib/electron-browser/window/electron-window-preferences.d.ts +18 -18
- package/lib/electron-browser/window/electron-window-preferences.js +72 -72
- package/lib/electron-browser/window/electron-window-service.d.ts +29 -29
- package/lib/electron-browser/window/electron-window-service.js +114 -114
- package/lib/electron-common/electron-api.d.ts +104 -104
- package/lib/electron-common/electron-api.js +56 -56
- package/lib/electron-common/electron-main-window-service.d.ts +7 -7
- package/lib/electron-common/electron-main-window-service.js +20 -20
- package/lib/electron-common/electron-token.d.ts +10 -10
- package/lib/electron-common/electron-token.js +27 -27
- package/lib/electron-main/electron-api-main.d.ts +22 -22
- package/lib/electron-main/electron-api-main.js +294 -294
- package/lib/electron-main/electron-main-application-module.d.ts +3 -3
- package/lib/electron-main/electron-main-application-module.js +56 -56
- package/lib/electron-main/electron-main-application-module.js.map +1 -1
- package/lib/electron-main/electron-main-application.d.ts +159 -159
- package/lib/electron-main/electron-main-application.js +611 -611
- package/lib/electron-main/electron-main-application.js.map +1 -1
- package/lib/electron-main/electron-main-constants.d.ts +6 -6
- package/lib/electron-main/electron-main-constants.js +19 -19
- package/lib/electron-main/electron-main-window-service-impl.d.ts +8 -8
- package/lib/electron-main/electron-main-window-service-impl.js +54 -54
- package/lib/electron-main/electron-security-token-service.d.ts +5 -5
- package/lib/electron-main/electron-security-token-service.js +49 -49
- package/lib/electron-main/event-utils.d.ts +8 -8
- package/lib/electron-main/event-utils.js +33 -33
- package/lib/electron-main/messaging/electron-connection-handler.d.ts +5 -5
- package/lib/electron-main/messaging/electron-connection-handler.js +23 -23
- package/lib/electron-main/messaging/electron-messaging-contribution.d.ts +41 -41
- package/lib/electron-main/messaging/electron-messaging-contribution.js +150 -150
- package/lib/electron-main/messaging/electron-messaging-service.d.ts +17 -17
- package/lib/electron-main/messaging/electron-messaging-service.js +22 -22
- package/lib/electron-main/theia-electron-window.d.ts +53 -53
- package/lib/electron-main/theia-electron-window.js +194 -194
- package/lib/electron-main/theia-electron-window.js.map +1 -1
- package/lib/electron-node/hosting/electron-backend-hosting-module.d.ts +3 -3
- package/lib/electron-node/hosting/electron-backend-hosting-module.js +24 -24
- package/lib/electron-node/hosting/electron-ws-origin-validator.d.ts +8 -8
- package/lib/electron-node/hosting/electron-ws-origin-validator.js +48 -48
- package/lib/electron-node/keyboard/electron-backend-keyboard-module.d.ts +3 -3
- package/lib/electron-node/keyboard/electron-backend-keyboard-module.js +26 -26
- package/lib/electron-node/keyboard/electron-keyboard-layout-provider.d.ts +5 -5
- package/lib/electron-node/keyboard/electron-keyboard-layout-provider.js +41 -41
- package/lib/electron-node/request/electron-backend-request-module.d.ts +18 -18
- package/lib/electron-node/request/electron-backend-request-module.js +23 -23
- package/lib/electron-node/request/electron-backend-request-service.d.ts +22 -22
- package/lib/electron-node/request/electron-backend-request-service.js +86 -86
- package/lib/electron-node/token/electron-token-backend-contribution.d.ts +15 -15
- package/lib/electron-node/token/electron-token-backend-contribution.js +58 -58
- package/lib/electron-node/token/electron-token-backend-module.d.ts +3 -3
- package/lib/electron-node/token/electron-token-backend-module.js +28 -28
- package/lib/electron-node/token/electron-token-validator.d.ts +29 -29
- package/lib/electron-node/token/electron-token-validator.js +103 -103
- package/lib/node/application-server.d.ts +10 -9
- package/lib/node/application-server.d.ts.map +1 -1
- package/lib/node/application-server.js +63 -57
- package/lib/node/application-server.js.map +1 -1
- package/lib/node/backend-application-config-provider.d.ts +7 -7
- package/lib/node/backend-application-config-provider.js +45 -45
- package/lib/node/backend-application-config-provider.spec.d.ts +1 -1
- package/lib/node/backend-application-config-provider.spec.js +28 -28
- package/lib/node/backend-application-module.d.ts +2 -2
- package/lib/node/backend-application-module.js +108 -108
- package/lib/node/backend-application.d.ts +108 -108
- package/lib/node/backend-application.js +301 -301
- package/lib/node/backend-remote-service.d.ts +3 -3
- package/lib/node/backend-remote-service.js +34 -34
- package/lib/node/cli.d.ts +17 -17
- package/lib/node/cli.js +70 -70
- package/lib/node/cli.spec.d.ts +1 -1
- package/lib/node/cli.spec.js +89 -89
- package/lib/node/console-logger-server.d.ts +15 -15
- package/lib/node/console-logger-server.js +90 -90
- package/lib/node/console-logger-server.spec.d.ts +1 -1
- package/lib/node/console-logger-server.spec.js +69 -69
- package/lib/node/debug.d.ts +1 -1
- package/lib/node/debug.js +28 -28
- package/lib/node/dynamic-require.d.ts +7 -7
- package/lib/node/dynamic-require.js +56 -56
- package/lib/node/env-variables/env-variables-server.d.ts +23 -23
- package/lib/node/env-variables/env-variables-server.js +125 -125
- package/lib/node/env-variables/env-variables-server.js.map +1 -1
- package/lib/node/env-variables/index.d.ts +1 -1
- package/lib/node/env-variables/index.js +28 -28
- package/lib/node/environment-utils.d.ts +21 -21
- package/lib/node/environment-utils.js +77 -77
- package/lib/node/environment-utils.spec.d.ts +1 -1
- package/lib/node/environment-utils.spec.js +77 -77
- package/lib/node/file-uri.spec.d.ts +1 -1
- package/lib/node/file-uri.spec.js +66 -66
- package/lib/node/file-uri.spec.js.map +1 -1
- package/lib/node/filesystem-locking.d.ts +23 -23
- package/lib/node/filesystem-locking.js +70 -70
- package/lib/node/hosting/backend-application-hosts.d.ts +23 -23
- package/lib/node/hosting/backend-application-hosts.js +77 -77
- package/lib/node/hosting/backend-hosting-module.d.ts +3 -3
- package/lib/node/hosting/backend-hosting-module.js +26 -26
- package/lib/node/hosting/ws-origin-validator.d.ts +8 -8
- package/lib/node/hosting/ws-origin-validator.js +47 -47
- package/lib/node/i18n/i18n-backend-module.d.ts +3 -3
- package/lib/node/i18n/i18n-backend-module.js +38 -38
- package/lib/node/i18n/localization-contribution.d.ts +18 -18
- package/lib/node/i18n/localization-contribution.js +116 -116
- package/lib/node/i18n/localization-provider.d.ts +23 -23
- package/lib/node/i18n/localization-provider.js +114 -114
- package/lib/node/i18n/localization-server.d.ts +14 -14
- package/lib/node/i18n/localization-server.js +62 -62
- package/lib/node/i18n/theia-localization-contribution.d.ts +4 -4
- package/lib/node/i18n/theia-localization-contribution.js +45 -45
- package/lib/node/index.d.ts +6 -6
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +35 -35
- package/lib/node/index.js.map +1 -1
- package/lib/node/key-store-server.d.ts +27 -27
- package/lib/node/key-store-server.js +150 -150
- package/lib/node/logger-backend-module.d.ts +9 -9
- package/lib/node/logger-backend-module.js +78 -78
- package/lib/node/logger-cli-contribution.d.ts +33 -33
- package/lib/node/logger-cli-contribution.js +152 -152
- package/lib/node/logger-cli-contribution.spec.d.ts +1 -1
- package/lib/node/logger-cli-contribution.spec.js +207 -207
- package/lib/node/main.d.ts +7 -7
- package/lib/node/main.js +29 -29
- package/lib/node/messaging/binary-message-pipe.d.ts +44 -44
- package/lib/node/messaging/binary-message-pipe.js +151 -151
- package/lib/node/messaging/connection-container-module.d.ts +53 -53
- package/lib/node/messaging/connection-container-module.js +81 -81
- package/lib/node/messaging/default-messaging-service.d.ts +28 -28
- package/lib/node/messaging/default-messaging-service.js +139 -139
- package/lib/node/messaging/frontend-connection-service.d.ts +6 -6
- package/lib/node/messaging/frontend-connection-service.js +18 -18
- package/lib/node/messaging/index.d.ts +3 -3
- package/lib/node/messaging/index.js +30 -30
- package/lib/node/messaging/ipc-bootstrap.d.ts +1 -1
- package/lib/node/messaging/ipc-bootstrap.js +24 -24
- package/lib/node/messaging/ipc-channel.d.ts +17 -17
- package/lib/node/messaging/ipc-channel.js +69 -69
- package/lib/node/messaging/ipc-connection-provider.d.ts +21 -21
- package/lib/node/messaging/ipc-connection-provider.js +100 -100
- package/lib/node/messaging/ipc-protocol.d.ts +19 -19
- package/lib/node/messaging/ipc-protocol.js +68 -68
- package/lib/node/messaging/messaging-backend-module.d.ts +2 -2
- package/lib/node/messaging/messaging-backend-module.js +52 -52
- package/lib/node/messaging/messaging-listeners.d.ts +27 -27
- package/lib/node/messaging/messaging-listeners.js +53 -53
- package/lib/node/messaging/messaging-service.d.ts +28 -28
- package/lib/node/messaging/messaging-service.js +24 -24
- package/lib/node/messaging/test/test-web-socket-channel.d.ts +12 -12
- package/lib/node/messaging/test/test-web-socket-channel.js +62 -62
- package/lib/node/messaging/websocket-endpoint.d.ts +20 -20
- package/lib/node/messaging/websocket-endpoint.js +88 -88
- package/lib/node/messaging/websocket-frontend-connection-service.d.ts +30 -30
- package/lib/node/messaging/websocket-frontend-connection-service.js +177 -177
- package/lib/node/os-backend-provider.d.ts +4 -4
- package/lib/node/os-backend-provider.js +35 -35
- package/lib/node/performance/index.d.ts +2 -2
- package/lib/node/performance/index.js +29 -29
- package/lib/node/performance/measurement-backend-bindings.d.ts +19 -19
- package/lib/node/performance/measurement-backend-bindings.js +30 -30
- package/lib/node/performance/node-stopwatch.d.ts +20 -20
- package/lib/node/performance/node-stopwatch.js +51 -51
- package/lib/node/process-utils.d.ts +13 -13
- package/lib/node/process-utils.js +110 -110
- package/lib/node/process-utils.spec.d.ts +1 -1
- package/lib/node/process-utils.spec.js +44 -44
- package/lib/node/request/backend-request-facade.d.ts +22 -22
- package/lib/node/request/backend-request-facade.js +49 -49
- package/lib/node/request/backend-request-module.d.ts +18 -18
- package/lib/node/request/backend-request-module.js +24 -24
- package/lib/node/request/proxy-cli-contribution.d.ts +27 -27
- package/lib/node/request/proxy-cli-contribution.js +72 -72
- package/lib/node/ws-request-validators.d.ts +25 -25
- package/lib/node/ws-request-validators.js +60 -60
- package/package.json +13 -8
- package/shared/ajv/index.d.ts +2 -2
- package/shared/markdown-it.d.ts +2 -2
- package/shared/markdown-it.js +1 -1
- package/shared/reflect-metadata/index.d.ts +1 -1
- package/shared/reflect-metadata/index.js +1 -1
- package/shared/vscode-languageserver-types/index.d.ts +1 -1
- package/src/browser/about-dialog.tsx +137 -137
- package/src/browser/authentication-service.ts +456 -456
- package/src/browser/breadcrumbs/breadcrumb-popup-container.ts +101 -101
- package/src/browser/breadcrumbs/breadcrumb-renderer.tsx +41 -41
- package/src/browser/breadcrumbs/breadcrumbs-constants.ts +79 -79
- package/src/browser/breadcrumbs/breadcrumbs-renderer.tsx +185 -185
- package/src/browser/breadcrumbs/breadcrumbs-service.ts +108 -108
- package/src/browser/breadcrumbs/index.ts +21 -21
- package/src/browser/browser-clipboard-service.ts +122 -122
- package/src/browser/browser.ts +225 -220
- package/src/browser/clipboard-service.ts +23 -23
- package/src/browser/color-application-contribution.ts +101 -101
- package/src/browser/color-registry.ts +60 -60
- package/src/browser/command-open-handler.ts +54 -54
- package/src/browser/common-frontend-contribution.ts +2526 -2526
- package/src/browser/common-styling-participants.ts +361 -361
- package/src/browser/connection-status-service.spec.ts +200 -200
- package/src/browser/connection-status-service.ts +216 -216
- package/src/browser/context-key-service.ts +142 -143
- package/src/browser/context-menu-renderer.ts +124 -128
- package/src/browser/core-preferences.ts +334 -328
- package/src/browser/credentials-service.ts +106 -106
- package/src/browser/decoration-style.ts +65 -65
- package/src/browser/decorations-service.ts +209 -209
- package/src/browser/dialogs/react-dialog.tsx +56 -56
- package/src/browser/dialogs.ts +534 -534
- package/src/browser/diff-uris.ts +117 -117
- package/src/browser/encoding-registry.ts +97 -97
- package/src/browser/endpoint.spec.ts +148 -148
- package/src/browser/endpoint.ts +136 -136
- package/src/browser/external-uri-service.ts +79 -79
- package/src/browser/file-icons-js.d.ts +20 -20
- package/src/browser/frontend-application-bindings.ts +62 -62
- package/src/browser/frontend-application-config-provider.spec.ts +45 -45
- package/src/browser/frontend-application-config-provider.ts +50 -50
- package/src/browser/frontend-application-contribution.ts +110 -110
- package/src/browser/frontend-application-module.ts +458 -457
- package/src/browser/frontend-application-state.ts +74 -74
- package/src/browser/frontend-application.ts +326 -326
- package/src/browser/hover-service.ts +218 -218
- package/src/browser/http-open-handler.ts +47 -47
- package/src/browser/i18n/i18n-frontend-module.ts +27 -27
- package/src/browser/i18n/language-quick-pick-service.ts +130 -130
- package/src/browser/icon-registry.ts +87 -96
- package/src/browser/icon-theme-contribution.ts +64 -64
- package/src/browser/icon-theme-service.ts +217 -217
- package/src/browser/icons/CollapseAll.svg +7 -7
- package/src/browser/icons/CollapseAll_inverse.svg +7 -7
- package/src/browser/icons/Refresh.svg +7 -7
- package/src/browser/icons/Refresh_inverse.svg +7 -7
- package/src/browser/icons/add-inverse.svg +4 -4
- package/src/browser/icons/add.svg +4 -4
- package/src/browser/icons/arrow-down-bright.svg +6 -6
- package/src/browser/icons/arrow-down-dark.svg +6 -6
- package/src/browser/icons/arrow-up-bright.svg +6 -6
- package/src/browser/icons/arrow-up-dark.svg +6 -6
- package/src/browser/icons/case-sensitive-dark.svg +16 -16
- package/src/browser/icons/case-sensitive.svg +16 -16
- package/src/browser/icons/chevron-right-dark.svg +5 -5
- package/src/browser/icons/chevron-right-light.svg +6 -6
- package/src/browser/icons/circle-bright.svg +7 -7
- package/src/browser/icons/circle-dark.svg +7 -7
- package/src/browser/icons/clear-search-results-dark.svg +7 -7
- package/src/browser/icons/clear-search-results.svg +7 -7
- package/src/browser/icons/close-all-bright.svg +7 -7
- package/src/browser/icons/close-all-dark.svg +7 -7
- package/src/browser/icons/close-bright.svg +7 -7
- package/src/browser/icons/close-dark.svg +7 -7
- package/src/browser/icons/collapse.svg +4 -4
- package/src/browser/icons/edit-json-dark.svg +6 -6
- package/src/browser/icons/edit-json.svg +6 -6
- package/src/browser/icons/expand.svg +4 -4
- package/src/browser/icons/loading-dark.svg +6 -6
- package/src/browser/icons/loading-light.svg +6 -6
- package/src/browser/icons/open-change-bright.svg +3 -3
- package/src/browser/icons/open-change-dark.svg +4 -4
- package/src/browser/icons/open-file-bright.svg +4 -4
- package/src/browser/icons/open-file-dark.svg +4 -4
- package/src/browser/icons/preview-bright.svg +3 -3
- package/src/browser/icons/preview-dark.svg +3 -3
- package/src/browser/icons/regex-dark.svg +10 -10
- package/src/browser/icons/regex.svg +10 -10
- package/src/browser/icons/remove-all-inverse.svg +4 -4
- package/src/browser/icons/remove-all.svg +4 -4
- package/src/browser/icons/replace-all-inverse.svg +13 -13
- package/src/browser/icons/replace-all.svg +13 -13
- package/src/browser/icons/replace-inverse.svg +15 -15
- package/src/browser/icons/replace.svg +15 -15
- package/src/browser/icons/whole-word-dark.svg +19 -19
- package/src/browser/icons/whole-word.svg +19 -19
- package/src/browser/index.ts +47 -47
- package/src/browser/json-schema-store.ts +127 -127
- package/src/browser/keybinding.spec.ts +553 -553
- package/src/browser/keybinding.ts +756 -756
- package/src/browser/keyboard/browser-keyboard-frontend-contribution.ts +108 -108
- package/src/browser/keyboard/browser-keyboard-layout-provider.spec.ts +171 -171
- package/src/browser/keyboard/browser-keyboard-layout-provider.ts +469 -469
- package/src/browser/keyboard/browser-keyboard-module.ts +30 -30
- package/src/browser/keyboard/index.ts +20 -20
- package/src/browser/keyboard/keyboard-layout-service.spec.ts +121 -121
- package/src/browser/keyboard/keyboard-layout-service.ts +455 -455
- package/src/browser/keyboard/keys.spec.ts +258 -258
- package/src/browser/keyboard/keys.ts +20 -20
- package/src/browser/keys.ts +21 -21
- package/src/browser/label-parser.spec.ts +165 -165
- package/src/browser/label-parser.ts +108 -108
- package/src/browser/label-provider.spec.ts +62 -62
- package/src/browser/label-provider.ts +385 -385
- package/src/browser/language-icon-provider.ts +55 -55
- package/src/browser/language-service.ts +77 -77
- package/src/browser/logger-frontend-module.ts +65 -65
- package/src/browser/markdown-rendering/markdown-renderer.ts +98 -98
- package/src/browser/menu/browser-context-menu-renderer.ts +47 -47
- package/src/browser/menu/browser-menu-module.ts +28 -28
- package/src/browser/menu/browser-menu-plugin.ts +484 -484
- package/src/browser/menu/context-menu-context.ts +41 -41
- package/src/browser/messaging/connection-source.ts +26 -26
- package/src/browser/messaging/frontend-id-provider.ts +37 -37
- package/src/browser/messaging/index.ts +17 -17
- package/src/browser/messaging/messaging-frontend-module.ts +41 -41
- package/src/browser/messaging/service-connection-provider.ts +126 -126
- package/src/browser/messaging/ws-connection-provider.ts +48 -48
- package/src/browser/messaging/ws-connection-source.ts +230 -230
- package/src/browser/mime-service.ts +30 -30
- package/src/browser/navigatable-types.ts +81 -81
- package/src/browser/navigatable.ts +39 -39
- package/src/browser/opener-service.spec.ts +49 -49
- package/src/browser/opener-service.ts +146 -146
- package/src/browser/performance/frontend-stopwatch.ts +65 -65
- package/src/browser/performance/index.ts +18 -18
- package/src/browser/performance/measurement-frontend-bindings.ts +31 -31
- package/src/browser/preferences/index.ts +23 -23
- package/src/browser/preferences/injectable-preference-proxy.ts +283 -283
- package/src/browser/preferences/preference-configurations.ts +82 -82
- package/src/browser/preferences/preference-contribution.ts +436 -436
- package/src/browser/preferences/preference-language-override-service.ts +111 -111
- package/src/browser/preferences/preference-provider.spec.ts +36 -36
- package/src/browser/preferences/preference-provider.ts +277 -277
- package/src/browser/preferences/preference-proxy.spec.ts +367 -367
- package/src/browser/preferences/preference-proxy.ts +367 -367
- package/src/browser/preferences/preference-schema-provider.spec.ts +130 -130
- package/src/browser/preferences/preference-scope.ts +18 -18
- package/src/browser/preferences/preference-service.spec.ts +613 -613
- package/src/browser/preferences/preference-service.ts +594 -594
- package/src/browser/preferences/preference-validation-service.spec.ts +334 -334
- package/src/browser/preferences/preference-validation-service.ts +358 -358
- package/src/browser/preferences/test/index.ts +19 -19
- package/src/browser/preferences/test/mock-preference-provider.ts +50 -50
- package/src/browser/preferences/test/mock-preference-proxy.ts +48 -48
- package/src/browser/preferences/test/mock-preference-service.ts +63 -63
- package/src/browser/preload/i18n-preload-contribution.ts +50 -50
- package/src/browser/preload/os-preload-contribution.ts +37 -37
- package/src/browser/preload/preload-module.ts +45 -45
- package/src/browser/preload/preloader.ts +37 -37
- package/src/browser/preload/theme-preload-contribution.ts +31 -31
- package/src/browser/progress-bar-factory.ts +29 -29
- package/src/browser/progress-bar.ts +76 -76
- package/src/browser/progress-client.ts +53 -53
- package/src/browser/progress-location-service.spec.ts +50 -50
- package/src/browser/progress-location-service.ts +96 -96
- package/src/browser/progress-status-bar-item.ts +83 -83
- package/src/browser/quick-input/index.ts +23 -23
- package/src/browser/quick-input/quick-access.ts +75 -75
- package/src/browser/quick-input/quick-command-frontend-contribution.ts +89 -89
- package/src/browser/quick-input/quick-command-service.ts +246 -246
- package/src/browser/quick-input/quick-help-service.ts +87 -87
- package/src/browser/quick-input/quick-input-frontend-contribution.ts +33 -33
- package/src/browser/quick-input/quick-input-service.spec.ts +176 -176
- package/src/browser/quick-input/quick-input-service.ts +17 -17
- package/src/browser/quick-input/quick-pick-service-impl.ts +69 -69
- package/src/browser/quick-input/quick-view-service.ts +83 -83
- package/src/browser/request/browser-request-module.ts +23 -23
- package/src/browser/request/browser-request-service.ts +172 -172
- package/src/browser/resource-context-key.ts +77 -77
- package/src/browser/save-resource-service.ts +60 -59
- package/src/browser/saveable.ts +365 -365
- package/src/browser/secondary-window-handler.ts +212 -212
- package/src/browser/shell/additional-views-menu-widget.tsx +71 -71
- package/src/browser/shell/application-shell-mouse-tracker.ts +103 -103
- package/src/browser/shell/application-shell.ts +2254 -2249
- package/src/browser/shell/current-widget-command-adapter.ts +57 -57
- package/src/browser/shell/index.ts +23 -23
- package/src/browser/shell/shell-layout-restorer.ts +399 -399
- package/src/browser/shell/side-panel-handler.ts +793 -793
- package/src/browser/shell/side-panel-toolbar.ts +111 -111
- package/src/browser/shell/sidebar-bottom-menu-widget.tsx +39 -39
- package/src/browser/shell/sidebar-menu-widget.tsx +140 -140
- package/src/browser/shell/sidebar-top-menu-widget.tsx +26 -26
- package/src/browser/shell/split-panels.ts +190 -190
- package/src/browser/shell/tab-bar-decorator.ts +106 -76
- package/src/browser/shell/tab-bar-toolbar/index.ts +19 -19
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.ts +31 -31
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.ts +256 -256
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.ts +207 -207
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.spec.ts +62 -62
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx +423 -423
- package/src/browser/shell/tab-bars.spec.ts +63 -63
- package/src/browser/shell/tab-bars.ts +1481 -1449
- package/src/browser/shell/theia-dock-panel.ts +255 -255
- package/src/browser/shell/view-contribution.ts +177 -177
- package/src/browser/source-tree/index.ts +19 -19
- package/src/browser/source-tree/source-tree-widget.tsx +107 -107
- package/src/browser/source-tree/source-tree.ts +146 -146
- package/src/browser/source-tree/tree-source.ts +73 -73
- package/src/browser/status-bar/index.ts +29 -29
- package/src/browser/status-bar/status-bar-types.ts +97 -97
- package/src/browser/status-bar/status-bar-view-model.ts +209 -209
- package/src/browser/status-bar/status-bar.tsx +189 -189
- package/src/browser/storage-service.spec.ts +76 -76
- package/src/browser/storage-service.ts +129 -129
- package/src/browser/style/about.css +36 -36
- package/src/browser/style/alert-messages.css +62 -62
- package/src/browser/style/ansi.css +88 -88
- package/src/browser/style/breadcrumbs.css +130 -130
- package/src/browser/style/dialog.css +126 -126
- package/src/browser/style/dockpanel.css +76 -76
- package/src/browser/style/hover-service.css +101 -101
- package/src/browser/style/icons.css +61 -61
- package/src/browser/style/index.css +351 -346
- package/src/browser/style/materialcolors.css +278 -278
- package/src/browser/style/menus.css +230 -230
- package/src/browser/style/notification.css +39 -39
- package/src/browser/style/os.css +87 -87
- package/src/browser/style/progress-bar.css +43 -43
- package/src/browser/style/quick-title-bar.css +45 -45
- package/src/browser/style/scrollbars.css +172 -172
- package/src/browser/style/search-box.css +123 -123
- package/src/browser/style/select-component.css +107 -108
- package/src/browser/style/sidepanel.css +364 -364
- package/src/browser/style/status-bar.css +127 -127
- package/src/browser/style/tabs.css +647 -641
- package/src/browser/style/tooltip.css +28 -28
- package/src/browser/style/tree-decorators.css +81 -81
- package/src/browser/style/tree.css +232 -232
- package/src/browser/style/view-container.css +194 -194
- package/src/browser/style/widget.css +19 -19
- package/src/browser/styling-service.ts +87 -87
- package/src/browser/supported-encodings.ts +262 -262
- package/src/browser/test/jsdom.ts +69 -69
- package/src/browser/test/mock-connection-status-service.ts +33 -33
- package/src/browser/test/mock-env-variables-server.ts +47 -47
- package/src/browser/test/mock-opener-service.ts +34 -34
- package/src/browser/test/mock-storage-service.ts +49 -49
- package/src/browser/theming.ts +206 -206
- package/src/browser/tooltip-service.tsx +96 -96
- package/src/browser/tree/fuzzy-search.spec.ts +99 -99
- package/src/browser/tree/fuzzy-search.ts +136 -136
- package/src/browser/tree/index.ts +29 -28
- package/src/browser/tree/search-box-debounce.ts +96 -96
- package/src/browser/tree/search-box.ts +355 -355
- package/src/browser/tree/test/mock-selectable-tree-model.ts +109 -0
- package/src/browser/tree/test/mock-tree-model.ts +136 -136
- package/src/browser/tree/test/tree-test-container.ts +50 -50
- package/src/browser/tree/tree-compression/compressed-tree-expansion-service.ts +46 -46
- package/src/browser/tree/tree-compression/compressed-tree-model.ts +88 -88
- package/src/browser/tree/tree-compression/compressed-tree-widget.tsx +203 -203
- package/src/browser/tree/tree-compression/index.ts +20 -20
- package/src/browser/tree/tree-compression/tree-compression-service.ts +125 -125
- package/src/browser/tree/tree-compression/tree-compression.css +28 -28
- package/src/browser/tree/tree-consistency.spec.ts +105 -105
- package/src/browser/tree/tree-container.spec.ts +45 -45
- package/src/browser/tree/tree-container.ts +155 -155
- package/src/browser/tree/tree-decorator.spec.ts +162 -162
- package/src/browser/tree/tree-decorator.ts +238 -238
- package/src/browser/tree/tree-expansion.spec.ts +173 -173
- package/src/browser/tree/tree-expansion.ts +165 -165
- package/src/browser/tree/tree-focus-service.ts +55 -55
- package/src/browser/tree/tree-iterator.spec.ts +170 -170
- package/src/browser/tree/tree-iterator.ts +256 -256
- package/src/browser/tree/tree-label-provider.ts +40 -40
- package/src/browser/tree/tree-model.ts +562 -488
- package/src/browser/tree/tree-navigation.ts +58 -58
- package/src/browser/tree/tree-preference.ts +50 -0
- package/src/browser/tree/tree-search.ts +128 -128
- package/src/browser/tree/tree-selectable.spec.ts +152 -0
- package/src/browser/tree/tree-selection-impl.ts +176 -176
- package/src/browser/tree/tree-selection-state.spec.ts +462 -462
- package/src/browser/tree/tree-selection-state.ts +245 -245
- package/src/browser/tree/tree-selection.ts +159 -159
- package/src/browser/tree/tree-view-welcome-widget.tsx +263 -263
- package/src/browser/tree/tree-widget-selection.ts +45 -45
- package/src/browser/tree/tree-widget.tsx +1585 -1566
- package/src/browser/tree/tree.spec.ts +241 -241
- package/src/browser/tree/tree.ts +425 -424
- package/src/browser/user-working-directory-provider.ts +77 -77
- package/src/browser/view-container.ts +1640 -1640
- package/src/browser/widget-decoration.ts +358 -358
- package/src/browser/widget-manager.spec.ts +102 -102
- package/src/browser/widget-manager.ts +310 -285
- package/src/browser/widget-open-handler.ts +165 -165
- package/src/browser/widgets/alert-message.tsx +56 -56
- package/src/browser/widgets/enhanced-preview-widget.ts +27 -27
- package/src/browser/widgets/extractable-widget.ts +33 -33
- package/src/browser/widgets/index.ts +20 -20
- package/src/browser/widgets/previewable-widget.ts +31 -31
- package/src/browser/widgets/react-renderer.tsx +50 -50
- package/src/browser/widgets/react-widget.tsx +51 -51
- package/src/browser/widgets/select-component.tsx +367 -366
- package/src/browser/widgets/widget.ts +406 -398
- package/src/browser/window/browser-window-module.ts +32 -32
- package/src/browser/window/default-secondary-window-service.ts +187 -187
- package/src/browser/window/default-window-service.spec.ts +78 -78
- package/src/browser/window/default-window-service.ts +167 -167
- package/src/browser/window/secondary-window-service.ts +39 -39
- package/src/browser/window/test/mock-window-service.ts +28 -28
- package/src/browser/window/window-service.ts +68 -68
- package/src/browser/window/window-title-service.ts +107 -107
- package/src/browser/window/window-title-updater.ts +95 -95
- package/src/browser/window-contribution.ts +64 -64
- package/src/browser-only/frontend-only-application-module.ts +115 -0
- package/src/browser-only/i18n/i18n-frontend-only-module.ts +37 -0
- package/src/browser-only/logger-frontend-only-module.ts +63 -0
- package/src/browser-only/messaging/frontend-only-service-connection-provider.ts +39 -0
- package/src/browser-only/messaging/messaging-frontend-only-module.ts +42 -0
- package/src/browser-only/preload/frontend-only-preload-module.ts +49 -0
- package/src/common/accessibility.ts +33 -33
- package/src/common/application-error.spec.ts +27 -27
- package/src/common/application-error.ts +76 -76
- package/src/common/application-protocol.ts +41 -40
- package/src/common/array-utils.ts +129 -129
- package/src/common/buffer.ts +228 -228
- package/src/common/cancellation.ts +163 -163
- package/src/common/char-code.ts +438 -438
- package/src/common/collections.ts +125 -125
- package/src/common/color.ts +103 -103
- package/src/common/command.spec.ts +208 -208
- package/src/common/command.ts +485 -485
- package/src/common/contribution-filter/contribution-filter-registry.ts +79 -79
- package/src/common/contribution-filter/contribution-filter.ts +64 -64
- package/src/common/contribution-filter/filter.ts +23 -23
- package/src/common/contribution-filter/index.ts +19 -19
- package/src/common/contribution-provider.ts +96 -96
- package/src/common/disposable.spec.ts +94 -29
- package/src/common/disposable.ts +188 -135
- package/src/common/encoding-service.ts +380 -380
- package/src/common/encodings.ts +24 -24
- package/src/common/env-variables/env-variables-protocol.ts +38 -38
- package/src/common/env-variables/index.ts +17 -17
- package/src/common/event.spec.ts +32 -32
- package/src/common/event.ts +469 -469
- package/src/{node → common}/file-uri.ts +61 -61
- package/src/common/frontend-application-state.ts +38 -38
- package/src/common/glob.ts +741 -741
- package/src/common/hash.ts +85 -85
- package/src/common/i18n/localization-server.ts +25 -25
- package/src/common/i18n/localization.ts +80 -80
- package/src/common/i18n/nls.metadata.json +31314 -31314
- package/src/common/index.ts +51 -50
- package/src/common/json-schema.ts +106 -106
- package/src/common/key-store.ts +26 -26
- package/src/common/keybinding.ts +152 -152
- package/src/common/keyboard/keyboard-layout-provider.ts +51 -51
- package/src/common/keys.ts +694 -694
- package/src/common/label-protocol.ts +35 -35
- package/src/common/logger-protocol.ts +119 -119
- package/src/common/logger-watcher.ts +48 -48
- package/src/common/logger.spec.ts +46 -46
- package/src/common/logger.ts +389 -389
- package/src/common/lsp-types.ts +34 -34
- package/src/common/markdown-rendering/icon-utilities.ts +30 -30
- package/src/common/markdown-rendering/index.ts +18 -18
- package/src/common/markdown-rendering/markdown-string.ts +152 -149
- package/src/common/menu/action-menu-node.ts +65 -65
- package/src/common/menu/composite-menu-node.ts +114 -114
- package/src/common/menu/index.ts +21 -21
- package/src/common/menu/menu-adapter.ts +103 -103
- package/src/common/menu/menu-model-registry.ts +343 -326
- package/src/common/menu/menu-types.ts +219 -219
- package/src/common/menu/menu.spec.ts +101 -73
- package/src/common/message-rpc/channel.spec.ts +88 -88
- package/src/common/message-rpc/channel.ts +300 -300
- package/src/common/message-rpc/index.ts +22 -22
- package/src/common/message-rpc/message-buffer.ts +105 -105
- package/src/common/message-rpc/msg-pack-extension-manager.ts +70 -70
- package/src/common/message-rpc/rpc-message-encoder.spec.ts +65 -65
- package/src/common/message-rpc/rpc-message-encoder.ts +190 -190
- package/src/common/message-rpc/rpc-protocol.ts +255 -235
- package/src/common/message-rpc/uint8-array-message-buffer.spec.ts +41 -41
- package/src/common/message-rpc/uint8-array-message-buffer.ts +213 -213
- package/src/common/message-service-protocol.ts +148 -148
- package/src/common/message-service.ts +226 -226
- package/src/common/messaging/connection-error-handler.ts +73 -73
- package/src/common/messaging/connection-management.ts +43 -43
- package/src/common/messaging/handler.ts +26 -26
- package/src/common/messaging/index.ts +19 -19
- package/src/common/messaging/proxy-factory.spec.ts +108 -108
- package/src/common/messaging/proxy-factory.ts +336 -343
- package/src/common/messaging/socket-write-buffer.ts +52 -52
- package/src/common/messaging/web-socket-channel.ts +76 -76
- package/src/common/nls.ts +149 -149
- package/src/common/numbers.ts +21 -21
- package/src/common/objects.spec.ts +112 -112
- package/src/common/objects.ts +123 -123
- package/src/common/os.ts +82 -82
- package/src/common/path.spec.ts +415 -415
- package/src/common/path.ts +334 -334
- package/src/common/paths.ts +250 -250
- package/src/common/performance/index.ts +19 -19
- package/src/common/performance/measurement-protocol.ts +104 -104
- package/src/common/performance/measurement.ts +130 -130
- package/src/common/performance/stopwatch.ts +183 -183
- package/src/common/preferences/preference-schema.ts +95 -95
- package/src/common/preferences/preference-scope.spec.ts +48 -48
- package/src/common/preferences/preference-scope.ts +68 -68
- package/src/common/prioritizeable.ts +58 -58
- package/src/common/progress-service-protocol.ts +35 -35
- package/src/common/progress-service.ts +82 -82
- package/src/common/promise-util.spec.ts +72 -72
- package/src/common/promise-util.ts +143 -143
- package/src/common/quick-pick-service.ts +355 -377
- package/src/common/reference.spec.ts +145 -145
- package/src/common/reference.ts +230 -175
- package/src/common/resource.ts +430 -426
- package/src/common/selection-command-handler.ts +101 -101
- package/src/common/selection-service.spec.ts +43 -43
- package/src/common/selection-service.ts +49 -49
- package/src/common/selection.ts +50 -50
- package/src/common/severity.ts +111 -111
- package/src/common/stream.ts +718 -718
- package/src/common/strings.ts +231 -231
- package/src/common/telemetry.ts +45 -45
- package/src/common/ternary-search-tree.ts +417 -417
- package/src/common/test/expect.ts +34 -34
- package/src/common/test/mock-logger.ts +118 -118
- package/src/common/test/mock-menu.ts +35 -35
- package/src/common/test/mock-resource-provider.ts +33 -33
- package/src/common/theme.ts +68 -36
- package/src/common/types.spec.ts +86 -86
- package/src/common/types.ts +140 -140
- package/src/common/uri-command-handler.spec.ts +90 -90
- package/src/common/uri-command-handler.ts +148 -148
- package/src/common/uri.spec.ts +278 -278
- package/src/common/uri.ts +279 -277
- package/src/common/uuid.ts +45 -99
- package/src/common/version.ts +17 -17
- package/src/common/view-column.ts +33 -33
- package/src/common/window.ts +34 -34
- package/src/electron-browser/electron-clipboard-service.ts +32 -32
- package/src/electron-browser/keyboard/electron-keyboard-layout-change-notifier.ts +39 -39
- package/src/electron-browser/keyboard/electron-keyboard-module.ts +28 -28
- package/src/electron-browser/menu/electron-context-menu-renderer.ts +120 -120
- package/src/electron-browser/menu/electron-main-menu-factory.ts +335 -335
- package/src/electron-browser/menu/electron-menu-contribution.ts +506 -498
- package/src/electron-browser/menu/electron-menu-module.ts +40 -40
- package/src/electron-browser/menu/electron-menu-style.css +110 -110
- package/src/electron-browser/messaging/electron-frontend-id-provider.ts +25 -25
- package/src/electron-browser/messaging/electron-ipc-connection-source.ts +65 -65
- package/src/electron-browser/messaging/electron-local-ws-connection-source.ts +45 -45
- package/src/electron-browser/messaging/electron-messaging-frontend-module.ts +78 -78
- package/src/electron-browser/messaging/electron-ws-connection-source.ts +38 -38
- package/src/electron-browser/preload.ts +246 -246
- package/src/electron-browser/request/electron-browser-request-module.ts +26 -26
- package/src/electron-browser/token/electron-token-frontend-module.ts +22 -22
- package/src/electron-browser/window/electron-frontend-application-state.ts +26 -26
- package/src/electron-browser/window/electron-secondary-window-service.ts +39 -39
- package/src/electron-browser/window/electron-window-module.ts +41 -41
- package/src/electron-browser/window/electron-window-preferences.ts +76 -76
- package/src/electron-browser/window/electron-window-service.ts +97 -97
- package/src/electron-common/electron-api.ts +148 -148
- package/src/electron-common/electron-main-window-service.ts +24 -24
- package/src/electron-common/electron-token.ts +27 -27
- package/src/electron-main/electron-api-main.ts +333 -333
- package/src/electron-main/electron-main-application-module.ts +65 -65
- package/src/electron-main/electron-main-application.ts +685 -685
- package/src/electron-main/electron-main-constants.ts +22 -22
- package/src/electron-main/electron-main-window-service-impl.ts +44 -44
- package/src/electron-main/electron-security-token-service.ts +36 -36
- package/src/electron-main/event-utils.ts +36 -36
- package/src/electron-main/messaging/electron-connection-handler.ts +21 -21
- package/src/electron-main/messaging/electron-messaging-contribution.ts +143 -143
- package/src/electron-main/messaging/electron-messaging-service.ts +35 -35
- package/src/electron-main/theia-electron-window.ts +202 -202
- package/src/electron-node/hosting/electron-backend-hosting-module.ts +24 -24
- package/src/electron-node/hosting/electron-ws-origin-validator.ts +37 -37
- package/src/electron-node/keyboard/electron-backend-keyboard-module.ts +30 -30
- package/src/electron-node/keyboard/electron-keyboard-layout-provider.ts +35 -35
- package/src/electron-node/request/electron-backend-request-module.ts +23 -23
- package/src/electron-node/request/electron-backend-request-service.ts +78 -78
- package/src/electron-node/token/electron-token-backend-contribution.ts +48 -48
- package/src/electron-node/token/electron-token-backend-module.ts +28 -28
- package/src/electron-node/token/electron-token-validator.ts +93 -93
- package/src/node/application-server.ts +55 -48
- package/src/node/backend-application-config-provider.spec.ts +29 -29
- package/src/node/backend-application-config-provider.ts +48 -48
- package/src/node/backend-application-module.ts +140 -140
- package/src/node/backend-application.ts +382 -382
- package/src/node/backend-remote-service.ts +25 -25
- package/src/node/cli.spec.ts +94 -94
- package/src/node/cli.ts +63 -63
- package/src/node/console-logger-server.spec.ts +59 -59
- package/src/node/console-logger-server.ts +76 -76
- package/src/node/debug.ts +30 -30
- package/src/node/dynamic-require.ts +56 -56
- package/src/node/env-variables/env-variables-server.ts +120 -120
- package/src/node/env-variables/index.ts +17 -17
- package/src/node/environment-utils.spec.ts +92 -92
- package/src/node/environment-utils.ts +66 -66
- package/src/node/file-uri.spec.ts +76 -76
- package/src/node/filesystem-locking.ts +77 -77
- package/src/node/hosting/backend-application-hosts.ts +60 -60
- package/src/node/hosting/backend-hosting-module.ts +26 -26
- package/src/node/hosting/ws-origin-validator.ts +36 -36
- package/src/node/i18n/i18n-backend-module.ts +42 -42
- package/src/node/i18n/localization-contribution.ts +112 -112
- package/src/node/i18n/localization-provider.ts +125 -125
- package/src/node/i18n/localization-server.ts +52 -52
- package/src/node/i18n/theia-localization-contribution.ts +36 -36
- package/src/node/index.ts +22 -22
- package/src/node/key-store-server.ts +162 -162
- package/src/node/logger-backend-module.ts +88 -88
- package/src/node/logger-cli-contribution.spec.ts +245 -245
- package/src/node/logger-cli-contribution.ts +168 -168
- package/src/node/main.ts +33 -33
- package/src/node/messaging/binary-message-pipe.ts +168 -168
- package/src/node/messaging/connection-container-module.ts +96 -96
- package/src/node/messaging/default-messaging-service.ts +129 -129
- package/src/node/messaging/frontend-connection-service.ts +24 -24
- package/src/node/messaging/index.ts +19 -19
- package/src/node/messaging/ipc-bootstrap.ts +27 -27
- package/src/node/messaging/ipc-channel.ts +77 -77
- package/src/node/messaging/ipc-connection-provider.ts +107 -107
- package/src/node/messaging/ipc-protocol.ts +76 -76
- package/src/node/messaging/messaging-backend-module.ts +52 -52
- package/src/node/messaging/messaging-listeners.ts +52 -52
- package/src/node/messaging/messaging-service.ts +46 -46
- package/src/node/messaging/test/test-web-socket-channel.ts +61 -61
- package/src/node/messaging/websocket-endpoint.ts +79 -79
- package/src/node/messaging/websocket-frontend-connection-service.ts +176 -176
- package/src/node/os-backend-provider.ts +25 -25
- package/src/node/performance/index.ts +18 -18
- package/src/node/performance/measurement-backend-bindings.ts +35 -35
- package/src/node/performance/node-stopwatch.ts +40 -40
- package/src/node/process-utils.spec.ts +48 -48
- package/src/node/process-utils.ts +102 -102
- package/src/node/request/backend-request-facade.ts +39 -39
- package/src/node/request/backend-request-module.ts +25 -25
- package/src/node/request/proxy-cli-contribution.ts +65 -65
- package/src/node/ws-request-validators.ts +56 -56
- package/src/typings/native-keymap.d.ts +108 -108
- package/lib/node/file-uri.d.ts.map +0 -1
- package/lib/node/file-uri.js.map +0 -1
|
@@ -1,2526 +1,2526 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2017 TypeFox and others.
|
|
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
|
-
/* eslint-disable max-len, @typescript-eslint/indent */
|
|
18
|
-
|
|
19
|
-
import debounce = require('lodash.debounce');
|
|
20
|
-
import { injectable, inject, optional } from 'inversify';
|
|
21
|
-
import { MAIN_MENU_BAR, MANAGE_MENU, MenuContribution, MenuModelRegistry, ACCOUNTS_MENU } from '../common/menu';
|
|
22
|
-
import { KeybindingContribution, KeybindingRegistry } from './keybinding';
|
|
23
|
-
import { FrontendApplication } from './frontend-application';
|
|
24
|
-
import { FrontendApplicationContribution, OnWillStopAction } from './frontend-application-contribution';
|
|
25
|
-
import { CommandContribution, CommandRegistry, Command } from '../common/command';
|
|
26
|
-
import { UriAwareCommandHandler } from '../common/uri-command-handler';
|
|
27
|
-
import { SelectionService } from '../common/selection-service';
|
|
28
|
-
import { MessageService } from '../common/message-service';
|
|
29
|
-
import { OpenerService, open } from '../browser/opener-service';
|
|
30
|
-
import { ApplicationShell } from './shell/application-shell';
|
|
31
|
-
import { SHELL_TABBAR_CONTEXT_CLOSE, SHELL_TABBAR_CONTEXT_COPY, SHELL_TABBAR_CONTEXT_PIN, SHELL_TABBAR_CONTEXT_SPLIT } from './shell/tab-bars';
|
|
32
|
-
import { AboutDialog } from './about-dialog';
|
|
33
|
-
import * as browser from './browser';
|
|
34
|
-
import URI from '../common/uri';
|
|
35
|
-
import { ContextKey, ContextKeyService } from './context-key-service';
|
|
36
|
-
import { OS, isOSX, isWindows, EOL } from '../common/os';
|
|
37
|
-
import { ResourceContextKey } from './resource-context-key';
|
|
38
|
-
import { UriSelection } from '../common/selection';
|
|
39
|
-
import { StorageService } from './storage-service';
|
|
40
|
-
import { Navigatable, NavigatableWidget } from './navigatable';
|
|
41
|
-
import { QuickViewService } from './quick-input/quick-view-service';
|
|
42
|
-
import { environment } from '@theia/application-package/lib/environment';
|
|
43
|
-
import { IconTheme, IconThemeService } from './icon-theme-service';
|
|
44
|
-
import { ColorContribution } from './color-application-contribution';
|
|
45
|
-
import { ColorRegistry } from './color-registry';
|
|
46
|
-
import { Color } from '../common/color';
|
|
47
|
-
import { CoreConfiguration, CorePreferences } from './core-preferences';
|
|
48
|
-
import { ThemeService } from './theming';
|
|
49
|
-
import { PreferenceService, PreferenceChangeEvent, PreferenceScope } from './preferences';
|
|
50
|
-
import { ClipboardService } from './clipboard-service';
|
|
51
|
-
import { EncodingRegistry } from './encoding-registry';
|
|
52
|
-
import { UTF8 } from '../common/encodings';
|
|
53
|
-
import { EnvVariablesServer } from '../common/env-variables';
|
|
54
|
-
import { AuthenticationService } from './authentication-service';
|
|
55
|
-
import { FormatType, Saveable, SaveOptions } from './saveable';
|
|
56
|
-
import { QuickInputService, QuickPickItem, QuickPickItemOrSeparator, QuickPickSeparator } from './quick-input';
|
|
57
|
-
import { AsyncLocalizationProvider } from '../common/i18n/localization';
|
|
58
|
-
import { nls } from '../common/nls';
|
|
59
|
-
import { CurrentWidgetCommandAdapter } from './shell/current-widget-command-adapter';
|
|
60
|
-
import { ConfirmDialog, confirmExit, ConfirmSaveDialog, Dialog } from './dialogs';
|
|
61
|
-
import { WindowService } from './window/window-service';
|
|
62
|
-
import { FrontendApplicationConfigProvider } from './frontend-application-config-provider';
|
|
63
|
-
import { DecorationStyle } from './decoration-style';
|
|
64
|
-
import { isPinned, Title, togglePinned, Widget } from './widgets';
|
|
65
|
-
import { SaveResourceService } from './save-resource-service';
|
|
66
|
-
import { UserWorkingDirectoryProvider } from './user-working-directory-provider';
|
|
67
|
-
import { UNTITLED_SCHEME, UntitledResourceResolver } from '../common';
|
|
68
|
-
import { LanguageQuickPickService } from './i18n/language-quick-pick-service';
|
|
69
|
-
|
|
70
|
-
export namespace CommonMenus {
|
|
71
|
-
|
|
72
|
-
export const FILE = [...MAIN_MENU_BAR, '1_file'];
|
|
73
|
-
export const FILE_NEW_TEXT = [...FILE, '1_new_text'];
|
|
74
|
-
export const FILE_NEW = [...FILE, '1_new'];
|
|
75
|
-
export const FILE_OPEN = [...FILE, '2_open'];
|
|
76
|
-
export const FILE_SAVE = [...FILE, '3_save'];
|
|
77
|
-
export const FILE_AUTOSAVE = [...FILE, '4_autosave'];
|
|
78
|
-
export const FILE_SETTINGS = [...FILE, '5_settings'];
|
|
79
|
-
export const FILE_SETTINGS_SUBMENU = [...FILE_SETTINGS, '1_settings_submenu'];
|
|
80
|
-
export const FILE_SETTINGS_SUBMENU_OPEN = [...FILE_SETTINGS_SUBMENU, '1_settings_submenu_open'];
|
|
81
|
-
export const FILE_SETTINGS_SUBMENU_THEME = [...FILE_SETTINGS_SUBMENU, '2_settings_submenu_theme'];
|
|
82
|
-
export const FILE_CLOSE = [...FILE, '6_close'];
|
|
83
|
-
|
|
84
|
-
export const FILE_NEW_CONTRIBUTIONS = 'file/newFile';
|
|
85
|
-
|
|
86
|
-
export const EDIT = [...MAIN_MENU_BAR, '2_edit'];
|
|
87
|
-
export const EDIT_UNDO = [...EDIT, '1_undo'];
|
|
88
|
-
export const EDIT_CLIPBOARD = [...EDIT, '2_clipboard'];
|
|
89
|
-
export const EDIT_FIND = [...EDIT, '3_find'];
|
|
90
|
-
|
|
91
|
-
export const VIEW = [...MAIN_MENU_BAR, '4_view'];
|
|
92
|
-
export const VIEW_PRIMARY = [...VIEW, '0_primary'];
|
|
93
|
-
export const VIEW_APPEARANCE = [...VIEW, '1_appearance'];
|
|
94
|
-
export const VIEW_APPEARANCE_SUBMENU = [...VIEW_APPEARANCE, '1_appearance_submenu'];
|
|
95
|
-
export const VIEW_APPEARANCE_SUBMENU_SCREEN = [...VIEW_APPEARANCE_SUBMENU, '2_appearance_submenu_screen'];
|
|
96
|
-
export const VIEW_APPEARANCE_SUBMENU_BAR = [...VIEW_APPEARANCE_SUBMENU, '3_appearance_submenu_bar'];
|
|
97
|
-
export const VIEW_EDITOR_SUBMENU = [...VIEW_APPEARANCE, '2_editor_submenu'];
|
|
98
|
-
export const VIEW_EDITOR_SUBMENU_SPLIT = [...VIEW_EDITOR_SUBMENU, '1_editor_submenu_split'];
|
|
99
|
-
export const VIEW_EDITOR_SUBMENU_ORTHO = [...VIEW_EDITOR_SUBMENU, '2_editor_submenu_ortho'];
|
|
100
|
-
export const VIEW_VIEWS = [...VIEW, '2_views'];
|
|
101
|
-
export const VIEW_LAYOUT = [...VIEW, '3_layout'];
|
|
102
|
-
export const VIEW_TOGGLE = [...VIEW, '4_toggle'];
|
|
103
|
-
|
|
104
|
-
export const MANAGE_GENERAL = [...MANAGE_MENU, '1_manage_general'];
|
|
105
|
-
export const MANAGE_SETTINGS = [...MANAGE_MENU, '2_manage_settings'];
|
|
106
|
-
export const MANAGE_SETTINGS_THEMES = [...MANAGE_SETTINGS, '1_manage_settings_themes'];
|
|
107
|
-
|
|
108
|
-
// last menu item
|
|
109
|
-
export const HELP = [...MAIN_MENU_BAR, '9_help'];
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export namespace CommonCommands {
|
|
114
|
-
|
|
115
|
-
export const FILE_CATEGORY = 'File';
|
|
116
|
-
export const VIEW_CATEGORY = 'View';
|
|
117
|
-
export const CREATE_CATEGORY = 'Create';
|
|
118
|
-
export const PREFERENCES_CATEGORY = 'Preferences';
|
|
119
|
-
export const MANAGE_CATEGORY = 'Manage';
|
|
120
|
-
export const FILE_CATEGORY_KEY = nls.getDefaultKey(FILE_CATEGORY);
|
|
121
|
-
export const VIEW_CATEGORY_KEY = nls.getDefaultKey(VIEW_CATEGORY);
|
|
122
|
-
export const PREFERENCES_CATEGORY_KEY = nls.getDefaultKey(PREFERENCES_CATEGORY);
|
|
123
|
-
|
|
124
|
-
export const OPEN: Command = {
|
|
125
|
-
id: 'core.open',
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export const CUT = Command.toDefaultLocalizedCommand({
|
|
129
|
-
id: 'core.cut',
|
|
130
|
-
label: 'Cut'
|
|
131
|
-
});
|
|
132
|
-
export const COPY = Command.toDefaultLocalizedCommand({
|
|
133
|
-
id: 'core.copy',
|
|
134
|
-
label: 'Copy'
|
|
135
|
-
});
|
|
136
|
-
export const PASTE = Command.toDefaultLocalizedCommand({
|
|
137
|
-
id: 'core.paste',
|
|
138
|
-
label: 'Paste'
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
export const COPY_PATH = Command.toDefaultLocalizedCommand({
|
|
142
|
-
id: 'core.copy.path',
|
|
143
|
-
label: 'Copy Path'
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
export const UNDO = Command.toDefaultLocalizedCommand({
|
|
147
|
-
id: 'core.undo',
|
|
148
|
-
label: 'Undo'
|
|
149
|
-
});
|
|
150
|
-
export const REDO = Command.toDefaultLocalizedCommand({
|
|
151
|
-
id: 'core.redo',
|
|
152
|
-
label: 'Redo'
|
|
153
|
-
});
|
|
154
|
-
export const SELECT_ALL = Command.toDefaultLocalizedCommand({
|
|
155
|
-
id: 'core.selectAll',
|
|
156
|
-
label: 'Select All'
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
export const FIND = Command.toDefaultLocalizedCommand({
|
|
160
|
-
id: 'core.find',
|
|
161
|
-
label: 'Find'
|
|
162
|
-
});
|
|
163
|
-
export const REPLACE = Command.toDefaultLocalizedCommand({
|
|
164
|
-
id: 'core.replace',
|
|
165
|
-
label: 'Replace'
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
export const NEXT_TAB = Command.toDefaultLocalizedCommand({
|
|
169
|
-
id: 'core.nextTab',
|
|
170
|
-
category: VIEW_CATEGORY,
|
|
171
|
-
label: 'Show Next Tab'
|
|
172
|
-
});
|
|
173
|
-
export const PREVIOUS_TAB = Command.toDefaultLocalizedCommand({
|
|
174
|
-
id: 'core.previousTab',
|
|
175
|
-
category: VIEW_CATEGORY,
|
|
176
|
-
label: 'Show Previous Tab'
|
|
177
|
-
});
|
|
178
|
-
export const NEXT_TAB_IN_GROUP = Command.toLocalizedCommand({
|
|
179
|
-
id: 'core.nextTabInGroup',
|
|
180
|
-
category: VIEW_CATEGORY,
|
|
181
|
-
label: 'Switch to Next Tab in Group'
|
|
182
|
-
}, 'theia/core/common/showNextTabInGroup', VIEW_CATEGORY_KEY);
|
|
183
|
-
export const PREVIOUS_TAB_IN_GROUP = Command.toLocalizedCommand({
|
|
184
|
-
id: 'core.previousTabInGroup',
|
|
185
|
-
category: VIEW_CATEGORY,
|
|
186
|
-
label: 'Switch to Previous Tab in Group'
|
|
187
|
-
}, 'theia/core/common/showPreviousTabInGroup', VIEW_CATEGORY_KEY);
|
|
188
|
-
export const NEXT_TAB_GROUP = Command.toLocalizedCommand({
|
|
189
|
-
id: 'core.nextTabGroup',
|
|
190
|
-
category: VIEW_CATEGORY,
|
|
191
|
-
label: 'Switch to Next Tab Group'
|
|
192
|
-
}, 'theia/core/common/showNextTabGroup', VIEW_CATEGORY_KEY);
|
|
193
|
-
export const PREVIOUS_TAB_GROUP = Command.toLocalizedCommand({
|
|
194
|
-
id: 'core.previousTabBar',
|
|
195
|
-
category: VIEW_CATEGORY,
|
|
196
|
-
label: 'Switch to Previous Tab Group'
|
|
197
|
-
}, 'theia/core/common/showPreviousTabGroup', VIEW_CATEGORY_KEY);
|
|
198
|
-
export const CLOSE_TAB = Command.toLocalizedCommand({
|
|
199
|
-
id: 'core.close.tab',
|
|
200
|
-
category: VIEW_CATEGORY,
|
|
201
|
-
label: 'Close Tab'
|
|
202
|
-
}, 'theia/core/common/closeTab', VIEW_CATEGORY_KEY);
|
|
203
|
-
export const CLOSE_OTHER_TABS = Command.toLocalizedCommand({
|
|
204
|
-
id: 'core.close.other.tabs',
|
|
205
|
-
category: VIEW_CATEGORY,
|
|
206
|
-
label: 'Close Other Tabs'
|
|
207
|
-
}, 'theia/core/common/closeOthers', VIEW_CATEGORY_KEY);
|
|
208
|
-
export const CLOSE_SAVED_TABS = Command.toDefaultLocalizedCommand({
|
|
209
|
-
id: 'workbench.action.closeUnmodifiedEditors',
|
|
210
|
-
category: VIEW_CATEGORY,
|
|
211
|
-
label: 'Close Saved Editors in Group',
|
|
212
|
-
});
|
|
213
|
-
export const CLOSE_RIGHT_TABS = Command.toLocalizedCommand({
|
|
214
|
-
id: 'core.close.right.tabs',
|
|
215
|
-
category: VIEW_CATEGORY,
|
|
216
|
-
label: 'Close Tabs to the Right'
|
|
217
|
-
}, 'theia/core/common/closeRight', VIEW_CATEGORY_KEY);
|
|
218
|
-
export const CLOSE_ALL_TABS = Command.toLocalizedCommand({
|
|
219
|
-
id: 'core.close.all.tabs',
|
|
220
|
-
category: VIEW_CATEGORY,
|
|
221
|
-
label: 'Close All Tabs'
|
|
222
|
-
}, 'theia/core/common/closeAll', VIEW_CATEGORY_KEY);
|
|
223
|
-
export const CLOSE_MAIN_TAB = Command.toLocalizedCommand({
|
|
224
|
-
id: 'core.close.main.tab',
|
|
225
|
-
category: VIEW_CATEGORY,
|
|
226
|
-
label: 'Close Tab in Main Area'
|
|
227
|
-
}, 'theia/core/common/closeTabMain', VIEW_CATEGORY_KEY);
|
|
228
|
-
export const CLOSE_OTHER_MAIN_TABS = Command.toLocalizedCommand({
|
|
229
|
-
id: 'core.close.other.main.tabs',
|
|
230
|
-
category: VIEW_CATEGORY,
|
|
231
|
-
label: 'Close Other Tabs in Main Area'
|
|
232
|
-
}, 'theia/core/common/closeOtherTabMain', VIEW_CATEGORY_KEY);
|
|
233
|
-
export const CLOSE_ALL_MAIN_TABS = Command.toLocalizedCommand({
|
|
234
|
-
id: 'core.close.all.main.tabs',
|
|
235
|
-
category: VIEW_CATEGORY,
|
|
236
|
-
label: 'Close All Tabs in Main Area'
|
|
237
|
-
}, 'theia/core/common/closeAllTabMain', VIEW_CATEGORY_KEY);
|
|
238
|
-
export const COLLAPSE_PANEL = Command.toLocalizedCommand({
|
|
239
|
-
id: 'core.collapse.tab',
|
|
240
|
-
category: VIEW_CATEGORY,
|
|
241
|
-
label: 'Collapse Side Panel'
|
|
242
|
-
}, 'theia/core/common/collapseTab', VIEW_CATEGORY_KEY);
|
|
243
|
-
export const COLLAPSE_ALL_PANELS = Command.toLocalizedCommand({
|
|
244
|
-
id: 'core.collapse.all.tabs',
|
|
245
|
-
category: VIEW_CATEGORY,
|
|
246
|
-
label: 'Collapse All Side Panels'
|
|
247
|
-
}, 'theia/core/common/collapseAllTabs', VIEW_CATEGORY_KEY);
|
|
248
|
-
export const TOGGLE_BOTTOM_PANEL = Command.toLocalizedCommand({
|
|
249
|
-
id: 'core.toggle.bottom.panel',
|
|
250
|
-
category: VIEW_CATEGORY,
|
|
251
|
-
label: 'Toggle Bottom Panel'
|
|
252
|
-
}, 'theia/core/common/collapseBottomPanel', VIEW_CATEGORY_KEY);
|
|
253
|
-
export const TOGGLE_STATUS_BAR = Command.toDefaultLocalizedCommand({
|
|
254
|
-
id: 'workbench.action.toggleStatusbarVisibility',
|
|
255
|
-
category: VIEW_CATEGORY,
|
|
256
|
-
label: 'Toggle Status Bar Visibility'
|
|
257
|
-
});
|
|
258
|
-
export const PIN_TAB = Command.toDefaultLocalizedCommand({
|
|
259
|
-
id: 'workbench.action.pinEditor',
|
|
260
|
-
category: VIEW_CATEGORY,
|
|
261
|
-
label: 'Pin Editor'
|
|
262
|
-
});
|
|
263
|
-
export const UNPIN_TAB = Command.toDefaultLocalizedCommand({
|
|
264
|
-
id: 'workbench.action.unpinEditor',
|
|
265
|
-
category: VIEW_CATEGORY,
|
|
266
|
-
label: 'Unpin Editor'
|
|
267
|
-
});
|
|
268
|
-
export const TOGGLE_MAXIMIZED = Command.toLocalizedCommand({
|
|
269
|
-
id: 'core.toggleMaximized',
|
|
270
|
-
category: VIEW_CATEGORY,
|
|
271
|
-
label: 'Toggle Maximized'
|
|
272
|
-
}, 'theia/core/common/toggleMaximized', VIEW_CATEGORY_KEY);
|
|
273
|
-
export const OPEN_VIEW = Command.toDefaultLocalizedCommand({
|
|
274
|
-
id: 'core.openView',
|
|
275
|
-
category: VIEW_CATEGORY,
|
|
276
|
-
label: 'Open View...'
|
|
277
|
-
});
|
|
278
|
-
export const SHOW_MENU_BAR = Command.toDefaultLocalizedCommand({
|
|
279
|
-
id: 'window.menuBarVisibility',
|
|
280
|
-
category: VIEW_CATEGORY,
|
|
281
|
-
label: 'Toggle Menu Bar'
|
|
282
|
-
});
|
|
283
|
-
export const NEW_UNTITLED_TEXT_FILE = Command.toDefaultLocalizedCommand({
|
|
284
|
-
id: 'workbench.action.files.newUntitledTextFile',
|
|
285
|
-
category: FILE_CATEGORY,
|
|
286
|
-
label: 'New Untitled Text File'
|
|
287
|
-
});
|
|
288
|
-
export const NEW_UNTITLED_FILE = Command.toDefaultLocalizedCommand({
|
|
289
|
-
id: 'workbench.action.files.newUntitledFile',
|
|
290
|
-
category: CREATE_CATEGORY,
|
|
291
|
-
label: 'New File...'
|
|
292
|
-
});
|
|
293
|
-
export const SAVE = Command.toDefaultLocalizedCommand({
|
|
294
|
-
id: 'core.save',
|
|
295
|
-
category: FILE_CATEGORY,
|
|
296
|
-
label: 'Save',
|
|
297
|
-
});
|
|
298
|
-
export const SAVE_AS = Command.toDefaultLocalizedCommand({
|
|
299
|
-
id: 'file.saveAs',
|
|
300
|
-
category: FILE_CATEGORY,
|
|
301
|
-
label: 'Save As...',
|
|
302
|
-
});
|
|
303
|
-
export const SAVE_WITHOUT_FORMATTING = Command.toDefaultLocalizedCommand({
|
|
304
|
-
id: 'core.saveWithoutFormatting',
|
|
305
|
-
category: FILE_CATEGORY,
|
|
306
|
-
label: 'Save without Formatting',
|
|
307
|
-
});
|
|
308
|
-
export const SAVE_ALL = Command.toDefaultLocalizedCommand({
|
|
309
|
-
id: 'core.saveAll',
|
|
310
|
-
category: FILE_CATEGORY,
|
|
311
|
-
label: 'Save All',
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
export const AUTO_SAVE = Command.toDefaultLocalizedCommand({
|
|
315
|
-
id: 'textEditor.commands.autosave',
|
|
316
|
-
category: FILE_CATEGORY,
|
|
317
|
-
label: 'Auto Save',
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
export const ABOUT_COMMAND = Command.toDefaultLocalizedCommand({
|
|
321
|
-
id: 'core.about',
|
|
322
|
-
label: 'About'
|
|
323
|
-
});
|
|
324
|
-
|
|
325
|
-
export const OPEN_PREFERENCES = Command.toDefaultLocalizedCommand({
|
|
326
|
-
id: 'preferences:open',
|
|
327
|
-
category: PREFERENCES_CATEGORY,
|
|
328
|
-
label: 'Open Settings (UI)',
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
export const SELECT_COLOR_THEME = Command.toDefaultLocalizedCommand({
|
|
332
|
-
id: 'workbench.action.selectTheme',
|
|
333
|
-
label: 'Color Theme',
|
|
334
|
-
category: PREFERENCES_CATEGORY
|
|
335
|
-
});
|
|
336
|
-
export const SELECT_ICON_THEME = Command.toDefaultLocalizedCommand({
|
|
337
|
-
id: 'workbench.action.selectIconTheme',
|
|
338
|
-
label: 'File Icon Theme',
|
|
339
|
-
category: PREFERENCES_CATEGORY
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
export const CONFIGURE_DISPLAY_LANGUAGE = Command.toDefaultLocalizedCommand({
|
|
343
|
-
id: 'workbench.action.configureLanguage',
|
|
344
|
-
label: 'Configure Display Language'
|
|
345
|
-
});
|
|
346
|
-
|
|
347
|
-
export const TOGGLE_BREADCRUMBS = Command.toDefaultLocalizedCommand({
|
|
348
|
-
id: 'breadcrumbs.toggle',
|
|
349
|
-
label: 'Toggle Breadcrumbs',
|
|
350
|
-
category: VIEW_CATEGORY
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export const supportCut =
|
|
355
|
-
export const supportCopy =
|
|
356
|
-
// Chrome incorrectly returns true for document.queryCommandSupported('paste')
|
|
357
|
-
// when the paste feature is available but the calling script has insufficient
|
|
358
|
-
// privileges to actually perform the action
|
|
359
|
-
export const supportPaste =
|
|
360
|
-
|
|
361
|
-
export const RECENT_COMMANDS_STORAGE_KEY = 'commands';
|
|
362
|
-
|
|
363
|
-
export const CLASSNAME_OS_MAC = 'mac';
|
|
364
|
-
export const CLASSNAME_OS_WINDOWS = 'windows';
|
|
365
|
-
export const CLASSNAME_OS_LINUX = 'linux';
|
|
366
|
-
|
|
367
|
-
@injectable()
|
|
368
|
-
export class CommonFrontendContribution implements FrontendApplicationContribution, MenuContribution, CommandContribution, KeybindingContribution, ColorContribution {
|
|
369
|
-
|
|
370
|
-
protected commonDecorationsStyleSheet: CSSStyleSheet = DecorationStyle.createStyleSheet('coreCommonDecorationsStyle');
|
|
371
|
-
|
|
372
|
-
constructor(
|
|
373
|
-
@inject(ApplicationShell) protected readonly shell: ApplicationShell,
|
|
374
|
-
@inject(SelectionService) protected readonly selectionService: SelectionService,
|
|
375
|
-
@inject(MessageService) protected readonly messageService: MessageService,
|
|
376
|
-
@inject(OpenerService) protected readonly openerService: OpenerService,
|
|
377
|
-
@inject(AboutDialog) protected readonly aboutDialog: AboutDialog,
|
|
378
|
-
@inject(AsyncLocalizationProvider) protected readonly localizationProvider: AsyncLocalizationProvider,
|
|
379
|
-
@inject(SaveResourceService) protected readonly saveResourceService: SaveResourceService,
|
|
380
|
-
) { }
|
|
381
|
-
|
|
382
|
-
@inject(ContextKeyService)
|
|
383
|
-
protected readonly contextKeyService: ContextKeyService;
|
|
384
|
-
|
|
385
|
-
@inject(ResourceContextKey)
|
|
386
|
-
protected readonly resourceContextKey: ResourceContextKey;
|
|
387
|
-
|
|
388
|
-
@inject(CommandRegistry)
|
|
389
|
-
protected readonly commandRegistry: CommandRegistry;
|
|
390
|
-
|
|
391
|
-
@inject(MenuModelRegistry)
|
|
392
|
-
protected readonly menuRegistry: MenuModelRegistry;
|
|
393
|
-
|
|
394
|
-
@inject(StorageService)
|
|
395
|
-
protected readonly storageService: StorageService;
|
|
396
|
-
|
|
397
|
-
@inject(QuickInputService) @optional()
|
|
398
|
-
protected readonly quickInputService: QuickInputService;
|
|
399
|
-
|
|
400
|
-
@inject(IconThemeService)
|
|
401
|
-
protected readonly iconThemes: IconThemeService;
|
|
402
|
-
|
|
403
|
-
@inject(ThemeService)
|
|
404
|
-
protected readonly themeService: ThemeService;
|
|
405
|
-
|
|
406
|
-
@inject(CorePreferences)
|
|
407
|
-
protected readonly preferences: CorePreferences;
|
|
408
|
-
|
|
409
|
-
@inject(PreferenceService)
|
|
410
|
-
protected readonly preferenceService: PreferenceService;
|
|
411
|
-
|
|
412
|
-
@inject(ClipboardService)
|
|
413
|
-
protected readonly clipboardService: ClipboardService;
|
|
414
|
-
|
|
415
|
-
@inject(EncodingRegistry)
|
|
416
|
-
protected readonly encodingRegistry: EncodingRegistry;
|
|
417
|
-
|
|
418
|
-
@inject(EnvVariablesServer)
|
|
419
|
-
protected readonly environments: EnvVariablesServer;
|
|
420
|
-
|
|
421
|
-
@inject(AuthenticationService)
|
|
422
|
-
protected readonly authenticationService: AuthenticationService;
|
|
423
|
-
|
|
424
|
-
@inject(WindowService)
|
|
425
|
-
protected readonly windowService: WindowService;
|
|
426
|
-
|
|
427
|
-
@inject(UserWorkingDirectoryProvider)
|
|
428
|
-
protected readonly workingDirProvider: UserWorkingDirectoryProvider;
|
|
429
|
-
|
|
430
|
-
@inject(LanguageQuickPickService)
|
|
431
|
-
protected readonly languageQuickPickService: LanguageQuickPickService;
|
|
432
|
-
|
|
433
|
-
@inject(UntitledResourceResolver)
|
|
434
|
-
protected readonly untitledResourceResolver: UntitledResourceResolver;
|
|
435
|
-
|
|
436
|
-
protected pinnedKey: ContextKey<boolean>;
|
|
437
|
-
|
|
438
|
-
async configure(app: FrontendApplication): Promise<void> {
|
|
439
|
-
// FIXME: This request blocks valuable startup time (~200ms).
|
|
440
|
-
const configDirUri = await this.environments.getConfigDirUri();
|
|
441
|
-
// Global settings
|
|
442
|
-
this.encodingRegistry.registerOverride({
|
|
443
|
-
encoding: UTF8,
|
|
444
|
-
parent: new URI(configDirUri)
|
|
445
|
-
});
|
|
446
|
-
|
|
447
|
-
this.contextKeyService.createKey<boolean>('isLinux', OS.type() === OS.Type.Linux);
|
|
448
|
-
this.contextKeyService.createKey<boolean>('isMac', OS.type() === OS.Type.OSX);
|
|
449
|
-
this.contextKeyService.createKey<boolean>('isWindows', OS.type() === OS.Type.Windows);
|
|
450
|
-
this.contextKeyService.createKey<boolean>('isWeb', !this.isElectron());
|
|
451
|
-
|
|
452
|
-
this.pinnedKey = this.contextKeyService.createKey<boolean>('activeEditorIsPinned', false);
|
|
453
|
-
this.updatePinnedKey();
|
|
454
|
-
this.shell.onDidChangeActiveWidget(() => this.updatePinnedKey());
|
|
455
|
-
|
|
456
|
-
this.initResourceContextKeys();
|
|
457
|
-
this.registerCtrlWHandling();
|
|
458
|
-
|
|
459
|
-
this.setOsClass();
|
|
460
|
-
this.updateStyles();
|
|
461
|
-
this.preferences.ready.then(() => this.setSashProperties());
|
|
462
|
-
this.preferences.onPreferenceChanged(e => this.handlePreferenceChange(e, app));
|
|
463
|
-
|
|
464
|
-
app.shell.leftPanelHandler.addBottomMenu({
|
|
465
|
-
id: 'settings-menu',
|
|
466
|
-
iconClass: 'codicon codicon-settings-gear',
|
|
467
|
-
title: nls.localizeByDefault(CommonCommands.MANAGE_CATEGORY),
|
|
468
|
-
menuPath: MANAGE_MENU,
|
|
469
|
-
order: 1,
|
|
470
|
-
});
|
|
471
|
-
const accountsMenu = {
|
|
472
|
-
id: 'accounts-menu',
|
|
473
|
-
iconClass: 'codicon codicon-person',
|
|
474
|
-
title: nls.localizeByDefault('Accounts'),
|
|
475
|
-
menuPath: ACCOUNTS_MENU,
|
|
476
|
-
order: 0,
|
|
477
|
-
};
|
|
478
|
-
this.authenticationService.onDidRegisterAuthenticationProvider(() => {
|
|
479
|
-
app.shell.leftPanelHandler.addBottomMenu(accountsMenu);
|
|
480
|
-
});
|
|
481
|
-
this.authenticationService.onDidUnregisterAuthenticationProvider(() => {
|
|
482
|
-
if (this.authenticationService.getProviderIds().length === 0) {
|
|
483
|
-
app.shell.leftPanelHandler.removeBottomMenu(accountsMenu.id);
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
protected setOsClass(): void {
|
|
489
|
-
if (isOSX) {
|
|
490
|
-
document.body.classList.add(CLASSNAME_OS_MAC);
|
|
491
|
-
} else if (isWindows) {
|
|
492
|
-
document.body.classList.add(CLASSNAME_OS_WINDOWS);
|
|
493
|
-
} else {
|
|
494
|
-
document.body.classList.add(CLASSNAME_OS_LINUX);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
protected updateStyles(): void {
|
|
499
|
-
document.body.classList.remove('theia-editor-highlightModifiedTabs');
|
|
500
|
-
if (this.preferences['workbench.editor.highlightModifiedTabs']) {
|
|
501
|
-
document.body.classList.add('theia-editor-highlightModifiedTabs');
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
protected updatePinnedKey(): void {
|
|
506
|
-
const activeTab = this.shell.findTabBar();
|
|
507
|
-
const pinningTarget = activeTab && this.shell.findTitle(activeTab);
|
|
508
|
-
const value = pinningTarget && isPinned(pinningTarget);
|
|
509
|
-
this.pinnedKey.set(value);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
protected handlePreferenceChange(e: PreferenceChangeEvent<CoreConfiguration>, app: FrontendApplication): void {
|
|
513
|
-
switch (e.preferenceName) {
|
|
514
|
-
case 'workbench.editor.highlightModifiedTabs': {
|
|
515
|
-
this.updateStyles();
|
|
516
|
-
break;
|
|
517
|
-
}
|
|
518
|
-
case 'window.menuBarVisibility': {
|
|
519
|
-
const { newValue } = e;
|
|
520
|
-
const mainMenuId = 'main-menu';
|
|
521
|
-
if (newValue === 'compact') {
|
|
522
|
-
this.shell.leftPanelHandler.addTopMenu({
|
|
523
|
-
id: mainMenuId,
|
|
524
|
-
iconClass: 'codicon codicon-menu',
|
|
525
|
-
title: nls.localizeByDefault('Application Menu'),
|
|
526
|
-
menuPath: MAIN_MENU_BAR,
|
|
527
|
-
order: 0,
|
|
528
|
-
});
|
|
529
|
-
} else {
|
|
530
|
-
app.shell.leftPanelHandler.removeTopMenu(mainMenuId);
|
|
531
|
-
}
|
|
532
|
-
break;
|
|
533
|
-
}
|
|
534
|
-
case 'workbench.sash.hoverDelay':
|
|
535
|
-
case 'workbench.sash.size': {
|
|
536
|
-
this.setSashProperties();
|
|
537
|
-
break;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
protected setSashProperties(): void {
|
|
543
|
-
const sashRule = `:root {
|
|
544
|
-
--theia-sash-hoverDelay: ${this.preferences['workbench.sash.hoverDelay']}ms;
|
|
545
|
-
--theia-sash-width: ${this.preferences['workbench.sash.size']}px;
|
|
546
|
-
}`;
|
|
547
|
-
|
|
548
|
-
DecorationStyle.deleteStyleRule(':root', this.commonDecorationsStyleSheet);
|
|
549
|
-
this.commonDecorationsStyleSheet.insertRule(sashRule);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
onStart(): void {
|
|
553
|
-
this.storageService.getData<{ recent: Command[] }>(RECENT_COMMANDS_STORAGE_KEY, { recent: [] })
|
|
554
|
-
.then(tasks => this.commandRegistry.recent = tasks.recent);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
onStop(): void {
|
|
558
|
-
const recent = this.commandRegistry.recent;
|
|
559
|
-
this.storageService.setData<{ recent: Command[] }>(RECENT_COMMANDS_STORAGE_KEY, { recent });
|
|
560
|
-
window.localStorage.setItem(IconThemeService.STORAGE_KEY, this.iconThemes.current);
|
|
561
|
-
window.localStorage.setItem(ThemeService.STORAGE_KEY, this.themeService.getCurrentTheme().id);
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
protected initResourceContextKeys(): void {
|
|
565
|
-
const updateContextKeys = () => {
|
|
566
|
-
const selection = this.selectionService.selection;
|
|
567
|
-
const resourceUri = Navigatable.is(selection) && selection.getResourceUri() || UriSelection.getUri(selection);
|
|
568
|
-
this.resourceContextKey.set(resourceUri);
|
|
569
|
-
};
|
|
570
|
-
updateContextKeys();
|
|
571
|
-
this.selectionService.onSelectionChanged(updateContextKeys);
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
registerMenus(registry: MenuModelRegistry): void {
|
|
575
|
-
registry.registerSubmenu(CommonMenus.FILE, nls.localizeByDefault('File'));
|
|
576
|
-
registry.registerSubmenu(CommonMenus.EDIT, nls.localizeByDefault('Edit'));
|
|
577
|
-
registry.registerSubmenu(CommonMenus.VIEW, nls.localizeByDefault('View'));
|
|
578
|
-
registry.registerSubmenu(CommonMenus.HELP, nls.localizeByDefault('Help'));
|
|
579
|
-
|
|
580
|
-
// For plugins contributing create new file commands/menu-actions
|
|
581
|
-
registry.registerIndependentSubmenu(CommonMenus.FILE_NEW_CONTRIBUTIONS, nls.localizeByDefault('New File...'));
|
|
582
|
-
|
|
583
|
-
registry.registerMenuAction(CommonMenus.FILE_SAVE, {
|
|
584
|
-
commandId: CommonCommands.SAVE.id
|
|
585
|
-
});
|
|
586
|
-
registry.registerMenuAction(CommonMenus.FILE_SAVE, {
|
|
587
|
-
commandId: CommonCommands.SAVE_ALL.id
|
|
588
|
-
});
|
|
589
|
-
|
|
590
|
-
registry.registerMenuAction(CommonMenus.FILE_AUTOSAVE, {
|
|
591
|
-
commandId: CommonCommands.AUTO_SAVE.id
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
registry.registerSubmenu(CommonMenus.FILE_SETTINGS_SUBMENU, nls.localizeByDefault(CommonCommands.PREFERENCES_CATEGORY));
|
|
595
|
-
|
|
596
|
-
registry.registerMenuAction(CommonMenus.EDIT_UNDO, {
|
|
597
|
-
commandId: CommonCommands.UNDO.id,
|
|
598
|
-
order: '0'
|
|
599
|
-
});
|
|
600
|
-
registry.registerMenuAction(CommonMenus.EDIT_UNDO, {
|
|
601
|
-
commandId: CommonCommands.REDO.id,
|
|
602
|
-
order: '1'
|
|
603
|
-
});
|
|
604
|
-
|
|
605
|
-
registry.registerMenuAction(CommonMenus.EDIT_FIND, {
|
|
606
|
-
commandId: CommonCommands.FIND.id,
|
|
607
|
-
order: '0'
|
|
608
|
-
});
|
|
609
|
-
registry.registerMenuAction(CommonMenus.EDIT_FIND, {
|
|
610
|
-
commandId: CommonCommands.REPLACE.id,
|
|
611
|
-
order: '1'
|
|
612
|
-
});
|
|
613
|
-
|
|
614
|
-
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
615
|
-
commandId: CommonCommands.CUT.id,
|
|
616
|
-
order: '0'
|
|
617
|
-
});
|
|
618
|
-
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
619
|
-
commandId: CommonCommands.COPY.id,
|
|
620
|
-
order: '1'
|
|
621
|
-
});
|
|
622
|
-
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
623
|
-
commandId: CommonCommands.PASTE.id,
|
|
624
|
-
order: '2'
|
|
625
|
-
});
|
|
626
|
-
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
627
|
-
commandId: CommonCommands.COPY_PATH.id,
|
|
628
|
-
order: '3'
|
|
629
|
-
});
|
|
630
|
-
|
|
631
|
-
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
632
|
-
commandId: CommonCommands.TOGGLE_BOTTOM_PANEL.id,
|
|
633
|
-
order: '1'
|
|
634
|
-
});
|
|
635
|
-
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
636
|
-
commandId: CommonCommands.TOGGLE_STATUS_BAR.id,
|
|
637
|
-
order: '2',
|
|
638
|
-
label: nls.localizeByDefault('Toggle Status Bar Visibility')
|
|
639
|
-
});
|
|
640
|
-
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
641
|
-
commandId: CommonCommands.COLLAPSE_ALL_PANELS.id,
|
|
642
|
-
order: '3'
|
|
643
|
-
});
|
|
644
|
-
|
|
645
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
646
|
-
commandId: CommonCommands.CLOSE_TAB.id,
|
|
647
|
-
label: nls.localizeByDefault('Close'),
|
|
648
|
-
order: '0'
|
|
649
|
-
});
|
|
650
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
651
|
-
commandId: CommonCommands.CLOSE_OTHER_TABS.id,
|
|
652
|
-
label: nls.localizeByDefault('Close Others'),
|
|
653
|
-
order: '1'
|
|
654
|
-
});
|
|
655
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
656
|
-
commandId: CommonCommands.CLOSE_RIGHT_TABS.id,
|
|
657
|
-
label: nls.localizeByDefault('Close to the Right'),
|
|
658
|
-
order: '2'
|
|
659
|
-
});
|
|
660
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
661
|
-
commandId: CommonCommands.CLOSE_SAVED_TABS.id,
|
|
662
|
-
label: nls.localizeByDefault('Close Saved'),
|
|
663
|
-
order: '3',
|
|
664
|
-
});
|
|
665
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
666
|
-
commandId: CommonCommands.CLOSE_ALL_TABS.id,
|
|
667
|
-
label: nls.localizeByDefault('Close All'),
|
|
668
|
-
order: '4'
|
|
669
|
-
});
|
|
670
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_SPLIT, {
|
|
671
|
-
commandId: CommonCommands.COLLAPSE_PANEL.id,
|
|
672
|
-
label: CommonCommands.COLLAPSE_PANEL.label,
|
|
673
|
-
order: '5'
|
|
674
|
-
});
|
|
675
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_SPLIT, {
|
|
676
|
-
commandId: CommonCommands.TOGGLE_MAXIMIZED.id,
|
|
677
|
-
label: CommonCommands.TOGGLE_MAXIMIZED.label,
|
|
678
|
-
order: '6'
|
|
679
|
-
});
|
|
680
|
-
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_SCREEN, {
|
|
681
|
-
commandId: CommonCommands.TOGGLE_MAXIMIZED.id,
|
|
682
|
-
label: CommonCommands.TOGGLE_MAXIMIZED.label,
|
|
683
|
-
order: '6'
|
|
684
|
-
});
|
|
685
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_COPY, {
|
|
686
|
-
commandId: CommonCommands.COPY_PATH.id,
|
|
687
|
-
label: CommonCommands.COPY_PATH.label,
|
|
688
|
-
order: '1',
|
|
689
|
-
});
|
|
690
|
-
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
691
|
-
commandId: CommonCommands.SHOW_MENU_BAR.id,
|
|
692
|
-
label: nls.localizeByDefault('Toggle Menu Bar'),
|
|
693
|
-
order: '0'
|
|
694
|
-
});
|
|
695
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_PIN, {
|
|
696
|
-
commandId: CommonCommands.PIN_TAB.id,
|
|
697
|
-
label: nls.localizeByDefault('Pin'),
|
|
698
|
-
order: '7'
|
|
699
|
-
});
|
|
700
|
-
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_PIN, {
|
|
701
|
-
commandId: CommonCommands.UNPIN_TAB.id,
|
|
702
|
-
label: nls.localizeByDefault('Unpin'),
|
|
703
|
-
order: '8'
|
|
704
|
-
});
|
|
705
|
-
registry.registerMenuAction(CommonMenus.HELP, {
|
|
706
|
-
commandId: CommonCommands.ABOUT_COMMAND.id,
|
|
707
|
-
label: CommonCommands.ABOUT_COMMAND.label,
|
|
708
|
-
order: '9'
|
|
709
|
-
});
|
|
710
|
-
|
|
711
|
-
registry.registerMenuAction(CommonMenus.VIEW_PRIMARY, {
|
|
712
|
-
commandId: CommonCommands.OPEN_VIEW.id
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
registry.registerMenuAction(CommonMenus.FILE_SETTINGS_SUBMENU_THEME, {
|
|
716
|
-
commandId: CommonCommands.SELECT_COLOR_THEME.id
|
|
717
|
-
});
|
|
718
|
-
registry.registerMenuAction(CommonMenus.FILE_SETTINGS_SUBMENU_THEME, {
|
|
719
|
-
commandId: CommonCommands.SELECT_ICON_THEME.id
|
|
720
|
-
});
|
|
721
|
-
|
|
722
|
-
registry.registerSubmenu(CommonMenus.MANAGE_SETTINGS_THEMES, nls.localizeByDefault('Themes'), { order: 'a50' });
|
|
723
|
-
registry.registerMenuAction(CommonMenus.MANAGE_SETTINGS_THEMES, {
|
|
724
|
-
commandId: CommonCommands.SELECT_COLOR_THEME.id,
|
|
725
|
-
order: '0'
|
|
726
|
-
});
|
|
727
|
-
registry.registerMenuAction(CommonMenus.MANAGE_SETTINGS_THEMES, {
|
|
728
|
-
commandId: CommonCommands.SELECT_ICON_THEME.id,
|
|
729
|
-
order: '1'
|
|
730
|
-
});
|
|
731
|
-
|
|
732
|
-
registry.registerSubmenu(CommonMenus.VIEW_APPEARANCE_SUBMENU, nls.localizeByDefault('Appearance'));
|
|
733
|
-
|
|
734
|
-
registry.registerMenuAction(CommonMenus.FILE_NEW_TEXT, {
|
|
735
|
-
commandId: CommonCommands.NEW_UNTITLED_TEXT_FILE.id,
|
|
736
|
-
label: nls.localizeByDefault('New Text File'),
|
|
737
|
-
order: 'a'
|
|
738
|
-
});
|
|
739
|
-
|
|
740
|
-
registry.registerMenuAction(CommonMenus.FILE_NEW_TEXT, {
|
|
741
|
-
commandId: CommonCommands.NEW_UNTITLED_FILE.id,
|
|
742
|
-
label: nls.localizeByDefault('New File...'),
|
|
743
|
-
order: 'a1'
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
registerCommands(commandRegistry: CommandRegistry): void {
|
|
748
|
-
commandRegistry.registerCommand(CommonCommands.OPEN, UriAwareCommandHandler.MultiSelect(this.selectionService, {
|
|
749
|
-
execute: uris => uris.map(uri => open(this.openerService, uri)),
|
|
750
|
-
}));
|
|
751
|
-
commandRegistry.registerCommand(CommonCommands.CUT, {
|
|
752
|
-
execute: () => {
|
|
753
|
-
if (supportCut) {
|
|
754
|
-
document.execCommand('cut');
|
|
755
|
-
} else {
|
|
756
|
-
this.messageService.warn(nls.localize('theia/core/cutWarn', "Please use the browser's cut command or shortcut."));
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
});
|
|
760
|
-
commandRegistry.registerCommand(CommonCommands.COPY, {
|
|
761
|
-
execute: () => {
|
|
762
|
-
if (supportCopy) {
|
|
763
|
-
document.execCommand('copy');
|
|
764
|
-
} else {
|
|
765
|
-
this.messageService.warn(nls.localize('theia/core/copyWarn', "Please use the browser's copy command or shortcut."));
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
commandRegistry.registerCommand(CommonCommands.PASTE, {
|
|
770
|
-
execute: () => {
|
|
771
|
-
if (supportPaste) {
|
|
772
|
-
document.execCommand('paste');
|
|
773
|
-
} else {
|
|
774
|
-
this.messageService.warn(nls.localize('theia/core/pasteWarn', "Please use the browser's paste command or shortcut."));
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
commandRegistry.registerCommand(CommonCommands.COPY_PATH, UriAwareCommandHandler.MultiSelect(this.selectionService, {
|
|
779
|
-
isVisible: uris => Array.isArray(uris) && uris.some(uri => uri instanceof URI),
|
|
780
|
-
isEnabled: uris => Array.isArray(uris) && uris.some(uri => uri instanceof URI),
|
|
781
|
-
execute: async uris => {
|
|
782
|
-
if (uris.length) {
|
|
783
|
-
const lineDelimiter = EOL;
|
|
784
|
-
const text = uris.map(resource => resource.path.fsPath()).join(lineDelimiter);
|
|
785
|
-
await this.clipboardService.writeText(text);
|
|
786
|
-
} else {
|
|
787
|
-
await this.messageService.info(nls.localize('theia/core/copyInfo', 'Open a file first to copy its path'));
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}));
|
|
791
|
-
|
|
792
|
-
commandRegistry.registerCommand(CommonCommands.UNDO, {
|
|
793
|
-
execute: () => document.execCommand('undo')
|
|
794
|
-
});
|
|
795
|
-
commandRegistry.registerCommand(CommonCommands.REDO, {
|
|
796
|
-
execute: () => document.execCommand('redo')
|
|
797
|
-
});
|
|
798
|
-
commandRegistry.registerCommand(CommonCommands.SELECT_ALL, {
|
|
799
|
-
execute: () => document.execCommand('selectAll')
|
|
800
|
-
});
|
|
801
|
-
|
|
802
|
-
commandRegistry.registerCommand(CommonCommands.FIND, {
|
|
803
|
-
execute: () => { /* no-op */ }
|
|
804
|
-
});
|
|
805
|
-
commandRegistry.registerCommand(CommonCommands.REPLACE, {
|
|
806
|
-
execute: () => { /* no-op */ }
|
|
807
|
-
});
|
|
808
|
-
|
|
809
|
-
commandRegistry.registerCommand(CommonCommands.NEXT_TAB, {
|
|
810
|
-
isEnabled: () => this.shell.currentTabBar !== undefined,
|
|
811
|
-
execute: () => this.shell.activateNextTab()
|
|
812
|
-
});
|
|
813
|
-
commandRegistry.registerCommand(CommonCommands.PREVIOUS_TAB, {
|
|
814
|
-
isEnabled: () => this.shell.currentTabBar !== undefined,
|
|
815
|
-
execute: () => this.shell.activatePreviousTab()
|
|
816
|
-
});
|
|
817
|
-
commandRegistry.registerCommand(CommonCommands.NEXT_TAB_IN_GROUP, {
|
|
818
|
-
isEnabled: () => this.shell.nextTabIndexInTabBar() !== -1,
|
|
819
|
-
execute: () => this.shell.activateNextTabInTabBar()
|
|
820
|
-
});
|
|
821
|
-
commandRegistry.registerCommand(CommonCommands.PREVIOUS_TAB_IN_GROUP, {
|
|
822
|
-
isEnabled: () => this.shell.previousTabIndexInTabBar() !== -1,
|
|
823
|
-
execute: () => this.shell.activatePreviousTabInTabBar()
|
|
824
|
-
});
|
|
825
|
-
commandRegistry.registerCommand(CommonCommands.NEXT_TAB_GROUP, {
|
|
826
|
-
isEnabled: () => this.shell.nextTabBar() !== undefined,
|
|
827
|
-
execute: () => this.shell.activateNextTabBar()
|
|
828
|
-
});
|
|
829
|
-
commandRegistry.registerCommand(CommonCommands.PREVIOUS_TAB_GROUP, {
|
|
830
|
-
isEnabled: () => this.shell.previousTabBar() !== undefined,
|
|
831
|
-
execute: () => this.shell.activatePreviousTabBar()
|
|
832
|
-
});
|
|
833
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_TAB, new CurrentWidgetCommandAdapter(this.shell, {
|
|
834
|
-
isEnabled: title => Boolean(title?.closable),
|
|
835
|
-
execute: (title, tabBar) => tabBar && this.shell.closeTabs(tabBar, candidate => candidate === title),
|
|
836
|
-
}));
|
|
837
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_OTHER_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
838
|
-
isEnabled: (title, tabbar) => Boolean(tabbar?.titles.some(candidate => candidate !== title && candidate.closable)),
|
|
839
|
-
execute: (title, tabbar) => tabbar && this.shell.closeTabs(tabbar, candidate => candidate !== title && candidate.closable),
|
|
840
|
-
}));
|
|
841
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_SAVED_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
842
|
-
isEnabled: (_title, tabbar) => Boolean(tabbar?.titles.some(candidate => candidate.closable && !Saveable.isDirty(candidate.owner))),
|
|
843
|
-
execute: (_title, tabbar) => tabbar && this.shell.closeTabs(tabbar, candidate => candidate.closable && !Saveable.isDirty(candidate.owner)),
|
|
844
|
-
}));
|
|
845
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_RIGHT_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
846
|
-
isEnabled: (title, tabbar) => {
|
|
847
|
-
let targetSeen = false;
|
|
848
|
-
return Boolean(tabbar?.titles.some(candidate => {
|
|
849
|
-
if (targetSeen && candidate.closable) { return true; };
|
|
850
|
-
if (candidate === title) { targetSeen = true; };
|
|
851
|
-
}));
|
|
852
|
-
},
|
|
853
|
-
isVisible: (_title, tabbar) => {
|
|
854
|
-
const area = (tabbar && this.shell.getAreaFor(tabbar)) ?? this.shell.currentTabArea;
|
|
855
|
-
return area !== undefined && area !== 'left' && area !== 'right';
|
|
856
|
-
},
|
|
857
|
-
execute: (title, tabbar) => {
|
|
858
|
-
if (tabbar) {
|
|
859
|
-
let targetSeen = false;
|
|
860
|
-
this.shell.closeTabs(tabbar, candidate => {
|
|
861
|
-
if (targetSeen && candidate.closable) { return true; };
|
|
862
|
-
if (candidate === title) { targetSeen = true; };
|
|
863
|
-
return false;
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}));
|
|
868
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_ALL_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
869
|
-
isEnabled: (_title, tabbar) => Boolean(tabbar?.titles.some(title => title.closable)),
|
|
870
|
-
execute: (_title, tabbar) => tabbar && this.shell.closeTabs(tabbar, candidate => candidate.closable),
|
|
871
|
-
}));
|
|
872
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_MAIN_TAB, {
|
|
873
|
-
isEnabled: () => {
|
|
874
|
-
const currentWidget = this.shell.getCurrentWidget('main');
|
|
875
|
-
return currentWidget !== undefined && currentWidget.title.closable;
|
|
876
|
-
},
|
|
877
|
-
execute: () => this.shell.getCurrentWidget('main')!.close()
|
|
878
|
-
});
|
|
879
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_OTHER_MAIN_TABS, {
|
|
880
|
-
isEnabled: () => {
|
|
881
|
-
const currentWidget = this.shell.getCurrentWidget('main');
|
|
882
|
-
return currentWidget !== undefined &&
|
|
883
|
-
this.shell.mainAreaTabBars.some(tb => tb.titles.some(title => title.owner !== currentWidget && title.closable));
|
|
884
|
-
},
|
|
885
|
-
execute: () => {
|
|
886
|
-
const currentWidget = this.shell.getCurrentWidget('main');
|
|
887
|
-
this.shell.closeTabs('main', title => title.owner !== currentWidget && title.closable);
|
|
888
|
-
}
|
|
889
|
-
});
|
|
890
|
-
commandRegistry.registerCommand(CommonCommands.CLOSE_ALL_MAIN_TABS, {
|
|
891
|
-
isEnabled: () => this.shell.mainAreaTabBars.some(tb => tb.titles.some(title => title.closable)),
|
|
892
|
-
execute: () => this.shell.closeTabs('main', title => title.closable)
|
|
893
|
-
});
|
|
894
|
-
commandRegistry.registerCommand(CommonCommands.COLLAPSE_PANEL, new CurrentWidgetCommandAdapter(this.shell, {
|
|
895
|
-
isEnabled: (_title, tabbar) => Boolean(tabbar && ApplicationShell.isSideArea(this.shell.getAreaFor(tabbar))),
|
|
896
|
-
isVisible: (_title, tabbar) => Boolean(tabbar && ApplicationShell.isSideArea(this.shell.getAreaFor(tabbar))),
|
|
897
|
-
execute: (_title, tabbar) => tabbar && this.shell.collapsePanel(this.shell.getAreaFor(tabbar)!)
|
|
898
|
-
}));
|
|
899
|
-
commandRegistry.registerCommand(CommonCommands.COLLAPSE_ALL_PANELS, {
|
|
900
|
-
execute: () => {
|
|
901
|
-
this.shell.collapsePanel('left');
|
|
902
|
-
this.shell.collapsePanel('right');
|
|
903
|
-
this.shell.collapsePanel('bottom');
|
|
904
|
-
}
|
|
905
|
-
});
|
|
906
|
-
commandRegistry.registerCommand(CommonCommands.TOGGLE_BOTTOM_PANEL, {
|
|
907
|
-
isEnabled: () => this.shell.getWidgets('bottom').length > 0,
|
|
908
|
-
execute: () => {
|
|
909
|
-
if (this.shell.isExpanded('bottom')) {
|
|
910
|
-
this.shell.collapsePanel('bottom');
|
|
911
|
-
} else {
|
|
912
|
-
this.shell.expandPanel('bottom');
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
});
|
|
916
|
-
commandRegistry.registerCommand(CommonCommands.TOGGLE_STATUS_BAR, {
|
|
917
|
-
execute: () => this.preferenceService.updateValue('workbench.statusBar.visible', !this.preferences['workbench.statusBar.visible'])
|
|
918
|
-
});
|
|
919
|
-
commandRegistry.registerCommand(CommonCommands.TOGGLE_MAXIMIZED, new CurrentWidgetCommandAdapter(this.shell, {
|
|
920
|
-
isEnabled: title => Boolean(title?.owner && this.shell.canToggleMaximized(title?.owner)),
|
|
921
|
-
isVisible: title => Boolean(title?.owner && this.shell.canToggleMaximized(title?.owner)),
|
|
922
|
-
execute: title => title?.owner && this.shell.toggleMaximized(title?.owner),
|
|
923
|
-
}));
|
|
924
|
-
commandRegistry.registerCommand(CommonCommands.SHOW_MENU_BAR, {
|
|
925
|
-
isEnabled: () => !isOSX,
|
|
926
|
-
isVisible: () => !isOSX,
|
|
927
|
-
execute: () => {
|
|
928
|
-
const menuBarVisibility = 'window.menuBarVisibility';
|
|
929
|
-
const visibility = this.preferences[menuBarVisibility];
|
|
930
|
-
if (visibility !== 'compact') {
|
|
931
|
-
this.preferenceService.updateValue(menuBarVisibility, 'compact');
|
|
932
|
-
} else {
|
|
933
|
-
this.preferenceService.updateValue(menuBarVisibility, 'classic');
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
commandRegistry.registerCommand(CommonCommands.SAVE, {
|
|
938
|
-
execute: () => this.save({ formatType: FormatType.ON })
|
|
939
|
-
});
|
|
940
|
-
commandRegistry.registerCommand(CommonCommands.SAVE_AS, {
|
|
941
|
-
isEnabled: () => this.saveResourceService.canSaveAs(this.shell.currentWidget),
|
|
942
|
-
execute: () => {
|
|
943
|
-
const { currentWidget } = this.shell;
|
|
944
|
-
// No clue what could have happened between `isEnabled` and `execute`
|
|
945
|
-
// when fetching currentWidget, so better to double-check:
|
|
946
|
-
if (this.saveResourceService.canSaveAs(currentWidget)) {
|
|
947
|
-
this.saveResourceService.saveAs(currentWidget);
|
|
948
|
-
} else {
|
|
949
|
-
this.messageService.error(nls.localize('theia/workspace/failSaveAs', 'Cannot run "{0}" for the current widget.', CommonCommands.SAVE_AS.label!));
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
|
-
});
|
|
953
|
-
commandRegistry.registerCommand(CommonCommands.SAVE_WITHOUT_FORMATTING, {
|
|
954
|
-
execute: () => this.save({ formatType: FormatType.OFF })
|
|
955
|
-
});
|
|
956
|
-
commandRegistry.registerCommand(CommonCommands.SAVE_ALL, {
|
|
957
|
-
execute: () => this.shell.saveAll({ formatType: FormatType.DIRTY })
|
|
958
|
-
});
|
|
959
|
-
commandRegistry.registerCommand(CommonCommands.ABOUT_COMMAND, {
|
|
960
|
-
execute: () => this.openAbout()
|
|
961
|
-
});
|
|
962
|
-
|
|
963
|
-
commandRegistry.registerCommand(CommonCommands.OPEN_VIEW, {
|
|
964
|
-
execute: () => this.quickInputService?.open(QuickViewService.PREFIX)
|
|
965
|
-
});
|
|
966
|
-
|
|
967
|
-
commandRegistry.registerCommand(CommonCommands.SELECT_COLOR_THEME, {
|
|
968
|
-
execute: () => this.selectColorTheme()
|
|
969
|
-
});
|
|
970
|
-
commandRegistry.registerCommand(CommonCommands.SELECT_ICON_THEME, {
|
|
971
|
-
execute: () => this.selectIconTheme()
|
|
972
|
-
});
|
|
973
|
-
commandRegistry.registerCommand(CommonCommands.PIN_TAB, new CurrentWidgetCommandAdapter(this.shell, {
|
|
974
|
-
isEnabled: title => Boolean(title && !isPinned(title)),
|
|
975
|
-
execute: title => this.togglePinned(title),
|
|
976
|
-
}));
|
|
977
|
-
commandRegistry.registerCommand(CommonCommands.UNPIN_TAB, new CurrentWidgetCommandAdapter(this.shell, {
|
|
978
|
-
isEnabled: title => Boolean(title && isPinned(title)),
|
|
979
|
-
execute: title => this.togglePinned(title),
|
|
980
|
-
}));
|
|
981
|
-
commandRegistry.registerCommand(CommonCommands.CONFIGURE_DISPLAY_LANGUAGE, {
|
|
982
|
-
execute: () => this.configureDisplayLanguage()
|
|
983
|
-
});
|
|
984
|
-
commandRegistry.registerCommand(CommonCommands.TOGGLE_BREADCRUMBS, {
|
|
985
|
-
execute: () => this.toggleBreadcrumbs(),
|
|
986
|
-
isToggled: () => this.isBreadcrumbsEnabled(),
|
|
987
|
-
});
|
|
988
|
-
commandRegistry.registerCommand(CommonCommands.NEW_UNTITLED_TEXT_FILE, {
|
|
989
|
-
execute: async () => {
|
|
990
|
-
const untitledUri = this.untitledResourceResolver.createUntitledURI('', await this.workingDirProvider.getUserWorkingDir());
|
|
991
|
-
this.untitledResourceResolver.resolve(untitledUri);
|
|
992
|
-
return open(this.openerService, untitledUri);
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
commandRegistry.registerCommand(CommonCommands.NEW_UNTITLED_FILE, {
|
|
996
|
-
execute: async () => this.showNewFilePicker()
|
|
997
|
-
});
|
|
998
|
-
|
|
999
|
-
for (const [index, ordinal] of this.getOrdinalNumbers().entries()) {
|
|
1000
|
-
commandRegistry.registerCommand({ id: `workbench.action.focus${ordinal}EditorGroup`, label: index === 0 ? nls.localizeByDefault('Focus First Editor Group') : '', category: nls.localize(CommonCommands.VIEW_CATEGORY_KEY, CommonCommands.VIEW_CATEGORY) }, {
|
|
1001
|
-
isEnabled: () => this.shell.mainAreaTabBars.length > index,
|
|
1002
|
-
execute: () => {
|
|
1003
|
-
const widget = this.shell.mainAreaTabBars[index]?.currentTitle?.owner;
|
|
1004
|
-
if (widget) {
|
|
1005
|
-
this.shell.activateWidget(widget.id);
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
protected getOrdinalNumbers(): readonly string[] {
|
|
1013
|
-
return ['First', 'Second', 'Third', 'Fourth', 'Fifth', 'Sixth', 'Seventh', 'Eighth', 'Ninth'];
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
protected isElectron(): boolean {
|
|
1017
|
-
return environment.electron.is();
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
protected togglePinned(title?: Title<Widget>): void {
|
|
1021
|
-
if (title) {
|
|
1022
|
-
togglePinned(title);
|
|
1023
|
-
this.updatePinnedKey();
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
registerKeybindings(registry: KeybindingRegistry): void {
|
|
1028
|
-
if (supportCut) {
|
|
1029
|
-
registry.registerKeybinding({
|
|
1030
|
-
command: CommonCommands.CUT.id,
|
|
1031
|
-
keybinding: 'ctrlcmd+x'
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
if (supportCopy) {
|
|
1035
|
-
registry.registerKeybinding({
|
|
1036
|
-
command: CommonCommands.COPY.id,
|
|
1037
|
-
keybinding: 'ctrlcmd+c'
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
if (supportPaste) {
|
|
1041
|
-
registry.registerKeybinding({
|
|
1042
|
-
command: CommonCommands.PASTE.id,
|
|
1043
|
-
keybinding: 'ctrlcmd+v'
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
registry.registerKeybinding({
|
|
1047
|
-
command: CommonCommands.COPY_PATH.id,
|
|
1048
|
-
keybinding: isWindows ? 'shift+alt+c' : 'ctrlcmd+alt+c',
|
|
1049
|
-
when: '!editorFocus'
|
|
1050
|
-
});
|
|
1051
|
-
registry.registerKeybindings(
|
|
1052
|
-
// Edition
|
|
1053
|
-
{
|
|
1054
|
-
command: CommonCommands.UNDO.id,
|
|
1055
|
-
keybinding: 'ctrlcmd+z'
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
command: CommonCommands.REDO.id,
|
|
1059
|
-
keybinding: 'ctrlcmd+shift+z'
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
command: CommonCommands.SELECT_ALL.id,
|
|
1063
|
-
keybinding: 'ctrlcmd+a'
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
command: CommonCommands.FIND.id,
|
|
1067
|
-
keybinding: 'ctrlcmd+f'
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
command: CommonCommands.REPLACE.id,
|
|
1071
|
-
keybinding: 'ctrlcmd+alt+f'
|
|
1072
|
-
},
|
|
1073
|
-
// Tabs
|
|
1074
|
-
{
|
|
1075
|
-
command: CommonCommands.NEXT_TAB.id,
|
|
1076
|
-
keybinding: 'ctrlcmd+tab'
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
command: CommonCommands.NEXT_TAB.id,
|
|
1080
|
-
keybinding: 'ctrlcmd+alt+d'
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
command: CommonCommands.PREVIOUS_TAB.id,
|
|
1084
|
-
keybinding: 'ctrlcmd+shift+tab'
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
command: CommonCommands.PREVIOUS_TAB.id,
|
|
1088
|
-
keybinding: 'ctrlcmd+alt+a'
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
command: CommonCommands.CLOSE_MAIN_TAB.id,
|
|
1092
|
-
keybinding: this.isElectron() ? (isWindows ? 'ctrl+f4' : 'ctrlcmd+w') : 'alt+w'
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
command: CommonCommands.CLOSE_OTHER_MAIN_TABS.id,
|
|
1096
|
-
keybinding: 'ctrlcmd+alt+t'
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
command: CommonCommands.CLOSE_ALL_MAIN_TABS.id,
|
|
1100
|
-
keybinding: this.isElectron() ? 'ctrlCmd+k ctrlCmd+w' : 'alt+shift+w'
|
|
1101
|
-
},
|
|
1102
|
-
// Panels
|
|
1103
|
-
{
|
|
1104
|
-
command: CommonCommands.COLLAPSE_PANEL.id,
|
|
1105
|
-
keybinding: 'alt+c'
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
command: CommonCommands.TOGGLE_BOTTOM_PANEL.id,
|
|
1109
|
-
keybinding: 'ctrlcmd+j',
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
command: CommonCommands.COLLAPSE_ALL_PANELS.id,
|
|
1113
|
-
keybinding: 'alt+shift+c',
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
command: CommonCommands.TOGGLE_MAXIMIZED.id,
|
|
1117
|
-
keybinding: 'alt+m',
|
|
1118
|
-
},
|
|
1119
|
-
// Saving
|
|
1120
|
-
{
|
|
1121
|
-
command: CommonCommands.SAVE.id,
|
|
1122
|
-
keybinding: 'ctrlcmd+s'
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
command: CommonCommands.SAVE_WITHOUT_FORMATTING.id,
|
|
1126
|
-
keybinding: 'ctrlcmd+k s'
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
command: CommonCommands.SAVE_ALL.id,
|
|
1130
|
-
keybinding: 'ctrlcmd+alt+s'
|
|
1131
|
-
},
|
|
1132
|
-
// Theming
|
|
1133
|
-
{
|
|
1134
|
-
command: CommonCommands.SELECT_COLOR_THEME.id,
|
|
1135
|
-
keybinding: 'ctrlcmd+k ctrlcmd+t'
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
command: CommonCommands.PIN_TAB.id,
|
|
1139
|
-
keybinding: 'ctrlcmd+k shift+enter',
|
|
1140
|
-
when: '!activeEditorIsPinned'
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
command: CommonCommands.UNPIN_TAB.id,
|
|
1144
|
-
keybinding: 'ctrlcmd+k shift+enter',
|
|
1145
|
-
when: 'activeEditorIsPinned'
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
command: CommonCommands.NEW_UNTITLED_TEXT_FILE.id,
|
|
1149
|
-
keybinding: this.isElectron() ? 'ctrlcmd+n' : 'alt+n',
|
|
1150
|
-
},
|
|
1151
|
-
{
|
|
1152
|
-
command: CommonCommands.NEW_UNTITLED_FILE.id,
|
|
1153
|
-
keybinding: 'ctrlcmd+alt+n'
|
|
1154
|
-
}
|
|
1155
|
-
);
|
|
1156
|
-
for (const [index, ordinal] of this.getOrdinalNumbers().entries()) {
|
|
1157
|
-
registry.registerKeybinding({
|
|
1158
|
-
command: `workbench.action.focus${ordinal}EditorGroup`,
|
|
1159
|
-
keybinding: `ctrlcmd+${(index + 1) % 10}`,
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
protected async save(options?: SaveOptions): Promise<void> {
|
|
1165
|
-
const widget = this.shell.currentWidget;
|
|
1166
|
-
this.saveResourceService.save(widget, options);
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
protected async openAbout(): Promise<void> {
|
|
1170
|
-
this.aboutDialog.open();
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
protected shouldPreventClose = false;
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* registers event listener which make sure that
|
|
1177
|
-
* window doesn't get closed if CMD/CTRL W is pressed.
|
|
1178
|
-
* Too many users have that in their muscle memory.
|
|
1179
|
-
* Chrome doesn't let us rebind or prevent default the keybinding, so this
|
|
1180
|
-
* at least doesn't close the window immediately.
|
|
1181
|
-
*/
|
|
1182
|
-
protected registerCtrlWHandling(): void {
|
|
1183
|
-
function isCtrlCmd(event: KeyboardEvent): boolean {
|
|
1184
|
-
return (isOSX && event.metaKey) || (!isOSX && event.ctrlKey);
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
window.document.addEventListener('keydown', event => {
|
|
1188
|
-
this.shouldPreventClose = isCtrlCmd(event) && event.code === 'KeyW';
|
|
1189
|
-
});
|
|
1190
|
-
|
|
1191
|
-
window.document.addEventListener('keyup', () => {
|
|
1192
|
-
this.shouldPreventClose = false;
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
onWillStop(): OnWillStopAction | undefined {
|
|
1197
|
-
if (this.shouldPreventClose || this.shell.canSaveAll()) {
|
|
1198
|
-
return {
|
|
1199
|
-
reason: 'Dirty editors present',
|
|
1200
|
-
action: async () => {
|
|
1201
|
-
const captionsToSave = this.unsavedTabsCaptions();
|
|
1202
|
-
const untitledCaptionsToSave = this.unsavedUntitledTabsCaptions();
|
|
1203
|
-
const shouldExit = await this.confirmExitWithOrWithoutSaving(captionsToSave, async () => {
|
|
1204
|
-
await this.saveDirty(untitledCaptionsToSave);
|
|
1205
|
-
await this.shell.saveAll();
|
|
1206
|
-
});
|
|
1207
|
-
const allSavedOrDoNotSave = (
|
|
1208
|
-
shouldExit === true && untitledCaptionsToSave.length === 0 // Should save and cancel if any captions failed to save
|
|
1209
|
-
) || shouldExit === false; // Do not save
|
|
1210
|
-
|
|
1211
|
-
this.shouldPreventClose = !allSavedOrDoNotSave;
|
|
1212
|
-
return allSavedOrDoNotSave;
|
|
1213
|
-
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
// Asks the user to confirm whether they want to exit with or without saving the changes
|
|
1219
|
-
private async confirmExitWithOrWithoutSaving(captionsToSave: string[], performSave: () => Promise<void>): Promise<boolean | undefined> {
|
|
1220
|
-
const div: HTMLElement = document.createElement('div');
|
|
1221
|
-
div.innerText = nls.localizeByDefault("Your changes will be lost if you don't save them.");
|
|
1222
|
-
|
|
1223
|
-
let result;
|
|
1224
|
-
if (captionsToSave.length > 0) {
|
|
1225
|
-
const span = document.createElement('span');
|
|
1226
|
-
span.appendChild(document.createElement('br'));
|
|
1227
|
-
captionsToSave.forEach(cap => {
|
|
1228
|
-
const b = document.createElement('b');
|
|
1229
|
-
b.innerText = cap;
|
|
1230
|
-
span.appendChild(b);
|
|
1231
|
-
span.appendChild(document.createElement('br'));
|
|
1232
|
-
});
|
|
1233
|
-
span.appendChild(document.createElement('br'));
|
|
1234
|
-
div.appendChild(span);
|
|
1235
|
-
result = await new ConfirmSaveDialog({
|
|
1236
|
-
title: nls.localizeByDefault('Do you want to save the changes to the following {0} files?', captionsToSave.length),
|
|
1237
|
-
msg: div,
|
|
1238
|
-
dontSave: nls.localizeByDefault("Don't Save"),
|
|
1239
|
-
save: nls.localizeByDefault('Save All'),
|
|
1240
|
-
cancel: Dialog.CANCEL
|
|
1241
|
-
}).open();
|
|
1242
|
-
|
|
1243
|
-
if (result) {
|
|
1244
|
-
await performSave();
|
|
1245
|
-
}
|
|
1246
|
-
} else {
|
|
1247
|
-
// fallback if not passed with an empty caption-list.
|
|
1248
|
-
result = confirmExit();
|
|
1249
|
-
}
|
|
1250
|
-
if (result !== undefined) {
|
|
1251
|
-
return result === true;
|
|
1252
|
-
} else {
|
|
1253
|
-
return undefined;
|
|
1254
|
-
};
|
|
1255
|
-
|
|
1256
|
-
}
|
|
1257
|
-
protected unsavedTabsCaptions(): string[] {
|
|
1258
|
-
return this.shell.widgets
|
|
1259
|
-
.filter(widget => this.saveResourceService.canSave(widget))
|
|
1260
|
-
.map(widget => widget.title.label);
|
|
1261
|
-
}
|
|
1262
|
-
protected unsavedUntitledTabsCaptions(): Widget[] {
|
|
1263
|
-
return this.shell.widgets.filter(widget =>
|
|
1264
|
-
NavigatableWidget.getUri(widget)?.scheme === UNTITLED_SCHEME && this.saveResourceService.canSaveAs(widget)
|
|
1265
|
-
);
|
|
1266
|
-
}
|
|
1267
|
-
protected async configureDisplayLanguage(): Promise<void> {
|
|
1268
|
-
const languageInfo = await this.languageQuickPickService.pickDisplayLanguage();
|
|
1269
|
-
if (languageInfo && !nls.isSelectedLocale(languageInfo.languageId) && await this.confirmRestart(
|
|
1270
|
-
languageInfo.localizedLanguageName ?? languageInfo.languageName ?? languageInfo.languageId
|
|
1271
|
-
)) {
|
|
1272
|
-
nls.setLocale(languageInfo.languageId);
|
|
1273
|
-
this.windowService.setSafeToShutDown();
|
|
1274
|
-
this.windowService.reload();
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* saves any dirty widget in toSave
|
|
1279
|
-
* side effect - will pop all widgets from toSave that was saved
|
|
1280
|
-
* @param toSave
|
|
1281
|
-
*/
|
|
1282
|
-
protected async saveDirty(toSave: Widget[]): Promise<void> {
|
|
1283
|
-
for (const widget of toSave) {
|
|
1284
|
-
const saveable = Saveable.get(widget);
|
|
1285
|
-
if (saveable?.dirty) {
|
|
1286
|
-
await this.saveResourceService.save(widget);
|
|
1287
|
-
if (!this.saveResourceService.canSave(widget)) {
|
|
1288
|
-
toSave.pop();
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
protected toggleBreadcrumbs(): void {
|
|
1294
|
-
const value: boolean | undefined = this.preferenceService.get('breadcrumbs.enabled');
|
|
1295
|
-
this.preferenceService.set('breadcrumbs.enabled', !value, PreferenceScope.User);
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
protected isBreadcrumbsEnabled(): boolean {
|
|
1299
|
-
return !!this.preferenceService.get('breadcrumbs.enabled');
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
protected async confirmRestart(languageName: string): Promise<boolean> {
|
|
1303
|
-
const appName = FrontendApplicationConfigProvider.get().applicationName;
|
|
1304
|
-
const shouldRestart = await new ConfirmDialog({
|
|
1305
|
-
title: nls.localizeByDefault('Restart {0} to switch to {1}?', appName, languageName),
|
|
1306
|
-
msg: nls.localizeByDefault('To change the display language to {0}, {1} needs to restart.', languageName, appName),
|
|
1307
|
-
ok: nls.localizeByDefault('Restart'),
|
|
1308
|
-
cancel: Dialog.CANCEL,
|
|
1309
|
-
}).open();
|
|
1310
|
-
return shouldRestart === true;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
protected selectIconTheme(): void {
|
|
1314
|
-
let resetTo: IconTheme | undefined = this.iconThemes.getCurrent();
|
|
1315
|
-
const setTheme = (id: string, persist: boolean) => {
|
|
1316
|
-
const theme = this.iconThemes.getDefinition(id);
|
|
1317
|
-
if (theme) {
|
|
1318
|
-
this.iconThemes.setCurrent(theme as IconTheme, persist);
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
|
-
const previewTheme = debounce(setTheme, 200);
|
|
1322
|
-
|
|
1323
|
-
let items: Array<QuickPickItem & { id: string }> = [];
|
|
1324
|
-
for (const iconTheme of this.iconThemes.definitions) {
|
|
1325
|
-
items.push({
|
|
1326
|
-
id: iconTheme.id,
|
|
1327
|
-
label: iconTheme.label,
|
|
1328
|
-
description: iconTheme.description,
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
items = items.sort((a, b) => {
|
|
1332
|
-
if (a.id === 'none') {
|
|
1333
|
-
return -1;
|
|
1334
|
-
}
|
|
1335
|
-
return a.label!.localeCompare(b.label!);
|
|
1336
|
-
});
|
|
1337
|
-
|
|
1338
|
-
this.quickInputService?.showQuickPick(items,
|
|
1339
|
-
{
|
|
1340
|
-
placeholder: nls.localizeByDefault('Select File Icon Theme'),
|
|
1341
|
-
activeItem: items.find(item => item.id === resetTo?.id),
|
|
1342
|
-
onDidChangeSelection: (_, selectedItems) => {
|
|
1343
|
-
resetTo = undefined;
|
|
1344
|
-
setTheme(selectedItems[0].id, true);
|
|
1345
|
-
},
|
|
1346
|
-
onDidChangeActive: (_, activeItems) => {
|
|
1347
|
-
previewTheme(activeItems[0].id, false);
|
|
1348
|
-
},
|
|
1349
|
-
onDidHide: () => {
|
|
1350
|
-
if (resetTo) {
|
|
1351
|
-
this.iconThemes.setCurrent(resetTo, false);
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
protected selectColorTheme(): void {
|
|
1358
|
-
let resetTo: string | undefined = this.themeService.getCurrentTheme().id;
|
|
1359
|
-
const setTheme = (id: string, persist: boolean) => this.themeService.setCurrentTheme(id, persist);
|
|
1360
|
-
const previewTheme = debounce(setTheme, 200);
|
|
1361
|
-
type QuickPickWithId = QuickPickItem & { id: string };
|
|
1362
|
-
const itemsByTheme: {
|
|
1363
|
-
light: Array<QuickPickWithId>,
|
|
1364
|
-
dark: Array<QuickPickWithId>,
|
|
1365
|
-
hc: Array<QuickPickWithId>,
|
|
1366
|
-
hcLight: Array<QuickPickWithId>
|
|
1367
|
-
} = { light: [], dark: [], hc: [], hcLight: [] };
|
|
1368
|
-
|
|
1369
|
-
const lightThemesSeparator = nls.localizeByDefault('light themes');
|
|
1370
|
-
const darkThemesSeparator = nls.localizeByDefault('dark themes');
|
|
1371
|
-
const highContrastThemesSeparator = nls.localizeByDefault('high contrast themes');
|
|
1372
|
-
|
|
1373
|
-
for (const theme of this.themeService.getThemes().sort((a, b) => a.label.localeCompare(b.label))) {
|
|
1374
|
-
const themeItems: QuickPickItemOrSeparator[] = itemsByTheme[theme.type];
|
|
1375
|
-
|
|
1376
|
-
// Add a separator for the first item in the respective group.
|
|
1377
|
-
// High Contrast Themes despite dark or light should be grouped together.
|
|
1378
|
-
if (themeItems.length === 0 && theme.type !== 'hcLight') {
|
|
1379
|
-
let label = '';
|
|
1380
|
-
if (theme.type === 'light') {
|
|
1381
|
-
label = lightThemesSeparator;
|
|
1382
|
-
} else if (theme.type === 'dark') {
|
|
1383
|
-
label = darkThemesSeparator;
|
|
1384
|
-
} else {
|
|
1385
|
-
label = highContrastThemesSeparator;
|
|
1386
|
-
}
|
|
1387
|
-
themeItems.push({
|
|
1388
|
-
type: 'separator',
|
|
1389
|
-
label
|
|
1390
|
-
});
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
themeItems.push({
|
|
1394
|
-
id: theme.id,
|
|
1395
|
-
label: theme.label,
|
|
1396
|
-
description: theme.description,
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
const items = [...itemsByTheme.light, ...itemsByTheme.dark, ...itemsByTheme.hc, ...itemsByTheme.hcLight];
|
|
1400
|
-
this.quickInputService?.showQuickPick(items,
|
|
1401
|
-
{
|
|
1402
|
-
placeholder: nls.localizeByDefault('Select Color Theme (Up/Down Keys to Preview)'),
|
|
1403
|
-
activeItem: items.find(item => item.id === resetTo),
|
|
1404
|
-
onDidChangeSelection: (_, selectedItems) => {
|
|
1405
|
-
resetTo = undefined;
|
|
1406
|
-
setTheme(selectedItems[0].id, true);
|
|
1407
|
-
},
|
|
1408
|
-
onDidChangeActive: (_, activeItems) => {
|
|
1409
|
-
previewTheme(activeItems[0].id, false);
|
|
1410
|
-
},
|
|
1411
|
-
onDidHide: () => {
|
|
1412
|
-
if (resetTo) {
|
|
1413
|
-
setTheme(resetTo, false);
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
/**
|
|
1420
|
-
* @todo https://github.com/eclipse-theia/theia/issues/12824
|
|
1421
|
-
*/
|
|
1422
|
-
protected async showNewFilePicker(): Promise<void> {
|
|
1423
|
-
const newFileContributions = this.menuRegistry.getMenuNode(CommonMenus.FILE_NEW_CONTRIBUTIONS); // Add menus
|
|
1424
|
-
const items: QuickPickItemOrSeparator[] = [
|
|
1425
|
-
{
|
|
1426
|
-
label: nls.localizeByDefault('New Text File'),
|
|
1427
|
-
execute: async () => this.commandRegistry.executeCommand(CommonCommands.NEW_UNTITLED_TEXT_FILE.id)
|
|
1428
|
-
},
|
|
1429
|
-
...newFileContributions.children
|
|
1430
|
-
.flatMap(node => {
|
|
1431
|
-
if (node.children && node.children.length > 0) {
|
|
1432
|
-
return node.children;
|
|
1433
|
-
}
|
|
1434
|
-
return node;
|
|
1435
|
-
})
|
|
1436
|
-
.filter(node => node.role || node.command)
|
|
1437
|
-
.map(node => {
|
|
1438
|
-
if (node.role) {
|
|
1439
|
-
return { type: 'separator' } as QuickPickSeparator;
|
|
1440
|
-
}
|
|
1441
|
-
const command = this.commandRegistry.getCommand(node.command!);
|
|
1442
|
-
return {
|
|
1443
|
-
label: command!.label!,
|
|
1444
|
-
execute: async () => this.commandRegistry.executeCommand(command!.id!)
|
|
1445
|
-
};
|
|
1446
|
-
|
|
1447
|
-
})
|
|
1448
|
-
];
|
|
1449
|
-
this.quickInputService.showQuickPick(items, {
|
|
1450
|
-
title: nls.localizeByDefault('New File...'),
|
|
1451
|
-
placeholder: nls.localizeByDefault('Select File Type or Enter File Name...'),
|
|
1452
|
-
canSelectMany: false
|
|
1453
|
-
});
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
registerColors(colors: ColorRegistry): void {
|
|
1457
|
-
colors.register(
|
|
1458
|
-
// Base Colors should be aligned with https://code.visualstudio.com/api/references/theme-color#base-colors
|
|
1459
|
-
// if not yet contributed by Monaco, check runtime css variables to learn
|
|
1460
|
-
{ id: 'selection.background', defaults: { dark: '#217daf', light: '#c0dbf1' }, description: 'Overall border color for focused elements. This color is only used if not overridden by a component.' },
|
|
1461
|
-
{ id: 'icon.foreground', defaults: { dark: '#C5C5C5', light: '#424242', hcDark: '#FFFFFF', hcLight: '#292929' }, description: 'The default color for icons in the workbench.' },
|
|
1462
|
-
{ id: 'sash.hoverBorder', defaults: { dark: Color.transparent('focusBorder', 0.99), light: Color.transparent('focusBorder', 0.99), hcDark: 'focusBorder', hcLight: 'focusBorder' }, description: 'The hover border color for draggable sashes.' },
|
|
1463
|
-
{ id: 'sash.activeBorder', defaults: { dark: 'focusBorder', light: 'focusBorder', hcDark: 'focusBorder' }, description: 'The active border color for draggable sashes.' },
|
|
1464
|
-
// Window border colors should be aligned with https://code.visualstudio.com/api/references/theme-color#window-border
|
|
1465
|
-
{
|
|
1466
|
-
id: 'window.activeBorder', defaults: {
|
|
1467
|
-
hcDark: 'contrastBorder',
|
|
1468
|
-
hcLight: 'contrastBorder'
|
|
1469
|
-
}, description: 'The color used for the border of the window when it is active.'
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
id: 'window.inactiveBorder', defaults: {
|
|
1473
|
-
hcDark: 'contrastBorder',
|
|
1474
|
-
hcLight: 'contrastBorder'
|
|
1475
|
-
},
|
|
1476
|
-
description: 'The color used for the border of the window when it is inactive.'
|
|
1477
|
-
},
|
|
1478
|
-
|
|
1479
|
-
// Buttons should be aligned with https://code.visualstudio.com/api/references/theme-color#button-control
|
|
1480
|
-
// if not yet contributed by Monaco, check runtime css variables to learn
|
|
1481
|
-
{ id: 'button.foreground', defaults: { dark: Color.white, light: Color.white, hcDark: Color.white, hcLight: Color.white }, description: 'Button foreground color.' },
|
|
1482
|
-
{ id: 'button.background', defaults: { dark: '#0E639C', light: '#007ACC', hcDark: undefined, hcLight: '#0F4A85' }, description: 'Button background color.' },
|
|
1483
|
-
{ id: 'button.hoverBackground', defaults: { dark: Color.lighten('button.background', 0.2), light: Color.darken('button.background', 0.2) }, description: 'Button background color when hovering.' },
|
|
1484
|
-
|
|
1485
|
-
// Activity Bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#activity-bar
|
|
1486
|
-
{
|
|
1487
|
-
id: 'activityBar.background', defaults: {
|
|
1488
|
-
dark: '#333333',
|
|
1489
|
-
light: '#2C2C2C',
|
|
1490
|
-
hcDark: '#000000',
|
|
1491
|
-
hcLight: '#FFFFFF'
|
|
1492
|
-
}, description: 'Activity bar background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1493
|
-
},
|
|
1494
|
-
{
|
|
1495
|
-
id: 'activityBar.foreground', defaults: {
|
|
1496
|
-
dark: Color.white,
|
|
1497
|
-
light: Color.white,
|
|
1498
|
-
hcDark: Color.white,
|
|
1499
|
-
hcLight: 'editor.foreground'
|
|
1500
|
-
}, description: 'Activity bar item foreground color when it is active. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
id: 'activityBar.inactiveForeground', defaults: {
|
|
1504
|
-
dark: Color.transparent('activityBar.foreground', 0.4),
|
|
1505
|
-
light: Color.transparent('activityBar.foreground', 0.4),
|
|
1506
|
-
hcDark: Color.white,
|
|
1507
|
-
hcLight: 'editor.foreground'
|
|
1508
|
-
}, description: 'Activity bar item foreground color when it is inactive. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
id: 'activityBar.border', defaults: {
|
|
1512
|
-
hcDark: 'contrastBorder',
|
|
1513
|
-
hcLight: 'contrastBorder'
|
|
1514
|
-
}, description: 'Activity bar border color separating to the side bar. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
id: 'activityBar.activeBorder', defaults: {
|
|
1518
|
-
dark: 'activityBar.foreground',
|
|
1519
|
-
light: 'activityBar.foreground',
|
|
1520
|
-
hcLight: 'contrastBorder'
|
|
1521
|
-
}, description: 'Activity bar border color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
id: 'activityBar.activeFocusBorder', defaults: {
|
|
1525
|
-
hcLight: '#B5200D'
|
|
1526
|
-
}, description: 'Activity bar focus border color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1527
|
-
},
|
|
1528
|
-
{ id: 'activityBar.activeBackground', description: 'Activity bar background color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar.' },
|
|
1529
|
-
{
|
|
1530
|
-
id: 'activityBar.dropBackground', defaults: {
|
|
1531
|
-
dark: Color.transparent('#ffffff', 0.12),
|
|
1532
|
-
light: Color.transparent('#ffffff', 0.12),
|
|
1533
|
-
hcDark: Color.transparent('#ffffff', 0.12),
|
|
1534
|
-
}, description: 'Drag and drop feedback color for the activity bar items. The color should have transparency so that the activity bar entries can still shine through. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
id: 'activityBarBadge.background', defaults: {
|
|
1538
|
-
dark: '#007ACC',
|
|
1539
|
-
light: '#007ACC',
|
|
1540
|
-
hcDark: '#000000',
|
|
1541
|
-
hcLight: '#0F4A85'
|
|
1542
|
-
}, description: 'Activity notification badge background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1543
|
-
},
|
|
1544
|
-
{
|
|
1545
|
-
id: 'activityBarBadge.foreground', defaults: {
|
|
1546
|
-
dark: Color.white,
|
|
1547
|
-
light: Color.white,
|
|
1548
|
-
hcDark: Color.white,
|
|
1549
|
-
hcLight: Color.white
|
|
1550
|
-
}, description: 'Activity notification badge foreground color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1551
|
-
},
|
|
1552
|
-
|
|
1553
|
-
// Side Bar should be aligned with https://code.visualstudio.com/api/references/theme-color#side-bar
|
|
1554
|
-
// if not yet contributed by Monaco, check runtime css variables to learn
|
|
1555
|
-
{ id: 'sideBar.background', defaults: { dark: '#252526', light: '#F3F3F3', hcDark: '#000000', hcLight: '#FFFFFF' }, description: 'Side bar background color. The side bar is the container for views like explorer and search.' },
|
|
1556
|
-
{ id: 'sideBar.foreground', description: 'Side bar foreground color. The side bar is the container for views like explorer and search.' },
|
|
1557
|
-
{ id: 'sideBarSectionHeader.background', defaults: { dark: '#80808033', light: '#80808033' }, description: 'Side bar section header background color. The side bar is the container for views like explorer and search.' },
|
|
1558
|
-
{ id: 'sideBarSectionHeader.foreground', description: 'Side bar foreground color. The side bar is the container for views like explorer and search.' },
|
|
1559
|
-
{ id: 'sideBarSectionHeader.border', defaults: { dark: 'contrastBorder', light: 'contrastBorder', hcDark: 'contrastBorder', hcLight: 'contrastBorder' }, description: 'Side bar section header border color. The side bar is the container for views like explorer and search.' },
|
|
1560
|
-
|
|
1561
|
-
// Lists and Trees colors should be aligned with https://code.visualstudio.com/api/references/theme-color#lists-and-trees
|
|
1562
|
-
// if not yet contributed by Monaco, check runtime css variables to learn.
|
|
1563
|
-
// TODO: Following are not yet supported/no respective elements in theia:
|
|
1564
|
-
// list.focusBackground, list.focusForeground, list.inactiveFocusBackground, list.filterMatchBorder,
|
|
1565
|
-
// list.dropBackground, listFilterWidget.outline, listFilterWidget.noMatchesOutline
|
|
1566
|
-
// list.invalidItemForeground => tree node needs an respective class
|
|
1567
|
-
{ id: 'list.activeSelectionBackground', defaults: { dark: '#094771', light: '#0074E8', hcLight: Color.transparent('#0F4A85', 0.1) }, description: 'List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1568
|
-
{ id: 'list.activeSelectionForeground', defaults: { dark: '#FFF', light: '#FFF' }, description: 'List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1569
|
-
{ id: 'list.inactiveSelectionBackground', defaults: { dark: '#37373D', light: '#E4E6F1', hcLight: Color.transparent('#0F4A85', 0.1) }, description: 'List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1570
|
-
{ id: 'list.inactiveSelectionForeground', description: 'List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1571
|
-
{ id: 'list.hoverBackground', defaults: { dark: '#2A2D2E', light: '#F0F0F0', hcLight: Color.transparent('#0F4A85', 0.1) }, description: 'List/Tree background when hovering over items using the mouse.' },
|
|
1572
|
-
{ id: 'list.hoverForeground', description: 'List/Tree foreground when hovering over items using the mouse.' },
|
|
1573
|
-
{ id: 'list.errorForeground', defaults: { dark: '#F88070', light: '#B01011' }, description: 'Foreground color of list items containing errors.' },
|
|
1574
|
-
{ id: 'list.warningForeground', defaults: { dark: '#CCA700', light: '#855F00' }, description: 'Foreground color of list items containing warnings.' },
|
|
1575
|
-
{ id: 'list.filterMatchBackground', defaults: { dark: 'editor.findMatchHighlightBackground', light: 'editor.findMatchHighlightBackground' }, description: 'Background color of the filtered match.' },
|
|
1576
|
-
{ id: 'list.highlightForeground', defaults: { dark: '#18A3FF', light: '#0066BF', hcDark: 'focusBorder', hcLight: 'focusBorder' }, description: 'List/Tree foreground color of the match highlights when searching inside the list/tree.' },
|
|
1577
|
-
{ id: 'list.focusHighlightForeground', defaults: { dark: 'list.highlightForeground', light: 'list.activeSelectionForeground', hcDark: 'list.highlightForeground', hcLight: 'list.highlightForeground' }, description: 'List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.' },
|
|
1578
|
-
{ id: 'tree.inactiveIndentGuidesStroke', defaults: { dark: Color.transparent('tree.indentGuidesStroke', 0.4), light: Color.transparent('tree.indentGuidesStroke', 0.4), hcDark: Color.transparent('tree.indentGuidesStroke', 0.4) }, description: 'Tree stroke color for the inactive indentation guides.' },
|
|
1579
|
-
|
|
1580
|
-
// Editor Group & Tabs colors should be aligned with https://code.visualstudio.com/api/references/theme-color#editor-groups-tabs
|
|
1581
|
-
{
|
|
1582
|
-
id: 'editorGroup.border',
|
|
1583
|
-
defaults: {
|
|
1584
|
-
dark: '#444444',
|
|
1585
|
-
light: '#E7E7E7',
|
|
1586
|
-
hcDark: 'contrastBorder',
|
|
1587
|
-
hcLight: 'contrastBorder'
|
|
1588
|
-
},
|
|
1589
|
-
description: 'Color to separate multiple editor groups from each other. Editor groups are the containers of editors.'
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
id: 'editorGroup.dropBackground',
|
|
1593
|
-
defaults: {
|
|
1594
|
-
dark: Color.transparent('#53595D', 0.5),
|
|
1595
|
-
light: Color.transparent('#2677CB', 0.18),
|
|
1596
|
-
hcLight: Color.transparent('#0F4A85', 0.50)
|
|
1597
|
-
},
|
|
1598
|
-
description: 'Background color when dragging editors around. The color should have transparency so that the editor contents can still shine through.'
|
|
1599
|
-
},
|
|
1600
|
-
{
|
|
1601
|
-
id: 'editorGroupHeader.tabsBackground',
|
|
1602
|
-
defaults: {
|
|
1603
|
-
dark: '#252526',
|
|
1604
|
-
light: '#F3F3F3',
|
|
1605
|
-
},
|
|
1606
|
-
description: 'Background color of the editor group title header when tabs are enabled. Editor groups are the containers of editors.'
|
|
1607
|
-
},
|
|
1608
|
-
{
|
|
1609
|
-
id: 'editorGroupHeader.tabsBorder',
|
|
1610
|
-
defaults: {
|
|
1611
|
-
hcDark: 'contrastBorder'
|
|
1612
|
-
},
|
|
1613
|
-
description: 'Border color of the editor group title header when tabs are enabled. Editor groups are the containers of editors.'
|
|
1614
|
-
},
|
|
1615
|
-
{
|
|
1616
|
-
id: 'tab.activeBackground',
|
|
1617
|
-
defaults: {
|
|
1618
|
-
dark: 'editor.background',
|
|
1619
|
-
light: 'editor.background',
|
|
1620
|
-
hcDark: 'editor.background',
|
|
1621
|
-
hcLight: 'editor.background'
|
|
1622
|
-
},
|
|
1623
|
-
description: 'Active tab background color. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1624
|
-
},
|
|
1625
|
-
{
|
|
1626
|
-
id: 'tab.unfocusedActiveBackground',
|
|
1627
|
-
defaults: {
|
|
1628
|
-
dark: 'tab.activeBackground',
|
|
1629
|
-
light: 'tab.activeBackground',
|
|
1630
|
-
hcDark: 'tab.activeBackground',
|
|
1631
|
-
hcLight: 'tab.activeBackground'
|
|
1632
|
-
},
|
|
1633
|
-
description: 'Active tab background color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1634
|
-
},
|
|
1635
|
-
{
|
|
1636
|
-
id: 'tab.inactiveBackground',
|
|
1637
|
-
defaults: {
|
|
1638
|
-
dark: '#2D2D2D',
|
|
1639
|
-
light: '#ECECEC'
|
|
1640
|
-
},
|
|
1641
|
-
description: 'Inactive tab background color. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1642
|
-
},
|
|
1643
|
-
{
|
|
1644
|
-
id: 'tab.activeForeground',
|
|
1645
|
-
defaults: {
|
|
1646
|
-
dark: Color.white,
|
|
1647
|
-
light: '#333333',
|
|
1648
|
-
hcDark: Color.white,
|
|
1649
|
-
hcLight: '#292929'
|
|
1650
|
-
}, description: 'Active tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1651
|
-
},
|
|
1652
|
-
{
|
|
1653
|
-
id: 'tab.inactiveForeground', defaults: {
|
|
1654
|
-
dark: Color.transparent('tab.activeForeground', 0.5),
|
|
1655
|
-
light: Color.transparent('tab.activeForeground', 0.7),
|
|
1656
|
-
hcDark: Color.white,
|
|
1657
|
-
hcLight: '#292929'
|
|
1658
|
-
}, description: 'Inactive tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
id: 'tab.unfocusedActiveForeground', defaults: {
|
|
1662
|
-
dark: Color.transparent('tab.activeForeground', 0.5),
|
|
1663
|
-
light: Color.transparent('tab.activeForeground', 0.7),
|
|
1664
|
-
hcDark: Color.white,
|
|
1665
|
-
hcLight: '#292929'
|
|
1666
|
-
}, description: 'Active tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1667
|
-
},
|
|
1668
|
-
{
|
|
1669
|
-
id: 'tab.unfocusedInactiveForeground', defaults: {
|
|
1670
|
-
dark: Color.transparent('tab.inactiveForeground', 0.5),
|
|
1671
|
-
light: Color.transparent('tab.inactiveForeground', 0.5),
|
|
1672
|
-
hcDark: Color.white,
|
|
1673
|
-
hcLight: '#292929'
|
|
1674
|
-
}, description: 'Inactive tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1675
|
-
},
|
|
1676
|
-
{
|
|
1677
|
-
id: 'tab.border', defaults: {
|
|
1678
|
-
dark: '#252526',
|
|
1679
|
-
light: '#F3F3F3',
|
|
1680
|
-
hcDark: 'contrastBorder',
|
|
1681
|
-
hcLight: 'contrastBorder'
|
|
1682
|
-
}, description: 'Border to separate tabs from each other. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
id: 'tab.activeBorder',
|
|
1686
|
-
description: 'Border on the bottom of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1687
|
-
},
|
|
1688
|
-
{
|
|
1689
|
-
id: 'tab.unfocusedActiveBorder',
|
|
1690
|
-
defaults: {
|
|
1691
|
-
dark: Color.transparent('tab.activeBorder', 0.5),
|
|
1692
|
-
light: Color.transparent('tab.activeBorder', 0.7)
|
|
1693
|
-
},
|
|
1694
|
-
description: 'Border on the bottom of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1695
|
-
},
|
|
1696
|
-
{
|
|
1697
|
-
id: 'tab.activeBorderTop',
|
|
1698
|
-
defaults: {
|
|
1699
|
-
hcLight: '#B5200D'
|
|
1700
|
-
},
|
|
1701
|
-
description: 'Border to the top of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
id: 'tab.unfocusedActiveBorderTop', defaults: {
|
|
1705
|
-
dark: Color.transparent('tab.activeBorderTop', 0.5),
|
|
1706
|
-
light: Color.transparent('tab.activeBorderTop', 0.7),
|
|
1707
|
-
hcLight: '#B5200D'
|
|
1708
|
-
}, description: 'Border to the top of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1709
|
-
},
|
|
1710
|
-
{
|
|
1711
|
-
id: 'tab.hoverBackground',
|
|
1712
|
-
description: 'Tab background color when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1713
|
-
},
|
|
1714
|
-
{
|
|
1715
|
-
id: 'tab.unfocusedHoverBackground', defaults: {
|
|
1716
|
-
dark: Color.transparent('tab.hoverBackground', 0.5),
|
|
1717
|
-
light: Color.transparent('tab.hoverBackground', 0.7)
|
|
1718
|
-
}, description: 'Tab background color in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1719
|
-
},
|
|
1720
|
-
{
|
|
1721
|
-
id: 'tab.hoverBorder',
|
|
1722
|
-
description: 'Border to highlight tabs when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1723
|
-
},
|
|
1724
|
-
{
|
|
1725
|
-
id: 'tab.unfocusedHoverBorder', defaults: {
|
|
1726
|
-
dark: Color.transparent('tab.hoverBorder', 0.5),
|
|
1727
|
-
light: Color.transparent('tab.hoverBorder', 0.7),
|
|
1728
|
-
hcLight: 'contrastBorder'
|
|
1729
|
-
}, description: 'Border to highlight tabs in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1730
|
-
},
|
|
1731
|
-
{
|
|
1732
|
-
id: 'tab.activeModifiedBorder', defaults: {
|
|
1733
|
-
dark: '#3399CC',
|
|
1734
|
-
light: '#33AAEE',
|
|
1735
|
-
hcLight: 'contrastBorder'
|
|
1736
|
-
}, description: 'Border on the top of modified (dirty) active tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
id: 'tab.inactiveModifiedBorder', defaults: {
|
|
1740
|
-
dark: Color.transparent('tab.activeModifiedBorder', 0.5),
|
|
1741
|
-
light: Color.transparent('tab.activeModifiedBorder', 0.5),
|
|
1742
|
-
hcDark: Color.white,
|
|
1743
|
-
hcLight: 'contrastBorder'
|
|
1744
|
-
}, description: 'Border on the top of modified (dirty) inactive tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
id: 'tab.unfocusedActiveModifiedBorder', defaults: {
|
|
1748
|
-
dark: Color.transparent('tab.activeModifiedBorder', 0.5),
|
|
1749
|
-
light: Color.transparent('tab.activeModifiedBorder', 0.7),
|
|
1750
|
-
hcDark: Color.white,
|
|
1751
|
-
hcLight: 'contrastBorder'
|
|
1752
|
-
}, description: 'Border on the top of modified (dirty) active tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
id: 'tab.unfocusedInactiveModifiedBorder', defaults: {
|
|
1756
|
-
dark: Color.transparent('tab.inactiveModifiedBorder', 0.5),
|
|
1757
|
-
light: Color.transparent('tab.inactiveModifiedBorder', 0.5),
|
|
1758
|
-
hcDark: Color.white,
|
|
1759
|
-
hcLight: 'contrastBorder'
|
|
1760
|
-
}, description: 'Border on the top of modified (dirty) inactive tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1761
|
-
},
|
|
1762
|
-
|
|
1763
|
-
// Status bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#status-bar-colors
|
|
1764
|
-
// Not yet supported:
|
|
1765
|
-
// statusBarItem.prominentForeground, statusBarItem.prominentBackground, statusBarItem.prominentHoverBackground
|
|
1766
|
-
{
|
|
1767
|
-
id: 'statusBar.foreground', defaults: {
|
|
1768
|
-
dark: '#FFFFFF',
|
|
1769
|
-
light: '#FFFFFF',
|
|
1770
|
-
hcDark: '#FFFFFF',
|
|
1771
|
-
hcLight: 'editor.foreground'
|
|
1772
|
-
}, description: 'Status bar foreground color when a workspace is opened. The status bar is shown in the bottom of the window.'
|
|
1773
|
-
},
|
|
1774
|
-
{
|
|
1775
|
-
id: 'statusBar.background', defaults: {
|
|
1776
|
-
dark: '#007ACC',
|
|
1777
|
-
light: '#007ACC'
|
|
1778
|
-
}, description: 'Status bar background color when a workspace is opened. The status bar is shown in the bottom of the window.'
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
id: 'statusBar.noFolderForeground', defaults: {
|
|
1782
|
-
dark: 'statusBar.foreground',
|
|
1783
|
-
light: 'statusBar.foreground',
|
|
1784
|
-
hcDark: 'statusBar.foreground',
|
|
1785
|
-
hcLight: 'statusBar.foreground'
|
|
1786
|
-
}, description: 'Status bar foreground color when no folder is opened. The status bar is shown in the bottom of the window.'
|
|
1787
|
-
},
|
|
1788
|
-
{
|
|
1789
|
-
id: 'statusBar.noFolderBackground', defaults: {
|
|
1790
|
-
dark: '#68217A',
|
|
1791
|
-
light: '#68217A'
|
|
1792
|
-
}, description: 'Status bar background color when no folder is opened. The status bar is shown in the bottom of the window.'
|
|
1793
|
-
},
|
|
1794
|
-
{
|
|
1795
|
-
id: 'statusBar.border', defaults: {
|
|
1796
|
-
hcDark: 'contrastBorder',
|
|
1797
|
-
hcLight: 'contrastBorder'
|
|
1798
|
-
}, description: 'Status bar border color separating to the sidebar and editor. The status bar is shown in the bottom of the window.'
|
|
1799
|
-
},
|
|
1800
|
-
{
|
|
1801
|
-
id: 'statusBar.noFolderBorder', defaults: {
|
|
1802
|
-
dark: 'statusBar.border',
|
|
1803
|
-
light: 'statusBar.border',
|
|
1804
|
-
hcDark: 'statusBar.border',
|
|
1805
|
-
hcLight: 'statusBar.border'
|
|
1806
|
-
}, description: 'Status bar border color separating to the sidebar and editor when no folder is opened. The status bar is shown in the bottom of the window.'
|
|
1807
|
-
},
|
|
1808
|
-
{
|
|
1809
|
-
id: 'statusBarItem.activeBackground', defaults: {
|
|
1810
|
-
dark: Color.rgba(255, 255, 255, 0.18),
|
|
1811
|
-
light: Color.rgba(255, 255, 255, 0.18),
|
|
1812
|
-
hcDark: Color.rgba(255, 255, 255, 0.18),
|
|
1813
|
-
hcLight: Color.rgba(0, 0, 0, 0.18)
|
|
1814
|
-
}, description: 'Status bar item background color when clicking. The status bar is shown in the bottom of the window.'
|
|
1815
|
-
},
|
|
1816
|
-
{
|
|
1817
|
-
id: 'statusBarItem.hoverBackground', defaults: {
|
|
1818
|
-
dark: Color.rgba(255, 255, 255, 0.12),
|
|
1819
|
-
light: Color.rgba(255, 255, 255, 0.12),
|
|
1820
|
-
hcDark: Color.rgba(255, 255, 255, 0.12),
|
|
1821
|
-
hcLight: Color.rgba(0, 0, 0, 0.12)
|
|
1822
|
-
}, description: 'Status bar item background color when hovering. The status bar is shown in the bottom of the window.'
|
|
1823
|
-
},
|
|
1824
|
-
{
|
|
1825
|
-
id: 'statusBarItem.errorBackground', defaults: {
|
|
1826
|
-
dark: Color.darken('errorBackground', 0.4),
|
|
1827
|
-
light: Color.darken('errorBackground', 0.4),
|
|
1828
|
-
hcDark: undefined,
|
|
1829
|
-
hcLight: '#B5200D'
|
|
1830
|
-
}, description: 'Status bar error items background color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window.'
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
id: 'statusBarItem.errorForeground', defaults: {
|
|
1834
|
-
dark: Color.white,
|
|
1835
|
-
light: Color.white,
|
|
1836
|
-
hcDark: Color.white,
|
|
1837
|
-
hcLight: Color.white
|
|
1838
|
-
}, description: 'Status bar error items foreground color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window.'
|
|
1839
|
-
},
|
|
1840
|
-
{
|
|
1841
|
-
id: 'statusBarItem.warningBackground', defaults: {
|
|
1842
|
-
dark: Color.darken('warningBackground', 0.4),
|
|
1843
|
-
light: Color.darken('warningBackground', 0.4),
|
|
1844
|
-
hcDark: undefined,
|
|
1845
|
-
hcLight: '#895503'
|
|
1846
|
-
}, description: 'Status bar warning items background color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.'
|
|
1847
|
-
},
|
|
1848
|
-
{
|
|
1849
|
-
id: 'statusBarItem.warningForeground', defaults: {
|
|
1850
|
-
dark: Color.white,
|
|
1851
|
-
light: Color.white,
|
|
1852
|
-
hcDark: Color.white,
|
|
1853
|
-
hcLight: Color.white
|
|
1854
|
-
}, description: 'Status bar warning items foreground color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.'
|
|
1855
|
-
},
|
|
1856
|
-
|
|
1857
|
-
// Quickinput colors should be aligned with https://code.visualstudio.com/api/references/theme-color#quick-picker
|
|
1858
|
-
// if not yet contributed by Monaco, check runtime css variables to learn.
|
|
1859
|
-
{
|
|
1860
|
-
id: 'quickInput.background', defaults: {
|
|
1861
|
-
dark: 'editorWidget.background',
|
|
1862
|
-
light: 'editorWidget.background',
|
|
1863
|
-
hcDark: 'editorWidget.background',
|
|
1864
|
-
hcLight: 'editorWidget.background'
|
|
1865
|
-
}, description: 'Quick Input background color. The Quick Input widget is the container for views like the color theme picker.'
|
|
1866
|
-
},
|
|
1867
|
-
{
|
|
1868
|
-
id: 'quickInput.foreground', defaults: {
|
|
1869
|
-
dark: 'editorWidget.foreground',
|
|
1870
|
-
light: 'editorWidget.foreground',
|
|
1871
|
-
hcDark: 'editorWidget.foreground',
|
|
1872
|
-
hcLight: 'editorWidget.foreground'
|
|
1873
|
-
}, description: 'Quick Input foreground color. The Quick Input widget is the container for views like the color theme picker.'
|
|
1874
|
-
},
|
|
1875
|
-
{
|
|
1876
|
-
id: 'quickInput.list.focusBackground', defaults: {
|
|
1877
|
-
dark: undefined,
|
|
1878
|
-
light: undefined,
|
|
1879
|
-
hcDark: undefined,
|
|
1880
|
-
hcLight: undefined
|
|
1881
|
-
}, description: 'quickInput.list.focusBackground deprecation. Please use quickInputList.focusBackground instead'
|
|
1882
|
-
},
|
|
1883
|
-
{
|
|
1884
|
-
id: 'quickInputList.focusForeground', defaults: {
|
|
1885
|
-
dark: 'list.activeSelectionForeground',
|
|
1886
|
-
light: 'list.activeSelectionForeground',
|
|
1887
|
-
hcDark: 'list.activeSelectionForeground',
|
|
1888
|
-
hcLight: 'list.activeSelectionForeground'
|
|
1889
|
-
}, description: 'Quick picker foreground color for the focused item'
|
|
1890
|
-
},
|
|
1891
|
-
{
|
|
1892
|
-
id: 'quickInputList.focusBackground', defaults: {
|
|
1893
|
-
dark: 'list.activeSelectionBackground',
|
|
1894
|
-
light: 'list.activeSelectionBackground',
|
|
1895
|
-
hcDark: undefined
|
|
1896
|
-
}, description: 'Quick picker background color for the focused item.'
|
|
1897
|
-
},
|
|
1898
|
-
|
|
1899
|
-
// Panel colors should be aligned with https://code.visualstudio.com/api/references/theme-color#panel-colors
|
|
1900
|
-
{
|
|
1901
|
-
id: 'panel.background', defaults: {
|
|
1902
|
-
dark: 'editor.background', light: 'editor.background', hcDark: 'editor.background', hcLight: 'editor.background'
|
|
1903
|
-
}, description: 'Panel background color. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1904
|
-
},
|
|
1905
|
-
{
|
|
1906
|
-
id: 'panel.border', defaults: {
|
|
1907
|
-
dark: Color.transparent('#808080', 0.35), light: Color.transparent('#808080', 0.35), hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
1908
|
-
}, description: 'Panel border color to separate the panel from the editor. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1909
|
-
},
|
|
1910
|
-
{
|
|
1911
|
-
id: 'panel.dropBackground', defaults: {
|
|
1912
|
-
dark: Color.rgba(255, 255, 255, 0.12), light: Color.transparent('#2677CB', 0.18), hcDark: Color.rgba(255, 255, 255, 0.12)
|
|
1913
|
-
}, description: 'Drag and drop feedback color for the panel title items. The color should have transparency so that the panel entries can still shine through. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1914
|
-
},
|
|
1915
|
-
{
|
|
1916
|
-
id: 'panelTitle.activeForeground', defaults: {
|
|
1917
|
-
dark: '#E7E7E7', light: '#424242', hcDark: Color.white, hcLight: 'editor.foreground'
|
|
1918
|
-
}, description: 'Title color for the active panel. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1919
|
-
},
|
|
1920
|
-
{
|
|
1921
|
-
id: 'panelTitle.inactiveForeground', defaults: {
|
|
1922
|
-
dark: Color.transparent('panelTitle.activeForeground', 0.6), light: Color.transparent('panelTitle.activeForeground', 0.75), hcDark: Color.white, hcLight: 'editor.foreground'
|
|
1923
|
-
}, description: 'Title color for the inactive panel. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1924
|
-
},
|
|
1925
|
-
{
|
|
1926
|
-
id: 'panelTitle.activeBorder', defaults: {
|
|
1927
|
-
dark: 'panelTitle.activeForeground', light: 'panelTitle.activeForeground', hcDark: 'contrastBorder', hcLight: '#B5200D'
|
|
1928
|
-
}, description: 'Border color for the active panel title. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1929
|
-
},
|
|
1930
|
-
{
|
|
1931
|
-
id: 'panelInput.border', defaults: { light: '#ddd' },
|
|
1932
|
-
description: 'Input box border for inputs in the panel.'
|
|
1933
|
-
},
|
|
1934
|
-
{
|
|
1935
|
-
id: 'imagePreview.border', defaults: {
|
|
1936
|
-
dark: Color.transparent('#808080', 0.35), light: Color.transparent('#808080', 0.35), hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
1937
|
-
}, description: 'Border color for image in image preview.'
|
|
1938
|
-
},
|
|
1939
|
-
|
|
1940
|
-
// Title Bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#title-bar-colors
|
|
1941
|
-
{
|
|
1942
|
-
id: 'titleBar.activeForeground', defaults: {
|
|
1943
|
-
dark: '#CCCCCC',
|
|
1944
|
-
light: '#333333',
|
|
1945
|
-
hcDark: '#FFFFFF',
|
|
1946
|
-
hcLight: '#292929'
|
|
1947
|
-
}, description: 'Title bar foreground when the window is active. Note that this color is currently only supported on macOS.'
|
|
1948
|
-
},
|
|
1949
|
-
{
|
|
1950
|
-
id: 'titleBar.inactiveForeground', defaults: {
|
|
1951
|
-
dark: Color.transparent('titleBar.activeForeground', 0.6),
|
|
1952
|
-
light: Color.transparent('titleBar.activeForeground', 0.6),
|
|
1953
|
-
hcLight: '#292929'
|
|
1954
|
-
}, description: 'Title bar foreground when the window is inactive. Note that this color is currently only supported on macOS.'
|
|
1955
|
-
},
|
|
1956
|
-
{
|
|
1957
|
-
id: 'titleBar.activeBackground', defaults: {
|
|
1958
|
-
dark: '#3C3C3C',
|
|
1959
|
-
light: '#DDDDDD',
|
|
1960
|
-
hcDark: '#000000',
|
|
1961
|
-
hcLight: '#FFFFFF'
|
|
1962
|
-
}, description: 'Title bar background when the window is active. Note that this color is currently only supported on macOS.'
|
|
1963
|
-
},
|
|
1964
|
-
{
|
|
1965
|
-
id: 'titleBar.inactiveBackground', defaults: {
|
|
1966
|
-
dark: Color.transparent('titleBar.activeBackground', 0.6),
|
|
1967
|
-
light: Color.transparent('titleBar.activeBackground', 0.6)
|
|
1968
|
-
}, description: 'Title bar background when the window is inactive. Note that this color is currently only supported on macOS.'
|
|
1969
|
-
},
|
|
1970
|
-
{
|
|
1971
|
-
id: 'titleBar.border', defaults: {
|
|
1972
|
-
hcDark: 'contrastBorder',
|
|
1973
|
-
hcLight: 'contrastBorder'
|
|
1974
|
-
}, description: 'Title bar border color. Note that this color is currently only supported on macOS.'
|
|
1975
|
-
},
|
|
1976
|
-
|
|
1977
|
-
// Menu Bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#menu-bar-colors
|
|
1978
|
-
{
|
|
1979
|
-
id: 'menubar.selectionForeground', defaults: {
|
|
1980
|
-
dark: 'titleBar.activeForeground',
|
|
1981
|
-
light: 'titleBar.activeForeground',
|
|
1982
|
-
hcDark: 'titleBar.activeForeground',
|
|
1983
|
-
hcLight: 'titleBar.activeForeground'
|
|
1984
|
-
}, description: 'Foreground color of the selected menu item in the menubar.'
|
|
1985
|
-
},
|
|
1986
|
-
{
|
|
1987
|
-
id: 'menubar.selectionBackground', defaults: {
|
|
1988
|
-
dark: 'toolbar.hoverBackground',
|
|
1989
|
-
light: 'toolbar.hoverBackground'
|
|
1990
|
-
}, description: 'Background color of the selected menu item in the menubar.'
|
|
1991
|
-
},
|
|
1992
|
-
{
|
|
1993
|
-
id: 'menubar.selectionBorder', defaults: {
|
|
1994
|
-
hcDark: 'activeContrastBorder', hcLight: 'activeContrastBorder'
|
|
1995
|
-
}, description: 'Border color of the selected menu item in the menubar.'
|
|
1996
|
-
},
|
|
1997
|
-
{
|
|
1998
|
-
id: 'menu.border', defaults: {
|
|
1999
|
-
hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
2000
|
-
}, description: 'Border color of menus.'
|
|
2001
|
-
},
|
|
2002
|
-
{
|
|
2003
|
-
id: 'menu.foreground', defaults: {
|
|
2004
|
-
dark: 'dropdown.foreground', light: 'foreground', hcDark: 'dropdown.foreground', hcLight: 'dropdown.foreground'
|
|
2005
|
-
},
|
|
2006
|
-
description: 'Foreground color of menu items.'
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
id: 'menu.background', defaults: {
|
|
2010
|
-
dark: 'dropdown.background', light: 'dropdown.background', hcDark: 'dropdown.background', hcLight: 'dropdown.background'
|
|
2011
|
-
}, description: 'Background color of menu items.'
|
|
2012
|
-
},
|
|
2013
|
-
{
|
|
2014
|
-
id: 'menu.selectionForeground', defaults: {
|
|
2015
|
-
dark: 'list.activeSelectionForeground', light: 'list.activeSelectionForeground', hcDark: 'list.activeSelectionForeground', hcLight: 'list.activeSelectionForeground'
|
|
2016
|
-
}, description: 'Foreground color of the selected menu item in menus.'
|
|
2017
|
-
},
|
|
2018
|
-
{
|
|
2019
|
-
id: 'menu.selectionBackground', defaults: {
|
|
2020
|
-
dark: 'list.activeSelectionBackground', light: 'list.activeSelectionBackground', hcDark: 'list.activeSelectionBackground', hcLight: 'list.activeSelectionBackground'
|
|
2021
|
-
},
|
|
2022
|
-
description: 'Background color of the selected menu item in menus.'
|
|
2023
|
-
},
|
|
2024
|
-
{
|
|
2025
|
-
id: 'menu.selectionBorder', defaults: {
|
|
2026
|
-
hcDark: 'activeContrastBorder', hcLight: 'activeContrastBorder'
|
|
2027
|
-
}, description: 'Border color of the selected menu item in menus.'
|
|
2028
|
-
},
|
|
2029
|
-
{
|
|
2030
|
-
id: 'menu.separatorBackground', defaults: {
|
|
2031
|
-
dark: '#BBBBBB', light: '#888888', hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
2032
|
-
},
|
|
2033
|
-
description: 'Color of a separator menu item in menus.'
|
|
2034
|
-
},
|
|
2035
|
-
|
|
2036
|
-
// Welcome Page colors should be aligned with https://code.visualstudio.com/api/references/theme-color#welcome-page
|
|
2037
|
-
{ id: 'welcomePage.background', description: 'Background color for the Welcome page.' },
|
|
2038
|
-
{ id: 'welcomePage.buttonBackground', defaults: { dark: Color.rgba(0, 0, 0, .2), light: Color.rgba(0, 0, 0, .04), hcDark: Color.black, hcLight: Color.white }, description: 'Background color for the buttons on the Welcome page.' },
|
|
2039
|
-
{ id: 'welcomePage.buttonHoverBackground', defaults: { dark: Color.rgba(200, 235, 255, .072), light: Color.rgba(0, 0, 0, .10) }, description: 'Hover background color for the buttons on the Welcome page.' },
|
|
2040
|
-
{ id: 'walkThrough.embeddedEditorBackground', defaults: { dark: Color.rgba(0, 0, 0, .4), light: '#f4f4f4' }, description: 'Background color for the embedded editors on the Interactive Playground.' },
|
|
2041
|
-
|
|
2042
|
-
// Dropdown colors should be aligned with https://code.visualstudio.com/api/references/theme-color#dropdown-control
|
|
2043
|
-
|
|
2044
|
-
{
|
|
2045
|
-
id: 'dropdown.background', defaults: {
|
|
2046
|
-
light: Color.white,
|
|
2047
|
-
dark: '#3C3C3C',
|
|
2048
|
-
hcDark: Color.black,
|
|
2049
|
-
hcLight: Color.white
|
|
2050
|
-
}, description: 'Dropdown background.'
|
|
2051
|
-
},
|
|
2052
|
-
{
|
|
2053
|
-
id: 'dropdown.listBackground', defaults: {
|
|
2054
|
-
hcDark: Color.black,
|
|
2055
|
-
hcLight: Color.white
|
|
2056
|
-
}, description: 'Dropdown list background.'
|
|
2057
|
-
},
|
|
2058
|
-
{
|
|
2059
|
-
id: 'dropdown.foreground', defaults: {
|
|
2060
|
-
dark: '#F0F0F0',
|
|
2061
|
-
hcDark: Color.white,
|
|
2062
|
-
hcLight: 'foreground'
|
|
2063
|
-
}, description: 'Dropdown foreground.'
|
|
2064
|
-
},
|
|
2065
|
-
{
|
|
2066
|
-
id: 'dropdown.border', defaults: {
|
|
2067
|
-
light: '#CECECE',
|
|
2068
|
-
dark: 'dropdown.background',
|
|
2069
|
-
hcDark: 'contrastBorder',
|
|
2070
|
-
hcLight: 'contrastBorder'
|
|
2071
|
-
}, description: 'Dropdown border.'
|
|
2072
|
-
},
|
|
2073
|
-
|
|
2074
|
-
// Settings Editor colors should be aligned with https://code.visualstudio.com/api/references/theme-color#settings-editor-colors
|
|
2075
|
-
{
|
|
2076
|
-
id: 'settings.headerForeground', defaults: {
|
|
2077
|
-
light: '#444444', dark: '#e7e7e7', hcDark: '#ffffff', hcLight: '#292929'
|
|
2078
|
-
}, description: 'The foreground color for a section header or active title.'
|
|
2079
|
-
},
|
|
2080
|
-
{
|
|
2081
|
-
id: 'settings.modifiedItemIndicator', defaults: {
|
|
2082
|
-
light: Color.rgba(102, 175, 224),
|
|
2083
|
-
dark: Color.rgba(12, 125, 157),
|
|
2084
|
-
hcDark: Color.rgba(0, 73, 122),
|
|
2085
|
-
hcLight: Color.rgba(102, 175, 224)
|
|
2086
|
-
}, description: 'The color of the modified setting indicator.'
|
|
2087
|
-
},
|
|
2088
|
-
{
|
|
2089
|
-
id: 'settings.dropdownBackground', defaults: {
|
|
2090
|
-
dark: 'dropdown.background', light: 'dropdown.background', hcDark: 'dropdown.background', hcLight: 'dropdown.background'
|
|
2091
|
-
},
|
|
2092
|
-
description: 'Settings editor dropdown background.'
|
|
2093
|
-
},
|
|
2094
|
-
{
|
|
2095
|
-
id: 'settings.dropdownForeground', defaults: {
|
|
2096
|
-
dark: 'dropdown.foreground', light: 'dropdown.foreground', hcDark: 'dropdown.foreground', hcLight: 'dropdown.foreground'
|
|
2097
|
-
}, description: 'Settings editor dropdown foreground.'
|
|
2098
|
-
},
|
|
2099
|
-
{
|
|
2100
|
-
id: 'settings.dropdownBorder', defaults: {
|
|
2101
|
-
dark: 'dropdown.border', light: 'dropdown.border', hcDark: 'dropdown.border', hcLight: 'dropdown.border'
|
|
2102
|
-
}, description: 'Settings editor dropdown border.'
|
|
2103
|
-
},
|
|
2104
|
-
{
|
|
2105
|
-
id: 'settings.dropdownListBorder', defaults: {
|
|
2106
|
-
dark: 'editorWidget.border', light: 'editorWidget.border', hcDark: 'editorWidget.border', hcLight: 'editorWidget.border'
|
|
2107
|
-
}, description: 'Settings editor dropdown list border. This surrounds the options and separates the options from the description.'
|
|
2108
|
-
},
|
|
2109
|
-
{
|
|
2110
|
-
id: 'settings.checkboxBackground', defaults: {
|
|
2111
|
-
dark: 'checkbox.background', light: 'checkbox.background', hcDark: 'checkbox.background', hcLight: 'checkbox.background'
|
|
2112
|
-
}, description: 'Settings editor checkbox background.'
|
|
2113
|
-
},
|
|
2114
|
-
{
|
|
2115
|
-
id: 'settings.checkboxForeground', defaults: {
|
|
2116
|
-
dark: 'checkbox.foreground', light: 'checkbox.foreground', hcDark: 'checkbox.foreground', hcLight: 'checkbox.foreground'
|
|
2117
|
-
}, description: 'Settings editor checkbox foreground.'
|
|
2118
|
-
},
|
|
2119
|
-
{
|
|
2120
|
-
id: 'settings.checkboxBorder', defaults: {
|
|
2121
|
-
dark: 'checkbox.border', light: 'checkbox.border', hcDark: 'checkbox.border', hcLight: 'checkbox.border'
|
|
2122
|
-
}, description: 'Settings editor checkbox border.'
|
|
2123
|
-
},
|
|
2124
|
-
{
|
|
2125
|
-
id: 'settings.textInputBackground', defaults: {
|
|
2126
|
-
dark: 'input.background', light: 'input.background', hcDark: 'input.background', hcLight: 'input.background'
|
|
2127
|
-
}, description: 'Settings editor text input box background.'
|
|
2128
|
-
},
|
|
2129
|
-
{
|
|
2130
|
-
id: 'settings.textInputForeground', defaults: {
|
|
2131
|
-
dark: 'input.foreground', light: 'input.foreground', hcDark: 'input.foreground', hcLight: 'input.foreground'
|
|
2132
|
-
}, description: 'Settings editor text input box foreground.'
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
id: 'settings.textInputBorder', defaults: {
|
|
2136
|
-
dark: 'input.border', light: 'input.border', hcDark: 'input.border', hcLight: 'input.background'
|
|
2137
|
-
}, description: 'Settings editor text input box border.'
|
|
2138
|
-
},
|
|
2139
|
-
{
|
|
2140
|
-
id: 'settings.numberInputBackground', defaults: {
|
|
2141
|
-
dark: 'input.background', light: 'input.background', hcDark: 'input.background', hcLight: 'input.background'
|
|
2142
|
-
}, description: 'Settings editor number input box background.'
|
|
2143
|
-
},
|
|
2144
|
-
{
|
|
2145
|
-
id: 'settings.numberInputForeground', defaults: {
|
|
2146
|
-
dark: 'input.foreground', light: 'input.foreground', hcDark: 'input.foreground', hcLight: 'input.foreground'
|
|
2147
|
-
}, description: 'Settings editor number input box foreground.'
|
|
2148
|
-
},
|
|
2149
|
-
{
|
|
2150
|
-
id: 'settings.numberInputBorder', defaults: {
|
|
2151
|
-
dark: 'input.border', light: 'input.border', hcDark: 'input.border', hcLight: 'input.border'
|
|
2152
|
-
}, description: 'Settings editor number input box border.'
|
|
2153
|
-
},
|
|
2154
|
-
{
|
|
2155
|
-
id: 'settings.focusedRowBackground', defaults: {
|
|
2156
|
-
dark: Color.transparent('#808080', 0.14),
|
|
2157
|
-
light: Color.transparent('#808080', 0.03),
|
|
2158
|
-
hcDark: undefined,
|
|
2159
|
-
hcLight: undefined
|
|
2160
|
-
}, description: 'The background color of a settings row when focused.'
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
id: 'settings.rowHoverBackground', defaults: {
|
|
2164
|
-
dark: Color.transparent('#808080', 0.07),
|
|
2165
|
-
light: Color.transparent('#808080', 0.05),
|
|
2166
|
-
hcDark: undefined,
|
|
2167
|
-
hcLight: undefined
|
|
2168
|
-
}, description: 'The background color of a settings row when hovered.'
|
|
2169
|
-
},
|
|
2170
|
-
{
|
|
2171
|
-
id: 'settings.focusedRowBorder', defaults: {
|
|
2172
|
-
dark: Color.rgba(255, 255, 255, 0.12),
|
|
2173
|
-
light: Color.rgba(0, 0, 0, 0.12),
|
|
2174
|
-
hcDark: 'focusBorder',
|
|
2175
|
-
hcLight: 'focusBorder'
|
|
2176
|
-
}, description: "The color of the row's top and bottom border when the row is focused."
|
|
2177
|
-
},
|
|
2178
|
-
// Toolbar Action colors should be aligned with https://code.visualstudio.com/api/references/theme-color#action-colors
|
|
2179
|
-
{
|
|
2180
|
-
id: 'toolbar.hoverBackground', defaults: {
|
|
2181
|
-
dark: '#5a5d5e50', light: '#b8b8b850', hcDark: undefined, hcLight: undefined
|
|
2182
|
-
}, description: 'Toolbar background when hovering over actions using the mouse.'
|
|
2183
|
-
},
|
|
2184
|
-
|
|
2185
|
-
// Theia Variable colors
|
|
2186
|
-
{
|
|
2187
|
-
id: 'variable.name.color', defaults: {
|
|
2188
|
-
dark: '#C586C0',
|
|
2189
|
-
light: '#9B46B0',
|
|
2190
|
-
hcDark: '#C586C0'
|
|
2191
|
-
},
|
|
2192
|
-
description: 'Color of a variable name.'
|
|
2193
|
-
},
|
|
2194
|
-
{
|
|
2195
|
-
id: 'variable.value.color', defaults: {
|
|
2196
|
-
dark: Color.rgba(204, 204, 204, 0.6),
|
|
2197
|
-
light: Color.rgba(108, 108, 108, 0.8),
|
|
2198
|
-
hcDark: Color.rgba(204, 204, 204, 0.6)
|
|
2199
|
-
},
|
|
2200
|
-
description: 'Color of a variable value.'
|
|
2201
|
-
},
|
|
2202
|
-
{
|
|
2203
|
-
id: 'variable.number.variable.color', defaults: {
|
|
2204
|
-
dark: '#B5CEA8',
|
|
2205
|
-
light: '#09885A',
|
|
2206
|
-
hcDark: '#B5CEA8'
|
|
2207
|
-
},
|
|
2208
|
-
description: 'Value color of a number variable'
|
|
2209
|
-
},
|
|
2210
|
-
{
|
|
2211
|
-
id: 'variable.boolean.variable.color', defaults: {
|
|
2212
|
-
dark: '#4E94CE',
|
|
2213
|
-
light: '#0000FF',
|
|
2214
|
-
hcDark: '#4E94CE'
|
|
2215
|
-
},
|
|
2216
|
-
description: 'Value color of a boolean variable'
|
|
2217
|
-
},
|
|
2218
|
-
{
|
|
2219
|
-
id: 'variable.string.variable.color', defaults: {
|
|
2220
|
-
dark: '#CE9178',
|
|
2221
|
-
light: '#A31515',
|
|
2222
|
-
hcDark: '#CE9178'
|
|
2223
|
-
},
|
|
2224
|
-
description: 'Value color of a string variable'
|
|
2225
|
-
},
|
|
2226
|
-
|
|
2227
|
-
// Theia ANSI colors
|
|
2228
|
-
{
|
|
2229
|
-
id: 'ansi.black.color', defaults: {
|
|
2230
|
-
dark: '#A0A0A0',
|
|
2231
|
-
light: Color.rgba(128, 128, 128),
|
|
2232
|
-
hcDark: '#A0A0A0'
|
|
2233
|
-
},
|
|
2234
|
-
description: 'ANSI black color'
|
|
2235
|
-
},
|
|
2236
|
-
{
|
|
2237
|
-
id: 'ansi.red.color', defaults: {
|
|
2238
|
-
dark: '#A74747',
|
|
2239
|
-
light: '#BE1717',
|
|
2240
|
-
hcDark: '#A74747'
|
|
2241
|
-
},
|
|
2242
|
-
description: 'ANSI red color'
|
|
2243
|
-
},
|
|
2244
|
-
{
|
|
2245
|
-
id: 'ansi.green.color', defaults: {
|
|
2246
|
-
dark: '#348F34',
|
|
2247
|
-
light: '#338A2F',
|
|
2248
|
-
hcDark: '#348F34'
|
|
2249
|
-
},
|
|
2250
|
-
description: 'ANSI green color'
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
id: 'ansi.yellow.color', defaults: {
|
|
2254
|
-
dark: '#5F4C29',
|
|
2255
|
-
light: '#BEB817',
|
|
2256
|
-
hcDark: '#5F4C29'
|
|
2257
|
-
},
|
|
2258
|
-
description: 'ANSI yellow color'
|
|
2259
|
-
},
|
|
2260
|
-
{
|
|
2261
|
-
id: 'ansi.blue.color', defaults: {
|
|
2262
|
-
dark: '#6286BB',
|
|
2263
|
-
light: Color.rgba(0, 0, 139),
|
|
2264
|
-
hcDark: '#6286BB'
|
|
2265
|
-
},
|
|
2266
|
-
description: 'ANSI blue color'
|
|
2267
|
-
},
|
|
2268
|
-
{
|
|
2269
|
-
id: 'ansi.magenta.color', defaults: {
|
|
2270
|
-
dark: '#914191',
|
|
2271
|
-
light: Color.rgba(139, 0, 139),
|
|
2272
|
-
hcDark: '#914191'
|
|
2273
|
-
},
|
|
2274
|
-
description: 'ANSI magenta color'
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
id: 'ansi.cyan.color', defaults: {
|
|
2278
|
-
dark: '#218D8D',
|
|
2279
|
-
light: Color.rgba(0, 139, 139),
|
|
2280
|
-
hcDark: '#218D8D'
|
|
2281
|
-
},
|
|
2282
|
-
description: 'ANSI cyan color'
|
|
2283
|
-
},
|
|
2284
|
-
{
|
|
2285
|
-
id: 'ansi.white.color', defaults: {
|
|
2286
|
-
dark: '#707070',
|
|
2287
|
-
light: '#BDBDBD',
|
|
2288
|
-
hcDark: '#707070'
|
|
2289
|
-
},
|
|
2290
|
-
description: 'ANSI white color'
|
|
2291
|
-
},
|
|
2292
|
-
|
|
2293
|
-
// Theia defaults
|
|
2294
|
-
// Base
|
|
2295
|
-
{
|
|
2296
|
-
id: 'errorBackground',
|
|
2297
|
-
defaults: {
|
|
2298
|
-
dark: 'inputValidation.errorBackground',
|
|
2299
|
-
light: 'inputValidation.errorBackground',
|
|
2300
|
-
hcDark: 'inputValidation.errorBackground'
|
|
2301
|
-
}, description: 'Background color of error widgets (like alerts or notifications).'
|
|
2302
|
-
},
|
|
2303
|
-
{
|
|
2304
|
-
id: 'successBackground',
|
|
2305
|
-
defaults: {
|
|
2306
|
-
dark: 'editorGutter.addedBackground',
|
|
2307
|
-
light: 'editorGutter.addedBackground',
|
|
2308
|
-
hcDark: 'editorGutter.addedBackground'
|
|
2309
|
-
}, description: 'Background color of success widgets (like alerts or notifications).'
|
|
2310
|
-
},
|
|
2311
|
-
{
|
|
2312
|
-
id: 'warningBackground',
|
|
2313
|
-
defaults: {
|
|
2314
|
-
dark: 'editorWarning.foreground',
|
|
2315
|
-
light: 'editorWarning.foreground',
|
|
2316
|
-
hcDark: 'editorWarning.border'
|
|
2317
|
-
}, description: 'Background color of warning widgets (like alerts or notifications).'
|
|
2318
|
-
},
|
|
2319
|
-
{
|
|
2320
|
-
id: 'warningForeground',
|
|
2321
|
-
defaults: {
|
|
2322
|
-
dark: 'inputValidation.warningBackground',
|
|
2323
|
-
light: 'inputValidation.warningBackground',
|
|
2324
|
-
hcDark: 'inputValidation.warningBackground'
|
|
2325
|
-
}, description: 'Foreground color of warning widgets (like alerts or notifications).'
|
|
2326
|
-
},
|
|
2327
|
-
// Statusbar
|
|
2328
|
-
{
|
|
2329
|
-
id: 'statusBar.offlineBackground',
|
|
2330
|
-
defaults: {
|
|
2331
|
-
dark: 'editorWarning.foreground',
|
|
2332
|
-
light: 'editorWarning.foreground',
|
|
2333
|
-
hcDark: 'editorWarning.foreground',
|
|
2334
|
-
hcLight: 'editorWarning.foreground'
|
|
2335
|
-
}, description: 'Background of hovered statusbar item in case the theia server is offline.'
|
|
2336
|
-
},
|
|
2337
|
-
{
|
|
2338
|
-
id: 'statusBar.offlineForeground',
|
|
2339
|
-
defaults: {
|
|
2340
|
-
dark: 'editor.background',
|
|
2341
|
-
light: 'editor.background',
|
|
2342
|
-
hcDark: 'editor.background',
|
|
2343
|
-
hcLight: 'editor.background'
|
|
2344
|
-
}, description: 'Background of hovered statusbar item in case the theia server is offline.'
|
|
2345
|
-
},
|
|
2346
|
-
{
|
|
2347
|
-
id: 'statusBarItem.offlineHoverBackground',
|
|
2348
|
-
defaults: {
|
|
2349
|
-
dark: Color.lighten('statusBar.offlineBackground', 0.4),
|
|
2350
|
-
light: Color.lighten('statusBar.offlineBackground', 0.4),
|
|
2351
|
-
hcDark: Color.lighten('statusBar.offlineBackground', 0.4),
|
|
2352
|
-
hcLight: Color.lighten('statusBar.offlineBackground', 0.4)
|
|
2353
|
-
}, description: 'Background of hovered statusbar item in case the theia server is offline.'
|
|
2354
|
-
},
|
|
2355
|
-
{
|
|
2356
|
-
id: 'statusBarItem.offlineActiveBackground',
|
|
2357
|
-
defaults: {
|
|
2358
|
-
dark: Color.lighten('statusBar.offlineBackground', 0.6),
|
|
2359
|
-
light: Color.lighten('statusBar.offlineBackground', 0.6),
|
|
2360
|
-
hcDark: Color.lighten('statusBar.offlineBackground', 0.6),
|
|
2361
|
-
hcLight: Color.lighten('statusBar.offlineBackground', 0.6)
|
|
2362
|
-
}, description: 'Background of active statusbar item in case the theia server is offline.'
|
|
2363
|
-
},
|
|
2364
|
-
{
|
|
2365
|
-
id: 'statusBarItem.remoteBackground',
|
|
2366
|
-
defaults: {
|
|
2367
|
-
dark: 'activityBarBadge.background',
|
|
2368
|
-
light: 'activityBarBadge.background',
|
|
2369
|
-
hcDark: 'activityBarBadge.background',
|
|
2370
|
-
hcLight: 'activityBarBadge.background'
|
|
2371
|
-
}, description: 'Background color for the remote indicator on the status bar.'
|
|
2372
|
-
},
|
|
2373
|
-
{
|
|
2374
|
-
id: 'statusBarItem.remoteForeground',
|
|
2375
|
-
defaults: {
|
|
2376
|
-
dark: 'activityBarBadge.foreground',
|
|
2377
|
-
light: 'activityBarBadge.foreground',
|
|
2378
|
-
hcDark: 'activityBarBadge.foreground',
|
|
2379
|
-
hcLight: 'activityBarBadge.foreground'
|
|
2380
|
-
}, description: 'Foreground color for the remote indicator on the status bar.'
|
|
2381
|
-
},
|
|
2382
|
-
// Buttons
|
|
2383
|
-
{
|
|
2384
|
-
id: 'secondaryButton.foreground',
|
|
2385
|
-
defaults: {
|
|
2386
|
-
dark: 'dropdown.foreground',
|
|
2387
|
-
light: 'dropdown.foreground',
|
|
2388
|
-
hcDark: 'dropdown.foreground',
|
|
2389
|
-
hcLight: 'dropdown.foreground'
|
|
2390
|
-
}, description: 'Foreground color of secondary buttons.'
|
|
2391
|
-
},
|
|
2392
|
-
{
|
|
2393
|
-
id: 'secondaryButton.disabledForeground',
|
|
2394
|
-
defaults: {
|
|
2395
|
-
dark: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2396
|
-
light: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2397
|
-
hcDark: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2398
|
-
hcLight: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2399
|
-
}, description: 'Foreground color of secondary buttons.'
|
|
2400
|
-
},
|
|
2401
|
-
{
|
|
2402
|
-
id: 'secondaryButton.background',
|
|
2403
|
-
defaults: {
|
|
2404
|
-
dark: Color.lighten('dropdown.background', 0.5),
|
|
2405
|
-
light: Color.lighten('dropdown.background', 0.5)
|
|
2406
|
-
}, description: 'Background color of secondary buttons.'
|
|
2407
|
-
},
|
|
2408
|
-
{
|
|
2409
|
-
id: 'secondaryButton.hoverBackground',
|
|
2410
|
-
defaults: {
|
|
2411
|
-
dark: Color.lighten('secondaryButton.background', 0.2),
|
|
2412
|
-
light: Color.lighten('secondaryButton.background', 0.2)
|
|
2413
|
-
}, description: 'Background color when hovering secondary buttons.'
|
|
2414
|
-
},
|
|
2415
|
-
{
|
|
2416
|
-
id: 'secondaryButton.disabledBackground',
|
|
2417
|
-
defaults: {
|
|
2418
|
-
dark: Color.transparent('secondaryButton.background', 0.6),
|
|
2419
|
-
light: Color.transparent('secondaryButton.background', 0.6)
|
|
2420
|
-
}, description: 'Background color when hovering secondary buttons.'
|
|
2421
|
-
},
|
|
2422
|
-
{
|
|
2423
|
-
id: 'button.disabledForeground',
|
|
2424
|
-
defaults: {
|
|
2425
|
-
dark: Color.transparent('button.foreground', 0.5),
|
|
2426
|
-
light: Color.transparent('button.foreground', 0.5),
|
|
2427
|
-
hcDark: Color.transparent('button.foreground', 0.5)
|
|
2428
|
-
}, description: 'Foreground color of secondary buttons.'
|
|
2429
|
-
},
|
|
2430
|
-
{
|
|
2431
|
-
id: 'button.disabledBackground',
|
|
2432
|
-
defaults: {
|
|
2433
|
-
dark: Color.transparent('button.background', 0.5),
|
|
2434
|
-
light: Color.transparent('button.background', 0.5)
|
|
2435
|
-
}, description: 'Background color of secondary buttons.'
|
|
2436
|
-
},
|
|
2437
|
-
{
|
|
2438
|
-
id: 'editorGutter.commentRangeForeground',
|
|
2439
|
-
defaults: {
|
|
2440
|
-
dark: '#c5c5c5',
|
|
2441
|
-
light: '#c5c5c5',
|
|
2442
|
-
hcDark: Color.white,
|
|
2443
|
-
hcLight: Color.white
|
|
2444
|
-
}, description: 'Editor gutter decoration color for commenting ranges.'
|
|
2445
|
-
},
|
|
2446
|
-
{
|
|
2447
|
-
id: 'breadcrumb.foreground',
|
|
2448
|
-
defaults: {
|
|
2449
|
-
dark: Color.transparent('foreground', 0.8),
|
|
2450
|
-
light: Color.transparent('foreground', 0.8),
|
|
2451
|
-
hcDark: Color.transparent('foreground', 0.8),
|
|
2452
|
-
hcLight: Color.transparent('foreground', 0.8)
|
|
2453
|
-
},
|
|
2454
|
-
description: 'Color of breadcrumb item text'
|
|
2455
|
-
},
|
|
2456
|
-
{
|
|
2457
|
-
id: 'breadcrumb.background',
|
|
2458
|
-
defaults: {
|
|
2459
|
-
dark: 'editor.background',
|
|
2460
|
-
light: 'editor.background',
|
|
2461
|
-
hcDark: 'editor.background',
|
|
2462
|
-
hcLight: 'editor.background'
|
|
2463
|
-
},
|
|
2464
|
-
description: 'Color of breadcrumb item background'
|
|
2465
|
-
},
|
|
2466
|
-
{
|
|
2467
|
-
id: 'breadcrumb.focusForeground',
|
|
2468
|
-
defaults: {
|
|
2469
|
-
dark: Color.lighten('foreground', 0.1),
|
|
2470
|
-
light: Color.darken('foreground', 0.2),
|
|
2471
|
-
hcDark: Color.lighten('foreground', 0.1),
|
|
2472
|
-
hcLight: Color.lighten('foreground', 0.1)
|
|
2473
|
-
},
|
|
2474
|
-
description: 'Color of breadcrumb item text when focused'
|
|
2475
|
-
},
|
|
2476
|
-
{
|
|
2477
|
-
id: 'breadcrumb.activeSelectionForeground',
|
|
2478
|
-
defaults: {
|
|
2479
|
-
dark: Color.lighten('foreground', 0.1),
|
|
2480
|
-
light: Color.darken('foreground', 0.2),
|
|
2481
|
-
hcDark: Color.lighten('foreground', 0.1),
|
|
2482
|
-
hcLight: Color.lighten('foreground', 0.1)
|
|
2483
|
-
},
|
|
2484
|
-
description: 'Color of selected breadcrumb item'
|
|
2485
|
-
},
|
|
2486
|
-
{
|
|
2487
|
-
id: 'breadcrumbPicker.background',
|
|
2488
|
-
defaults: {
|
|
2489
|
-
dark: 'editorWidget.background',
|
|
2490
|
-
light: 'editorWidget.background',
|
|
2491
|
-
hcDark: 'editorWidget.background',
|
|
2492
|
-
hcLight: 'editorWidget.background'
|
|
2493
|
-
},
|
|
2494
|
-
description: 'Background color of breadcrumb item picker'
|
|
2495
|
-
},
|
|
2496
|
-
{
|
|
2497
|
-
id: 'mainToolbar.background',
|
|
2498
|
-
defaults: {
|
|
2499
|
-
dark: Color.lighten('activityBar.background', 0.1),
|
|
2500
|
-
light: Color.darken('activityBar.background', 0.1),
|
|
2501
|
-
hcDark: Color.lighten('activityBar.background', 0.1),
|
|
2502
|
-
hcLight: Color.lighten('activityBar.background', 0.1)
|
|
2503
|
-
},
|
|
2504
|
-
description: 'Background color of shell\'s global toolbar'
|
|
2505
|
-
},
|
|
2506
|
-
{
|
|
2507
|
-
id: 'mainToolbar.foreground', defaults: {
|
|
2508
|
-
dark: Color.darken('activityBar.foreground', 0.1),
|
|
2509
|
-
light: Color.lighten('activityBar.foreground', 0.1),
|
|
2510
|
-
hcDark: Color.lighten('activityBar.foreground', 0.1),
|
|
2511
|
-
hcLight: Color.lighten('activityBar.foreground', 0.1),
|
|
2512
|
-
}, description: 'Foreground color of active toolbar item',
|
|
2513
|
-
},
|
|
2514
|
-
{
|
|
2515
|
-
id: 'editorHoverWidgetInternalBorder',
|
|
2516
|
-
defaults: {
|
|
2517
|
-
dark: Color.transparent('editorHoverWidget.border', 0.5),
|
|
2518
|
-
light: Color.transparent('editorHoverWidget.border', 0.5),
|
|
2519
|
-
hcDark: Color.transparent('editorHoverWidget.border', 0.5),
|
|
2520
|
-
hcLight: Color.transparent('editorHoverWidget.border', 0.5)
|
|
2521
|
-
},
|
|
2522
|
-
description: 'The border between subelements of a hover widget'
|
|
2523
|
-
}
|
|
2524
|
-
);
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 TypeFox and others.
|
|
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
|
+
/* eslint-disable max-len, @typescript-eslint/indent */
|
|
18
|
+
|
|
19
|
+
import debounce = require('lodash.debounce');
|
|
20
|
+
import { injectable, inject, optional } from 'inversify';
|
|
21
|
+
import { MAIN_MENU_BAR, MANAGE_MENU, MenuContribution, MenuModelRegistry, ACCOUNTS_MENU } from '../common/menu';
|
|
22
|
+
import { KeybindingContribution, KeybindingRegistry } from './keybinding';
|
|
23
|
+
import { FrontendApplication } from './frontend-application';
|
|
24
|
+
import { FrontendApplicationContribution, OnWillStopAction } from './frontend-application-contribution';
|
|
25
|
+
import { CommandContribution, CommandRegistry, Command } from '../common/command';
|
|
26
|
+
import { UriAwareCommandHandler } from '../common/uri-command-handler';
|
|
27
|
+
import { SelectionService } from '../common/selection-service';
|
|
28
|
+
import { MessageService } from '../common/message-service';
|
|
29
|
+
import { OpenerService, open } from '../browser/opener-service';
|
|
30
|
+
import { ApplicationShell } from './shell/application-shell';
|
|
31
|
+
import { SHELL_TABBAR_CONTEXT_CLOSE, SHELL_TABBAR_CONTEXT_COPY, SHELL_TABBAR_CONTEXT_PIN, SHELL_TABBAR_CONTEXT_SPLIT } from './shell/tab-bars';
|
|
32
|
+
import { AboutDialog } from './about-dialog';
|
|
33
|
+
import * as browser from './browser';
|
|
34
|
+
import URI from '../common/uri';
|
|
35
|
+
import { ContextKey, ContextKeyService } from './context-key-service';
|
|
36
|
+
import { OS, isOSX, isWindows, EOL } from '../common/os';
|
|
37
|
+
import { ResourceContextKey } from './resource-context-key';
|
|
38
|
+
import { UriSelection } from '../common/selection';
|
|
39
|
+
import { StorageService } from './storage-service';
|
|
40
|
+
import { Navigatable, NavigatableWidget } from './navigatable';
|
|
41
|
+
import { QuickViewService } from './quick-input/quick-view-service';
|
|
42
|
+
import { environment } from '@theia/application-package/lib/environment';
|
|
43
|
+
import { IconTheme, IconThemeService } from './icon-theme-service';
|
|
44
|
+
import { ColorContribution } from './color-application-contribution';
|
|
45
|
+
import { ColorRegistry } from './color-registry';
|
|
46
|
+
import { Color } from '../common/color';
|
|
47
|
+
import { CoreConfiguration, CorePreferences } from './core-preferences';
|
|
48
|
+
import { ThemeService } from './theming';
|
|
49
|
+
import { PreferenceService, PreferenceChangeEvent, PreferenceScope } from './preferences';
|
|
50
|
+
import { ClipboardService } from './clipboard-service';
|
|
51
|
+
import { EncodingRegistry } from './encoding-registry';
|
|
52
|
+
import { UTF8 } from '../common/encodings';
|
|
53
|
+
import { EnvVariablesServer } from '../common/env-variables';
|
|
54
|
+
import { AuthenticationService } from './authentication-service';
|
|
55
|
+
import { FormatType, Saveable, SaveOptions } from './saveable';
|
|
56
|
+
import { QuickInputService, QuickPickItem, QuickPickItemOrSeparator, QuickPickSeparator } from './quick-input';
|
|
57
|
+
import { AsyncLocalizationProvider } from '../common/i18n/localization';
|
|
58
|
+
import { nls } from '../common/nls';
|
|
59
|
+
import { CurrentWidgetCommandAdapter } from './shell/current-widget-command-adapter';
|
|
60
|
+
import { ConfirmDialog, confirmExit, ConfirmSaveDialog, Dialog } from './dialogs';
|
|
61
|
+
import { WindowService } from './window/window-service';
|
|
62
|
+
import { FrontendApplicationConfigProvider } from './frontend-application-config-provider';
|
|
63
|
+
import { DecorationStyle } from './decoration-style';
|
|
64
|
+
import { isPinned, Title, togglePinned, Widget } from './widgets';
|
|
65
|
+
import { SaveResourceService } from './save-resource-service';
|
|
66
|
+
import { UserWorkingDirectoryProvider } from './user-working-directory-provider';
|
|
67
|
+
import { UNTITLED_SCHEME, UntitledResourceResolver } from '../common';
|
|
68
|
+
import { LanguageQuickPickService } from './i18n/language-quick-pick-service';
|
|
69
|
+
|
|
70
|
+
export namespace CommonMenus {
|
|
71
|
+
|
|
72
|
+
export const FILE = [...MAIN_MENU_BAR, '1_file'];
|
|
73
|
+
export const FILE_NEW_TEXT = [...FILE, '1_new_text'];
|
|
74
|
+
export const FILE_NEW = [...FILE, '1_new'];
|
|
75
|
+
export const FILE_OPEN = [...FILE, '2_open'];
|
|
76
|
+
export const FILE_SAVE = [...FILE, '3_save'];
|
|
77
|
+
export const FILE_AUTOSAVE = [...FILE, '4_autosave'];
|
|
78
|
+
export const FILE_SETTINGS = [...FILE, '5_settings'];
|
|
79
|
+
export const FILE_SETTINGS_SUBMENU = [...FILE_SETTINGS, '1_settings_submenu'];
|
|
80
|
+
export const FILE_SETTINGS_SUBMENU_OPEN = [...FILE_SETTINGS_SUBMENU, '1_settings_submenu_open'];
|
|
81
|
+
export const FILE_SETTINGS_SUBMENU_THEME = [...FILE_SETTINGS_SUBMENU, '2_settings_submenu_theme'];
|
|
82
|
+
export const FILE_CLOSE = [...FILE, '6_close'];
|
|
83
|
+
|
|
84
|
+
export const FILE_NEW_CONTRIBUTIONS = 'file/newFile';
|
|
85
|
+
|
|
86
|
+
export const EDIT = [...MAIN_MENU_BAR, '2_edit'];
|
|
87
|
+
export const EDIT_UNDO = [...EDIT, '1_undo'];
|
|
88
|
+
export const EDIT_CLIPBOARD = [...EDIT, '2_clipboard'];
|
|
89
|
+
export const EDIT_FIND = [...EDIT, '3_find'];
|
|
90
|
+
|
|
91
|
+
export const VIEW = [...MAIN_MENU_BAR, '4_view'];
|
|
92
|
+
export const VIEW_PRIMARY = [...VIEW, '0_primary'];
|
|
93
|
+
export const VIEW_APPEARANCE = [...VIEW, '1_appearance'];
|
|
94
|
+
export const VIEW_APPEARANCE_SUBMENU = [...VIEW_APPEARANCE, '1_appearance_submenu'];
|
|
95
|
+
export const VIEW_APPEARANCE_SUBMENU_SCREEN = [...VIEW_APPEARANCE_SUBMENU, '2_appearance_submenu_screen'];
|
|
96
|
+
export const VIEW_APPEARANCE_SUBMENU_BAR = [...VIEW_APPEARANCE_SUBMENU, '3_appearance_submenu_bar'];
|
|
97
|
+
export const VIEW_EDITOR_SUBMENU = [...VIEW_APPEARANCE, '2_editor_submenu'];
|
|
98
|
+
export const VIEW_EDITOR_SUBMENU_SPLIT = [...VIEW_EDITOR_SUBMENU, '1_editor_submenu_split'];
|
|
99
|
+
export const VIEW_EDITOR_SUBMENU_ORTHO = [...VIEW_EDITOR_SUBMENU, '2_editor_submenu_ortho'];
|
|
100
|
+
export const VIEW_VIEWS = [...VIEW, '2_views'];
|
|
101
|
+
export const VIEW_LAYOUT = [...VIEW, '3_layout'];
|
|
102
|
+
export const VIEW_TOGGLE = [...VIEW, '4_toggle'];
|
|
103
|
+
|
|
104
|
+
export const MANAGE_GENERAL = [...MANAGE_MENU, '1_manage_general'];
|
|
105
|
+
export const MANAGE_SETTINGS = [...MANAGE_MENU, '2_manage_settings'];
|
|
106
|
+
export const MANAGE_SETTINGS_THEMES = [...MANAGE_SETTINGS, '1_manage_settings_themes'];
|
|
107
|
+
|
|
108
|
+
// last menu item
|
|
109
|
+
export const HELP = [...MAIN_MENU_BAR, '9_help'];
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace CommonCommands {
|
|
114
|
+
|
|
115
|
+
export const FILE_CATEGORY = 'File';
|
|
116
|
+
export const VIEW_CATEGORY = 'View';
|
|
117
|
+
export const CREATE_CATEGORY = 'Create';
|
|
118
|
+
export const PREFERENCES_CATEGORY = 'Preferences';
|
|
119
|
+
export const MANAGE_CATEGORY = 'Manage';
|
|
120
|
+
export const FILE_CATEGORY_KEY = nls.getDefaultKey(FILE_CATEGORY);
|
|
121
|
+
export const VIEW_CATEGORY_KEY = nls.getDefaultKey(VIEW_CATEGORY);
|
|
122
|
+
export const PREFERENCES_CATEGORY_KEY = nls.getDefaultKey(PREFERENCES_CATEGORY);
|
|
123
|
+
|
|
124
|
+
export const OPEN: Command = {
|
|
125
|
+
id: 'core.open',
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const CUT = Command.toDefaultLocalizedCommand({
|
|
129
|
+
id: 'core.cut',
|
|
130
|
+
label: 'Cut'
|
|
131
|
+
});
|
|
132
|
+
export const COPY = Command.toDefaultLocalizedCommand({
|
|
133
|
+
id: 'core.copy',
|
|
134
|
+
label: 'Copy'
|
|
135
|
+
});
|
|
136
|
+
export const PASTE = Command.toDefaultLocalizedCommand({
|
|
137
|
+
id: 'core.paste',
|
|
138
|
+
label: 'Paste'
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
export const COPY_PATH = Command.toDefaultLocalizedCommand({
|
|
142
|
+
id: 'core.copy.path',
|
|
143
|
+
label: 'Copy Path'
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export const UNDO = Command.toDefaultLocalizedCommand({
|
|
147
|
+
id: 'core.undo',
|
|
148
|
+
label: 'Undo'
|
|
149
|
+
});
|
|
150
|
+
export const REDO = Command.toDefaultLocalizedCommand({
|
|
151
|
+
id: 'core.redo',
|
|
152
|
+
label: 'Redo'
|
|
153
|
+
});
|
|
154
|
+
export const SELECT_ALL = Command.toDefaultLocalizedCommand({
|
|
155
|
+
id: 'core.selectAll',
|
|
156
|
+
label: 'Select All'
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export const FIND = Command.toDefaultLocalizedCommand({
|
|
160
|
+
id: 'core.find',
|
|
161
|
+
label: 'Find'
|
|
162
|
+
});
|
|
163
|
+
export const REPLACE = Command.toDefaultLocalizedCommand({
|
|
164
|
+
id: 'core.replace',
|
|
165
|
+
label: 'Replace'
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
export const NEXT_TAB = Command.toDefaultLocalizedCommand({
|
|
169
|
+
id: 'core.nextTab',
|
|
170
|
+
category: VIEW_CATEGORY,
|
|
171
|
+
label: 'Show Next Tab'
|
|
172
|
+
});
|
|
173
|
+
export const PREVIOUS_TAB = Command.toDefaultLocalizedCommand({
|
|
174
|
+
id: 'core.previousTab',
|
|
175
|
+
category: VIEW_CATEGORY,
|
|
176
|
+
label: 'Show Previous Tab'
|
|
177
|
+
});
|
|
178
|
+
export const NEXT_TAB_IN_GROUP = Command.toLocalizedCommand({
|
|
179
|
+
id: 'core.nextTabInGroup',
|
|
180
|
+
category: VIEW_CATEGORY,
|
|
181
|
+
label: 'Switch to Next Tab in Group'
|
|
182
|
+
}, 'theia/core/common/showNextTabInGroup', VIEW_CATEGORY_KEY);
|
|
183
|
+
export const PREVIOUS_TAB_IN_GROUP = Command.toLocalizedCommand({
|
|
184
|
+
id: 'core.previousTabInGroup',
|
|
185
|
+
category: VIEW_CATEGORY,
|
|
186
|
+
label: 'Switch to Previous Tab in Group'
|
|
187
|
+
}, 'theia/core/common/showPreviousTabInGroup', VIEW_CATEGORY_KEY);
|
|
188
|
+
export const NEXT_TAB_GROUP = Command.toLocalizedCommand({
|
|
189
|
+
id: 'core.nextTabGroup',
|
|
190
|
+
category: VIEW_CATEGORY,
|
|
191
|
+
label: 'Switch to Next Tab Group'
|
|
192
|
+
}, 'theia/core/common/showNextTabGroup', VIEW_CATEGORY_KEY);
|
|
193
|
+
export const PREVIOUS_TAB_GROUP = Command.toLocalizedCommand({
|
|
194
|
+
id: 'core.previousTabBar',
|
|
195
|
+
category: VIEW_CATEGORY,
|
|
196
|
+
label: 'Switch to Previous Tab Group'
|
|
197
|
+
}, 'theia/core/common/showPreviousTabGroup', VIEW_CATEGORY_KEY);
|
|
198
|
+
export const CLOSE_TAB = Command.toLocalizedCommand({
|
|
199
|
+
id: 'core.close.tab',
|
|
200
|
+
category: VIEW_CATEGORY,
|
|
201
|
+
label: 'Close Tab'
|
|
202
|
+
}, 'theia/core/common/closeTab', VIEW_CATEGORY_KEY);
|
|
203
|
+
export const CLOSE_OTHER_TABS = Command.toLocalizedCommand({
|
|
204
|
+
id: 'core.close.other.tabs',
|
|
205
|
+
category: VIEW_CATEGORY,
|
|
206
|
+
label: 'Close Other Tabs'
|
|
207
|
+
}, 'theia/core/common/closeOthers', VIEW_CATEGORY_KEY);
|
|
208
|
+
export const CLOSE_SAVED_TABS = Command.toDefaultLocalizedCommand({
|
|
209
|
+
id: 'workbench.action.closeUnmodifiedEditors',
|
|
210
|
+
category: VIEW_CATEGORY,
|
|
211
|
+
label: 'Close Saved Editors in Group',
|
|
212
|
+
});
|
|
213
|
+
export const CLOSE_RIGHT_TABS = Command.toLocalizedCommand({
|
|
214
|
+
id: 'core.close.right.tabs',
|
|
215
|
+
category: VIEW_CATEGORY,
|
|
216
|
+
label: 'Close Tabs to the Right'
|
|
217
|
+
}, 'theia/core/common/closeRight', VIEW_CATEGORY_KEY);
|
|
218
|
+
export const CLOSE_ALL_TABS = Command.toLocalizedCommand({
|
|
219
|
+
id: 'core.close.all.tabs',
|
|
220
|
+
category: VIEW_CATEGORY,
|
|
221
|
+
label: 'Close All Tabs'
|
|
222
|
+
}, 'theia/core/common/closeAll', VIEW_CATEGORY_KEY);
|
|
223
|
+
export const CLOSE_MAIN_TAB = Command.toLocalizedCommand({
|
|
224
|
+
id: 'core.close.main.tab',
|
|
225
|
+
category: VIEW_CATEGORY,
|
|
226
|
+
label: 'Close Tab in Main Area'
|
|
227
|
+
}, 'theia/core/common/closeTabMain', VIEW_CATEGORY_KEY);
|
|
228
|
+
export const CLOSE_OTHER_MAIN_TABS = Command.toLocalizedCommand({
|
|
229
|
+
id: 'core.close.other.main.tabs',
|
|
230
|
+
category: VIEW_CATEGORY,
|
|
231
|
+
label: 'Close Other Tabs in Main Area'
|
|
232
|
+
}, 'theia/core/common/closeOtherTabMain', VIEW_CATEGORY_KEY);
|
|
233
|
+
export const CLOSE_ALL_MAIN_TABS = Command.toLocalizedCommand({
|
|
234
|
+
id: 'core.close.all.main.tabs',
|
|
235
|
+
category: VIEW_CATEGORY,
|
|
236
|
+
label: 'Close All Tabs in Main Area'
|
|
237
|
+
}, 'theia/core/common/closeAllTabMain', VIEW_CATEGORY_KEY);
|
|
238
|
+
export const COLLAPSE_PANEL = Command.toLocalizedCommand({
|
|
239
|
+
id: 'core.collapse.tab',
|
|
240
|
+
category: VIEW_CATEGORY,
|
|
241
|
+
label: 'Collapse Side Panel'
|
|
242
|
+
}, 'theia/core/common/collapseTab', VIEW_CATEGORY_KEY);
|
|
243
|
+
export const COLLAPSE_ALL_PANELS = Command.toLocalizedCommand({
|
|
244
|
+
id: 'core.collapse.all.tabs',
|
|
245
|
+
category: VIEW_CATEGORY,
|
|
246
|
+
label: 'Collapse All Side Panels'
|
|
247
|
+
}, 'theia/core/common/collapseAllTabs', VIEW_CATEGORY_KEY);
|
|
248
|
+
export const TOGGLE_BOTTOM_PANEL = Command.toLocalizedCommand({
|
|
249
|
+
id: 'core.toggle.bottom.panel',
|
|
250
|
+
category: VIEW_CATEGORY,
|
|
251
|
+
label: 'Toggle Bottom Panel'
|
|
252
|
+
}, 'theia/core/common/collapseBottomPanel', VIEW_CATEGORY_KEY);
|
|
253
|
+
export const TOGGLE_STATUS_BAR = Command.toDefaultLocalizedCommand({
|
|
254
|
+
id: 'workbench.action.toggleStatusbarVisibility',
|
|
255
|
+
category: VIEW_CATEGORY,
|
|
256
|
+
label: 'Toggle Status Bar Visibility'
|
|
257
|
+
});
|
|
258
|
+
export const PIN_TAB = Command.toDefaultLocalizedCommand({
|
|
259
|
+
id: 'workbench.action.pinEditor',
|
|
260
|
+
category: VIEW_CATEGORY,
|
|
261
|
+
label: 'Pin Editor'
|
|
262
|
+
});
|
|
263
|
+
export const UNPIN_TAB = Command.toDefaultLocalizedCommand({
|
|
264
|
+
id: 'workbench.action.unpinEditor',
|
|
265
|
+
category: VIEW_CATEGORY,
|
|
266
|
+
label: 'Unpin Editor'
|
|
267
|
+
});
|
|
268
|
+
export const TOGGLE_MAXIMIZED = Command.toLocalizedCommand({
|
|
269
|
+
id: 'core.toggleMaximized',
|
|
270
|
+
category: VIEW_CATEGORY,
|
|
271
|
+
label: 'Toggle Maximized'
|
|
272
|
+
}, 'theia/core/common/toggleMaximized', VIEW_CATEGORY_KEY);
|
|
273
|
+
export const OPEN_VIEW = Command.toDefaultLocalizedCommand({
|
|
274
|
+
id: 'core.openView',
|
|
275
|
+
category: VIEW_CATEGORY,
|
|
276
|
+
label: 'Open View...'
|
|
277
|
+
});
|
|
278
|
+
export const SHOW_MENU_BAR = Command.toDefaultLocalizedCommand({
|
|
279
|
+
id: 'window.menuBarVisibility',
|
|
280
|
+
category: VIEW_CATEGORY,
|
|
281
|
+
label: 'Toggle Menu Bar'
|
|
282
|
+
});
|
|
283
|
+
export const NEW_UNTITLED_TEXT_FILE = Command.toDefaultLocalizedCommand({
|
|
284
|
+
id: 'workbench.action.files.newUntitledTextFile',
|
|
285
|
+
category: FILE_CATEGORY,
|
|
286
|
+
label: 'New Untitled Text File'
|
|
287
|
+
});
|
|
288
|
+
export const NEW_UNTITLED_FILE = Command.toDefaultLocalizedCommand({
|
|
289
|
+
id: 'workbench.action.files.newUntitledFile',
|
|
290
|
+
category: CREATE_CATEGORY,
|
|
291
|
+
label: 'New File...'
|
|
292
|
+
});
|
|
293
|
+
export const SAVE = Command.toDefaultLocalizedCommand({
|
|
294
|
+
id: 'core.save',
|
|
295
|
+
category: FILE_CATEGORY,
|
|
296
|
+
label: 'Save',
|
|
297
|
+
});
|
|
298
|
+
export const SAVE_AS = Command.toDefaultLocalizedCommand({
|
|
299
|
+
id: 'file.saveAs',
|
|
300
|
+
category: FILE_CATEGORY,
|
|
301
|
+
label: 'Save As...',
|
|
302
|
+
});
|
|
303
|
+
export const SAVE_WITHOUT_FORMATTING = Command.toDefaultLocalizedCommand({
|
|
304
|
+
id: 'core.saveWithoutFormatting',
|
|
305
|
+
category: FILE_CATEGORY,
|
|
306
|
+
label: 'Save without Formatting',
|
|
307
|
+
});
|
|
308
|
+
export const SAVE_ALL = Command.toDefaultLocalizedCommand({
|
|
309
|
+
id: 'core.saveAll',
|
|
310
|
+
category: FILE_CATEGORY,
|
|
311
|
+
label: 'Save All',
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
export const AUTO_SAVE = Command.toDefaultLocalizedCommand({
|
|
315
|
+
id: 'textEditor.commands.autosave',
|
|
316
|
+
category: FILE_CATEGORY,
|
|
317
|
+
label: 'Auto Save',
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
export const ABOUT_COMMAND = Command.toDefaultLocalizedCommand({
|
|
321
|
+
id: 'core.about',
|
|
322
|
+
label: 'About'
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
export const OPEN_PREFERENCES = Command.toDefaultLocalizedCommand({
|
|
326
|
+
id: 'preferences:open',
|
|
327
|
+
category: PREFERENCES_CATEGORY,
|
|
328
|
+
label: 'Open Settings (UI)',
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
export const SELECT_COLOR_THEME = Command.toDefaultLocalizedCommand({
|
|
332
|
+
id: 'workbench.action.selectTheme',
|
|
333
|
+
label: 'Color Theme',
|
|
334
|
+
category: PREFERENCES_CATEGORY
|
|
335
|
+
});
|
|
336
|
+
export const SELECT_ICON_THEME = Command.toDefaultLocalizedCommand({
|
|
337
|
+
id: 'workbench.action.selectIconTheme',
|
|
338
|
+
label: 'File Icon Theme',
|
|
339
|
+
category: PREFERENCES_CATEGORY
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
export const CONFIGURE_DISPLAY_LANGUAGE = Command.toDefaultLocalizedCommand({
|
|
343
|
+
id: 'workbench.action.configureLanguage',
|
|
344
|
+
label: 'Configure Display Language'
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
export const TOGGLE_BREADCRUMBS = Command.toDefaultLocalizedCommand({
|
|
348
|
+
id: 'breadcrumbs.toggle',
|
|
349
|
+
label: 'Toggle Breadcrumbs',
|
|
350
|
+
category: VIEW_CATEGORY
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export const supportCut = environment.electron.is() || document.queryCommandSupported('cut');
|
|
355
|
+
export const supportCopy = environment.electron.is() || document.queryCommandSupported('copy');
|
|
356
|
+
// Chrome incorrectly returns true for document.queryCommandSupported('paste')
|
|
357
|
+
// when the paste feature is available but the calling script has insufficient
|
|
358
|
+
// privileges to actually perform the action
|
|
359
|
+
export const supportPaste = environment.electron.is() || (!browser.isChrome && document.queryCommandSupported('paste'));
|
|
360
|
+
|
|
361
|
+
export const RECENT_COMMANDS_STORAGE_KEY = 'commands';
|
|
362
|
+
|
|
363
|
+
export const CLASSNAME_OS_MAC = 'mac';
|
|
364
|
+
export const CLASSNAME_OS_WINDOWS = 'windows';
|
|
365
|
+
export const CLASSNAME_OS_LINUX = 'linux';
|
|
366
|
+
|
|
367
|
+
@injectable()
|
|
368
|
+
export class CommonFrontendContribution implements FrontendApplicationContribution, MenuContribution, CommandContribution, KeybindingContribution, ColorContribution {
|
|
369
|
+
|
|
370
|
+
protected commonDecorationsStyleSheet: CSSStyleSheet = DecorationStyle.createStyleSheet('coreCommonDecorationsStyle');
|
|
371
|
+
|
|
372
|
+
constructor(
|
|
373
|
+
@inject(ApplicationShell) protected readonly shell: ApplicationShell,
|
|
374
|
+
@inject(SelectionService) protected readonly selectionService: SelectionService,
|
|
375
|
+
@inject(MessageService) protected readonly messageService: MessageService,
|
|
376
|
+
@inject(OpenerService) protected readonly openerService: OpenerService,
|
|
377
|
+
@inject(AboutDialog) protected readonly aboutDialog: AboutDialog,
|
|
378
|
+
@inject(AsyncLocalizationProvider) protected readonly localizationProvider: AsyncLocalizationProvider,
|
|
379
|
+
@inject(SaveResourceService) protected readonly saveResourceService: SaveResourceService,
|
|
380
|
+
) { }
|
|
381
|
+
|
|
382
|
+
@inject(ContextKeyService)
|
|
383
|
+
protected readonly contextKeyService: ContextKeyService;
|
|
384
|
+
|
|
385
|
+
@inject(ResourceContextKey)
|
|
386
|
+
protected readonly resourceContextKey: ResourceContextKey;
|
|
387
|
+
|
|
388
|
+
@inject(CommandRegistry)
|
|
389
|
+
protected readonly commandRegistry: CommandRegistry;
|
|
390
|
+
|
|
391
|
+
@inject(MenuModelRegistry)
|
|
392
|
+
protected readonly menuRegistry: MenuModelRegistry;
|
|
393
|
+
|
|
394
|
+
@inject(StorageService)
|
|
395
|
+
protected readonly storageService: StorageService;
|
|
396
|
+
|
|
397
|
+
@inject(QuickInputService) @optional()
|
|
398
|
+
protected readonly quickInputService: QuickInputService;
|
|
399
|
+
|
|
400
|
+
@inject(IconThemeService)
|
|
401
|
+
protected readonly iconThemes: IconThemeService;
|
|
402
|
+
|
|
403
|
+
@inject(ThemeService)
|
|
404
|
+
protected readonly themeService: ThemeService;
|
|
405
|
+
|
|
406
|
+
@inject(CorePreferences)
|
|
407
|
+
protected readonly preferences: CorePreferences;
|
|
408
|
+
|
|
409
|
+
@inject(PreferenceService)
|
|
410
|
+
protected readonly preferenceService: PreferenceService;
|
|
411
|
+
|
|
412
|
+
@inject(ClipboardService)
|
|
413
|
+
protected readonly clipboardService: ClipboardService;
|
|
414
|
+
|
|
415
|
+
@inject(EncodingRegistry)
|
|
416
|
+
protected readonly encodingRegistry: EncodingRegistry;
|
|
417
|
+
|
|
418
|
+
@inject(EnvVariablesServer)
|
|
419
|
+
protected readonly environments: EnvVariablesServer;
|
|
420
|
+
|
|
421
|
+
@inject(AuthenticationService)
|
|
422
|
+
protected readonly authenticationService: AuthenticationService;
|
|
423
|
+
|
|
424
|
+
@inject(WindowService)
|
|
425
|
+
protected readonly windowService: WindowService;
|
|
426
|
+
|
|
427
|
+
@inject(UserWorkingDirectoryProvider)
|
|
428
|
+
protected readonly workingDirProvider: UserWorkingDirectoryProvider;
|
|
429
|
+
|
|
430
|
+
@inject(LanguageQuickPickService)
|
|
431
|
+
protected readonly languageQuickPickService: LanguageQuickPickService;
|
|
432
|
+
|
|
433
|
+
@inject(UntitledResourceResolver)
|
|
434
|
+
protected readonly untitledResourceResolver: UntitledResourceResolver;
|
|
435
|
+
|
|
436
|
+
protected pinnedKey: ContextKey<boolean>;
|
|
437
|
+
|
|
438
|
+
async configure(app: FrontendApplication): Promise<void> {
|
|
439
|
+
// FIXME: This request blocks valuable startup time (~200ms).
|
|
440
|
+
const configDirUri = await this.environments.getConfigDirUri();
|
|
441
|
+
// Global settings
|
|
442
|
+
this.encodingRegistry.registerOverride({
|
|
443
|
+
encoding: UTF8,
|
|
444
|
+
parent: new URI(configDirUri)
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
this.contextKeyService.createKey<boolean>('isLinux', OS.type() === OS.Type.Linux);
|
|
448
|
+
this.contextKeyService.createKey<boolean>('isMac', OS.type() === OS.Type.OSX);
|
|
449
|
+
this.contextKeyService.createKey<boolean>('isWindows', OS.type() === OS.Type.Windows);
|
|
450
|
+
this.contextKeyService.createKey<boolean>('isWeb', !this.isElectron());
|
|
451
|
+
|
|
452
|
+
this.pinnedKey = this.contextKeyService.createKey<boolean>('activeEditorIsPinned', false);
|
|
453
|
+
this.updatePinnedKey();
|
|
454
|
+
this.shell.onDidChangeActiveWidget(() => this.updatePinnedKey());
|
|
455
|
+
|
|
456
|
+
this.initResourceContextKeys();
|
|
457
|
+
this.registerCtrlWHandling();
|
|
458
|
+
|
|
459
|
+
this.setOsClass();
|
|
460
|
+
this.updateStyles();
|
|
461
|
+
this.preferences.ready.then(() => this.setSashProperties());
|
|
462
|
+
this.preferences.onPreferenceChanged(e => this.handlePreferenceChange(e, app));
|
|
463
|
+
|
|
464
|
+
app.shell.leftPanelHandler.addBottomMenu({
|
|
465
|
+
id: 'settings-menu',
|
|
466
|
+
iconClass: 'codicon codicon-settings-gear',
|
|
467
|
+
title: nls.localizeByDefault(CommonCommands.MANAGE_CATEGORY),
|
|
468
|
+
menuPath: MANAGE_MENU,
|
|
469
|
+
order: 1,
|
|
470
|
+
});
|
|
471
|
+
const accountsMenu = {
|
|
472
|
+
id: 'accounts-menu',
|
|
473
|
+
iconClass: 'codicon codicon-person',
|
|
474
|
+
title: nls.localizeByDefault('Accounts'),
|
|
475
|
+
menuPath: ACCOUNTS_MENU,
|
|
476
|
+
order: 0,
|
|
477
|
+
};
|
|
478
|
+
this.authenticationService.onDidRegisterAuthenticationProvider(() => {
|
|
479
|
+
app.shell.leftPanelHandler.addBottomMenu(accountsMenu);
|
|
480
|
+
});
|
|
481
|
+
this.authenticationService.onDidUnregisterAuthenticationProvider(() => {
|
|
482
|
+
if (this.authenticationService.getProviderIds().length === 0) {
|
|
483
|
+
app.shell.leftPanelHandler.removeBottomMenu(accountsMenu.id);
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
protected setOsClass(): void {
|
|
489
|
+
if (isOSX) {
|
|
490
|
+
document.body.classList.add(CLASSNAME_OS_MAC);
|
|
491
|
+
} else if (isWindows) {
|
|
492
|
+
document.body.classList.add(CLASSNAME_OS_WINDOWS);
|
|
493
|
+
} else {
|
|
494
|
+
document.body.classList.add(CLASSNAME_OS_LINUX);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
protected updateStyles(): void {
|
|
499
|
+
document.body.classList.remove('theia-editor-highlightModifiedTabs');
|
|
500
|
+
if (this.preferences['workbench.editor.highlightModifiedTabs']) {
|
|
501
|
+
document.body.classList.add('theia-editor-highlightModifiedTabs');
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
protected updatePinnedKey(): void {
|
|
506
|
+
const activeTab = this.shell.findTabBar();
|
|
507
|
+
const pinningTarget = activeTab && this.shell.findTitle(activeTab);
|
|
508
|
+
const value = pinningTarget && isPinned(pinningTarget);
|
|
509
|
+
this.pinnedKey.set(value);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
protected handlePreferenceChange(e: PreferenceChangeEvent<CoreConfiguration>, app: FrontendApplication): void {
|
|
513
|
+
switch (e.preferenceName) {
|
|
514
|
+
case 'workbench.editor.highlightModifiedTabs': {
|
|
515
|
+
this.updateStyles();
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
case 'window.menuBarVisibility': {
|
|
519
|
+
const { newValue } = e;
|
|
520
|
+
const mainMenuId = 'main-menu';
|
|
521
|
+
if (newValue === 'compact') {
|
|
522
|
+
this.shell.leftPanelHandler.addTopMenu({
|
|
523
|
+
id: mainMenuId,
|
|
524
|
+
iconClass: 'codicon codicon-menu',
|
|
525
|
+
title: nls.localizeByDefault('Application Menu'),
|
|
526
|
+
menuPath: MAIN_MENU_BAR,
|
|
527
|
+
order: 0,
|
|
528
|
+
});
|
|
529
|
+
} else {
|
|
530
|
+
app.shell.leftPanelHandler.removeTopMenu(mainMenuId);
|
|
531
|
+
}
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
case 'workbench.sash.hoverDelay':
|
|
535
|
+
case 'workbench.sash.size': {
|
|
536
|
+
this.setSashProperties();
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
protected setSashProperties(): void {
|
|
543
|
+
const sashRule = `:root {
|
|
544
|
+
--theia-sash-hoverDelay: ${this.preferences['workbench.sash.hoverDelay']}ms;
|
|
545
|
+
--theia-sash-width: ${this.preferences['workbench.sash.size']}px;
|
|
546
|
+
}`;
|
|
547
|
+
|
|
548
|
+
DecorationStyle.deleteStyleRule(':root', this.commonDecorationsStyleSheet);
|
|
549
|
+
this.commonDecorationsStyleSheet.insertRule(sashRule);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
onStart(): void {
|
|
553
|
+
this.storageService.getData<{ recent: Command[] }>(RECENT_COMMANDS_STORAGE_KEY, { recent: [] })
|
|
554
|
+
.then(tasks => this.commandRegistry.recent = tasks.recent);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
onStop(): void {
|
|
558
|
+
const recent = this.commandRegistry.recent;
|
|
559
|
+
this.storageService.setData<{ recent: Command[] }>(RECENT_COMMANDS_STORAGE_KEY, { recent });
|
|
560
|
+
window.localStorage.setItem(IconThemeService.STORAGE_KEY, this.iconThemes.current);
|
|
561
|
+
window.localStorage.setItem(ThemeService.STORAGE_KEY, this.themeService.getCurrentTheme().id);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
protected initResourceContextKeys(): void {
|
|
565
|
+
const updateContextKeys = () => {
|
|
566
|
+
const selection = this.selectionService.selection;
|
|
567
|
+
const resourceUri = Navigatable.is(selection) && selection.getResourceUri() || UriSelection.getUri(selection);
|
|
568
|
+
this.resourceContextKey.set(resourceUri);
|
|
569
|
+
};
|
|
570
|
+
updateContextKeys();
|
|
571
|
+
this.selectionService.onSelectionChanged(updateContextKeys);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
registerMenus(registry: MenuModelRegistry): void {
|
|
575
|
+
registry.registerSubmenu(CommonMenus.FILE, nls.localizeByDefault('File'));
|
|
576
|
+
registry.registerSubmenu(CommonMenus.EDIT, nls.localizeByDefault('Edit'));
|
|
577
|
+
registry.registerSubmenu(CommonMenus.VIEW, nls.localizeByDefault('View'));
|
|
578
|
+
registry.registerSubmenu(CommonMenus.HELP, nls.localizeByDefault('Help'));
|
|
579
|
+
|
|
580
|
+
// For plugins contributing create new file commands/menu-actions
|
|
581
|
+
registry.registerIndependentSubmenu(CommonMenus.FILE_NEW_CONTRIBUTIONS, nls.localizeByDefault('New File...'));
|
|
582
|
+
|
|
583
|
+
registry.registerMenuAction(CommonMenus.FILE_SAVE, {
|
|
584
|
+
commandId: CommonCommands.SAVE.id
|
|
585
|
+
});
|
|
586
|
+
registry.registerMenuAction(CommonMenus.FILE_SAVE, {
|
|
587
|
+
commandId: CommonCommands.SAVE_ALL.id
|
|
588
|
+
});
|
|
589
|
+
|
|
590
|
+
registry.registerMenuAction(CommonMenus.FILE_AUTOSAVE, {
|
|
591
|
+
commandId: CommonCommands.AUTO_SAVE.id
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
registry.registerSubmenu(CommonMenus.FILE_SETTINGS_SUBMENU, nls.localizeByDefault(CommonCommands.PREFERENCES_CATEGORY));
|
|
595
|
+
|
|
596
|
+
registry.registerMenuAction(CommonMenus.EDIT_UNDO, {
|
|
597
|
+
commandId: CommonCommands.UNDO.id,
|
|
598
|
+
order: '0'
|
|
599
|
+
});
|
|
600
|
+
registry.registerMenuAction(CommonMenus.EDIT_UNDO, {
|
|
601
|
+
commandId: CommonCommands.REDO.id,
|
|
602
|
+
order: '1'
|
|
603
|
+
});
|
|
604
|
+
|
|
605
|
+
registry.registerMenuAction(CommonMenus.EDIT_FIND, {
|
|
606
|
+
commandId: CommonCommands.FIND.id,
|
|
607
|
+
order: '0'
|
|
608
|
+
});
|
|
609
|
+
registry.registerMenuAction(CommonMenus.EDIT_FIND, {
|
|
610
|
+
commandId: CommonCommands.REPLACE.id,
|
|
611
|
+
order: '1'
|
|
612
|
+
});
|
|
613
|
+
|
|
614
|
+
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
615
|
+
commandId: CommonCommands.CUT.id,
|
|
616
|
+
order: '0'
|
|
617
|
+
});
|
|
618
|
+
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
619
|
+
commandId: CommonCommands.COPY.id,
|
|
620
|
+
order: '1'
|
|
621
|
+
});
|
|
622
|
+
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
623
|
+
commandId: CommonCommands.PASTE.id,
|
|
624
|
+
order: '2'
|
|
625
|
+
});
|
|
626
|
+
registry.registerMenuAction(CommonMenus.EDIT_CLIPBOARD, {
|
|
627
|
+
commandId: CommonCommands.COPY_PATH.id,
|
|
628
|
+
order: '3'
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
632
|
+
commandId: CommonCommands.TOGGLE_BOTTOM_PANEL.id,
|
|
633
|
+
order: '1'
|
|
634
|
+
});
|
|
635
|
+
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
636
|
+
commandId: CommonCommands.TOGGLE_STATUS_BAR.id,
|
|
637
|
+
order: '2',
|
|
638
|
+
label: nls.localizeByDefault('Toggle Status Bar Visibility')
|
|
639
|
+
});
|
|
640
|
+
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
641
|
+
commandId: CommonCommands.COLLAPSE_ALL_PANELS.id,
|
|
642
|
+
order: '3'
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
646
|
+
commandId: CommonCommands.CLOSE_TAB.id,
|
|
647
|
+
label: nls.localizeByDefault('Close'),
|
|
648
|
+
order: '0'
|
|
649
|
+
});
|
|
650
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
651
|
+
commandId: CommonCommands.CLOSE_OTHER_TABS.id,
|
|
652
|
+
label: nls.localizeByDefault('Close Others'),
|
|
653
|
+
order: '1'
|
|
654
|
+
});
|
|
655
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
656
|
+
commandId: CommonCommands.CLOSE_RIGHT_TABS.id,
|
|
657
|
+
label: nls.localizeByDefault('Close to the Right'),
|
|
658
|
+
order: '2'
|
|
659
|
+
});
|
|
660
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
661
|
+
commandId: CommonCommands.CLOSE_SAVED_TABS.id,
|
|
662
|
+
label: nls.localizeByDefault('Close Saved'),
|
|
663
|
+
order: '3',
|
|
664
|
+
});
|
|
665
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_CLOSE, {
|
|
666
|
+
commandId: CommonCommands.CLOSE_ALL_TABS.id,
|
|
667
|
+
label: nls.localizeByDefault('Close All'),
|
|
668
|
+
order: '4'
|
|
669
|
+
});
|
|
670
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_SPLIT, {
|
|
671
|
+
commandId: CommonCommands.COLLAPSE_PANEL.id,
|
|
672
|
+
label: CommonCommands.COLLAPSE_PANEL.label,
|
|
673
|
+
order: '5'
|
|
674
|
+
});
|
|
675
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_SPLIT, {
|
|
676
|
+
commandId: CommonCommands.TOGGLE_MAXIMIZED.id,
|
|
677
|
+
label: CommonCommands.TOGGLE_MAXIMIZED.label,
|
|
678
|
+
order: '6'
|
|
679
|
+
});
|
|
680
|
+
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_SCREEN, {
|
|
681
|
+
commandId: CommonCommands.TOGGLE_MAXIMIZED.id,
|
|
682
|
+
label: CommonCommands.TOGGLE_MAXIMIZED.label,
|
|
683
|
+
order: '6'
|
|
684
|
+
});
|
|
685
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_COPY, {
|
|
686
|
+
commandId: CommonCommands.COPY_PATH.id,
|
|
687
|
+
label: CommonCommands.COPY_PATH.label,
|
|
688
|
+
order: '1',
|
|
689
|
+
});
|
|
690
|
+
registry.registerMenuAction(CommonMenus.VIEW_APPEARANCE_SUBMENU_BAR, {
|
|
691
|
+
commandId: CommonCommands.SHOW_MENU_BAR.id,
|
|
692
|
+
label: nls.localizeByDefault('Toggle Menu Bar'),
|
|
693
|
+
order: '0'
|
|
694
|
+
});
|
|
695
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_PIN, {
|
|
696
|
+
commandId: CommonCommands.PIN_TAB.id,
|
|
697
|
+
label: nls.localizeByDefault('Pin'),
|
|
698
|
+
order: '7'
|
|
699
|
+
});
|
|
700
|
+
registry.registerMenuAction(SHELL_TABBAR_CONTEXT_PIN, {
|
|
701
|
+
commandId: CommonCommands.UNPIN_TAB.id,
|
|
702
|
+
label: nls.localizeByDefault('Unpin'),
|
|
703
|
+
order: '8'
|
|
704
|
+
});
|
|
705
|
+
registry.registerMenuAction(CommonMenus.HELP, {
|
|
706
|
+
commandId: CommonCommands.ABOUT_COMMAND.id,
|
|
707
|
+
label: CommonCommands.ABOUT_COMMAND.label,
|
|
708
|
+
order: '9'
|
|
709
|
+
});
|
|
710
|
+
|
|
711
|
+
registry.registerMenuAction(CommonMenus.VIEW_PRIMARY, {
|
|
712
|
+
commandId: CommonCommands.OPEN_VIEW.id
|
|
713
|
+
});
|
|
714
|
+
|
|
715
|
+
registry.registerMenuAction(CommonMenus.FILE_SETTINGS_SUBMENU_THEME, {
|
|
716
|
+
commandId: CommonCommands.SELECT_COLOR_THEME.id
|
|
717
|
+
});
|
|
718
|
+
registry.registerMenuAction(CommonMenus.FILE_SETTINGS_SUBMENU_THEME, {
|
|
719
|
+
commandId: CommonCommands.SELECT_ICON_THEME.id
|
|
720
|
+
});
|
|
721
|
+
|
|
722
|
+
registry.registerSubmenu(CommonMenus.MANAGE_SETTINGS_THEMES, nls.localizeByDefault('Themes'), { order: 'a50' });
|
|
723
|
+
registry.registerMenuAction(CommonMenus.MANAGE_SETTINGS_THEMES, {
|
|
724
|
+
commandId: CommonCommands.SELECT_COLOR_THEME.id,
|
|
725
|
+
order: '0'
|
|
726
|
+
});
|
|
727
|
+
registry.registerMenuAction(CommonMenus.MANAGE_SETTINGS_THEMES, {
|
|
728
|
+
commandId: CommonCommands.SELECT_ICON_THEME.id,
|
|
729
|
+
order: '1'
|
|
730
|
+
});
|
|
731
|
+
|
|
732
|
+
registry.registerSubmenu(CommonMenus.VIEW_APPEARANCE_SUBMENU, nls.localizeByDefault('Appearance'));
|
|
733
|
+
|
|
734
|
+
registry.registerMenuAction(CommonMenus.FILE_NEW_TEXT, {
|
|
735
|
+
commandId: CommonCommands.NEW_UNTITLED_TEXT_FILE.id,
|
|
736
|
+
label: nls.localizeByDefault('New Text File'),
|
|
737
|
+
order: 'a'
|
|
738
|
+
});
|
|
739
|
+
|
|
740
|
+
registry.registerMenuAction(CommonMenus.FILE_NEW_TEXT, {
|
|
741
|
+
commandId: CommonCommands.NEW_UNTITLED_FILE.id,
|
|
742
|
+
label: nls.localizeByDefault('New File...'),
|
|
743
|
+
order: 'a1'
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
registerCommands(commandRegistry: CommandRegistry): void {
|
|
748
|
+
commandRegistry.registerCommand(CommonCommands.OPEN, UriAwareCommandHandler.MultiSelect(this.selectionService, {
|
|
749
|
+
execute: uris => uris.map(uri => open(this.openerService, uri)),
|
|
750
|
+
}));
|
|
751
|
+
commandRegistry.registerCommand(CommonCommands.CUT, {
|
|
752
|
+
execute: () => {
|
|
753
|
+
if (supportCut) {
|
|
754
|
+
document.execCommand('cut');
|
|
755
|
+
} else {
|
|
756
|
+
this.messageService.warn(nls.localize('theia/core/cutWarn', "Please use the browser's cut command or shortcut."));
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
commandRegistry.registerCommand(CommonCommands.COPY, {
|
|
761
|
+
execute: () => {
|
|
762
|
+
if (supportCopy) {
|
|
763
|
+
document.execCommand('copy');
|
|
764
|
+
} else {
|
|
765
|
+
this.messageService.warn(nls.localize('theia/core/copyWarn', "Please use the browser's copy command or shortcut."));
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
commandRegistry.registerCommand(CommonCommands.PASTE, {
|
|
770
|
+
execute: () => {
|
|
771
|
+
if (supportPaste) {
|
|
772
|
+
document.execCommand('paste');
|
|
773
|
+
} else {
|
|
774
|
+
this.messageService.warn(nls.localize('theia/core/pasteWarn', "Please use the browser's paste command or shortcut."));
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
commandRegistry.registerCommand(CommonCommands.COPY_PATH, UriAwareCommandHandler.MultiSelect(this.selectionService, {
|
|
779
|
+
isVisible: uris => Array.isArray(uris) && uris.some(uri => uri instanceof URI),
|
|
780
|
+
isEnabled: uris => Array.isArray(uris) && uris.some(uri => uri instanceof URI),
|
|
781
|
+
execute: async uris => {
|
|
782
|
+
if (uris.length) {
|
|
783
|
+
const lineDelimiter = EOL;
|
|
784
|
+
const text = uris.map(resource => resource.path.fsPath()).join(lineDelimiter);
|
|
785
|
+
await this.clipboardService.writeText(text);
|
|
786
|
+
} else {
|
|
787
|
+
await this.messageService.info(nls.localize('theia/core/copyInfo', 'Open a file first to copy its path'));
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}));
|
|
791
|
+
|
|
792
|
+
commandRegistry.registerCommand(CommonCommands.UNDO, {
|
|
793
|
+
execute: () => document.execCommand('undo')
|
|
794
|
+
});
|
|
795
|
+
commandRegistry.registerCommand(CommonCommands.REDO, {
|
|
796
|
+
execute: () => document.execCommand('redo')
|
|
797
|
+
});
|
|
798
|
+
commandRegistry.registerCommand(CommonCommands.SELECT_ALL, {
|
|
799
|
+
execute: () => document.execCommand('selectAll')
|
|
800
|
+
});
|
|
801
|
+
|
|
802
|
+
commandRegistry.registerCommand(CommonCommands.FIND, {
|
|
803
|
+
execute: () => { /* no-op */ }
|
|
804
|
+
});
|
|
805
|
+
commandRegistry.registerCommand(CommonCommands.REPLACE, {
|
|
806
|
+
execute: () => { /* no-op */ }
|
|
807
|
+
});
|
|
808
|
+
|
|
809
|
+
commandRegistry.registerCommand(CommonCommands.NEXT_TAB, {
|
|
810
|
+
isEnabled: () => this.shell.currentTabBar !== undefined,
|
|
811
|
+
execute: () => this.shell.activateNextTab()
|
|
812
|
+
});
|
|
813
|
+
commandRegistry.registerCommand(CommonCommands.PREVIOUS_TAB, {
|
|
814
|
+
isEnabled: () => this.shell.currentTabBar !== undefined,
|
|
815
|
+
execute: () => this.shell.activatePreviousTab()
|
|
816
|
+
});
|
|
817
|
+
commandRegistry.registerCommand(CommonCommands.NEXT_TAB_IN_GROUP, {
|
|
818
|
+
isEnabled: () => this.shell.nextTabIndexInTabBar() !== -1,
|
|
819
|
+
execute: () => this.shell.activateNextTabInTabBar()
|
|
820
|
+
});
|
|
821
|
+
commandRegistry.registerCommand(CommonCommands.PREVIOUS_TAB_IN_GROUP, {
|
|
822
|
+
isEnabled: () => this.shell.previousTabIndexInTabBar() !== -1,
|
|
823
|
+
execute: () => this.shell.activatePreviousTabInTabBar()
|
|
824
|
+
});
|
|
825
|
+
commandRegistry.registerCommand(CommonCommands.NEXT_TAB_GROUP, {
|
|
826
|
+
isEnabled: () => this.shell.nextTabBar() !== undefined,
|
|
827
|
+
execute: () => this.shell.activateNextTabBar()
|
|
828
|
+
});
|
|
829
|
+
commandRegistry.registerCommand(CommonCommands.PREVIOUS_TAB_GROUP, {
|
|
830
|
+
isEnabled: () => this.shell.previousTabBar() !== undefined,
|
|
831
|
+
execute: () => this.shell.activatePreviousTabBar()
|
|
832
|
+
});
|
|
833
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_TAB, new CurrentWidgetCommandAdapter(this.shell, {
|
|
834
|
+
isEnabled: title => Boolean(title?.closable),
|
|
835
|
+
execute: (title, tabBar) => tabBar && this.shell.closeTabs(tabBar, candidate => candidate === title),
|
|
836
|
+
}));
|
|
837
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_OTHER_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
838
|
+
isEnabled: (title, tabbar) => Boolean(tabbar?.titles.some(candidate => candidate !== title && candidate.closable)),
|
|
839
|
+
execute: (title, tabbar) => tabbar && this.shell.closeTabs(tabbar, candidate => candidate !== title && candidate.closable),
|
|
840
|
+
}));
|
|
841
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_SAVED_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
842
|
+
isEnabled: (_title, tabbar) => Boolean(tabbar?.titles.some(candidate => candidate.closable && !Saveable.isDirty(candidate.owner))),
|
|
843
|
+
execute: (_title, tabbar) => tabbar && this.shell.closeTabs(tabbar, candidate => candidate.closable && !Saveable.isDirty(candidate.owner)),
|
|
844
|
+
}));
|
|
845
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_RIGHT_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
846
|
+
isEnabled: (title, tabbar) => {
|
|
847
|
+
let targetSeen = false;
|
|
848
|
+
return Boolean(tabbar?.titles.some(candidate => {
|
|
849
|
+
if (targetSeen && candidate.closable) { return true; };
|
|
850
|
+
if (candidate === title) { targetSeen = true; };
|
|
851
|
+
}));
|
|
852
|
+
},
|
|
853
|
+
isVisible: (_title, tabbar) => {
|
|
854
|
+
const area = (tabbar && this.shell.getAreaFor(tabbar)) ?? this.shell.currentTabArea;
|
|
855
|
+
return area !== undefined && area !== 'left' && area !== 'right';
|
|
856
|
+
},
|
|
857
|
+
execute: (title, tabbar) => {
|
|
858
|
+
if (tabbar) {
|
|
859
|
+
let targetSeen = false;
|
|
860
|
+
this.shell.closeTabs(tabbar, candidate => {
|
|
861
|
+
if (targetSeen && candidate.closable) { return true; };
|
|
862
|
+
if (candidate === title) { targetSeen = true; };
|
|
863
|
+
return false;
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}));
|
|
868
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_ALL_TABS, new CurrentWidgetCommandAdapter(this.shell, {
|
|
869
|
+
isEnabled: (_title, tabbar) => Boolean(tabbar?.titles.some(title => title.closable)),
|
|
870
|
+
execute: (_title, tabbar) => tabbar && this.shell.closeTabs(tabbar, candidate => candidate.closable),
|
|
871
|
+
}));
|
|
872
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_MAIN_TAB, {
|
|
873
|
+
isEnabled: () => {
|
|
874
|
+
const currentWidget = this.shell.getCurrentWidget('main');
|
|
875
|
+
return currentWidget !== undefined && currentWidget.title.closable;
|
|
876
|
+
},
|
|
877
|
+
execute: () => this.shell.getCurrentWidget('main')!.close()
|
|
878
|
+
});
|
|
879
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_OTHER_MAIN_TABS, {
|
|
880
|
+
isEnabled: () => {
|
|
881
|
+
const currentWidget = this.shell.getCurrentWidget('main');
|
|
882
|
+
return currentWidget !== undefined &&
|
|
883
|
+
this.shell.mainAreaTabBars.some(tb => tb.titles.some(title => title.owner !== currentWidget && title.closable));
|
|
884
|
+
},
|
|
885
|
+
execute: () => {
|
|
886
|
+
const currentWidget = this.shell.getCurrentWidget('main');
|
|
887
|
+
this.shell.closeTabs('main', title => title.owner !== currentWidget && title.closable);
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
commandRegistry.registerCommand(CommonCommands.CLOSE_ALL_MAIN_TABS, {
|
|
891
|
+
isEnabled: () => this.shell.mainAreaTabBars.some(tb => tb.titles.some(title => title.closable)),
|
|
892
|
+
execute: () => this.shell.closeTabs('main', title => title.closable)
|
|
893
|
+
});
|
|
894
|
+
commandRegistry.registerCommand(CommonCommands.COLLAPSE_PANEL, new CurrentWidgetCommandAdapter(this.shell, {
|
|
895
|
+
isEnabled: (_title, tabbar) => Boolean(tabbar && ApplicationShell.isSideArea(this.shell.getAreaFor(tabbar))),
|
|
896
|
+
isVisible: (_title, tabbar) => Boolean(tabbar && ApplicationShell.isSideArea(this.shell.getAreaFor(tabbar))),
|
|
897
|
+
execute: (_title, tabbar) => tabbar && this.shell.collapsePanel(this.shell.getAreaFor(tabbar)!)
|
|
898
|
+
}));
|
|
899
|
+
commandRegistry.registerCommand(CommonCommands.COLLAPSE_ALL_PANELS, {
|
|
900
|
+
execute: () => {
|
|
901
|
+
this.shell.collapsePanel('left');
|
|
902
|
+
this.shell.collapsePanel('right');
|
|
903
|
+
this.shell.collapsePanel('bottom');
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
commandRegistry.registerCommand(CommonCommands.TOGGLE_BOTTOM_PANEL, {
|
|
907
|
+
isEnabled: () => this.shell.getWidgets('bottom').length > 0,
|
|
908
|
+
execute: () => {
|
|
909
|
+
if (this.shell.isExpanded('bottom')) {
|
|
910
|
+
this.shell.collapsePanel('bottom');
|
|
911
|
+
} else {
|
|
912
|
+
this.shell.expandPanel('bottom');
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
commandRegistry.registerCommand(CommonCommands.TOGGLE_STATUS_BAR, {
|
|
917
|
+
execute: () => this.preferenceService.updateValue('workbench.statusBar.visible', !this.preferences['workbench.statusBar.visible'])
|
|
918
|
+
});
|
|
919
|
+
commandRegistry.registerCommand(CommonCommands.TOGGLE_MAXIMIZED, new CurrentWidgetCommandAdapter(this.shell, {
|
|
920
|
+
isEnabled: title => Boolean(title?.owner && this.shell.canToggleMaximized(title?.owner)),
|
|
921
|
+
isVisible: title => Boolean(title?.owner && this.shell.canToggleMaximized(title?.owner)),
|
|
922
|
+
execute: title => title?.owner && this.shell.toggleMaximized(title?.owner),
|
|
923
|
+
}));
|
|
924
|
+
commandRegistry.registerCommand(CommonCommands.SHOW_MENU_BAR, {
|
|
925
|
+
isEnabled: () => !isOSX,
|
|
926
|
+
isVisible: () => !isOSX,
|
|
927
|
+
execute: () => {
|
|
928
|
+
const menuBarVisibility = 'window.menuBarVisibility';
|
|
929
|
+
const visibility = this.preferences[menuBarVisibility];
|
|
930
|
+
if (visibility !== 'compact') {
|
|
931
|
+
this.preferenceService.updateValue(menuBarVisibility, 'compact');
|
|
932
|
+
} else {
|
|
933
|
+
this.preferenceService.updateValue(menuBarVisibility, 'classic');
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
commandRegistry.registerCommand(CommonCommands.SAVE, {
|
|
938
|
+
execute: () => this.save({ formatType: FormatType.ON })
|
|
939
|
+
});
|
|
940
|
+
commandRegistry.registerCommand(CommonCommands.SAVE_AS, {
|
|
941
|
+
isEnabled: () => this.saveResourceService.canSaveAs(this.shell.currentWidget),
|
|
942
|
+
execute: () => {
|
|
943
|
+
const { currentWidget } = this.shell;
|
|
944
|
+
// No clue what could have happened between `isEnabled` and `execute`
|
|
945
|
+
// when fetching currentWidget, so better to double-check:
|
|
946
|
+
if (this.saveResourceService.canSaveAs(currentWidget)) {
|
|
947
|
+
this.saveResourceService.saveAs(currentWidget);
|
|
948
|
+
} else {
|
|
949
|
+
this.messageService.error(nls.localize('theia/workspace/failSaveAs', 'Cannot run "{0}" for the current widget.', CommonCommands.SAVE_AS.label!));
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
});
|
|
953
|
+
commandRegistry.registerCommand(CommonCommands.SAVE_WITHOUT_FORMATTING, {
|
|
954
|
+
execute: () => this.save({ formatType: FormatType.OFF })
|
|
955
|
+
});
|
|
956
|
+
commandRegistry.registerCommand(CommonCommands.SAVE_ALL, {
|
|
957
|
+
execute: () => this.shell.saveAll({ formatType: FormatType.DIRTY })
|
|
958
|
+
});
|
|
959
|
+
commandRegistry.registerCommand(CommonCommands.ABOUT_COMMAND, {
|
|
960
|
+
execute: () => this.openAbout()
|
|
961
|
+
});
|
|
962
|
+
|
|
963
|
+
commandRegistry.registerCommand(CommonCommands.OPEN_VIEW, {
|
|
964
|
+
execute: () => this.quickInputService?.open(QuickViewService.PREFIX)
|
|
965
|
+
});
|
|
966
|
+
|
|
967
|
+
commandRegistry.registerCommand(CommonCommands.SELECT_COLOR_THEME, {
|
|
968
|
+
execute: () => this.selectColorTheme()
|
|
969
|
+
});
|
|
970
|
+
commandRegistry.registerCommand(CommonCommands.SELECT_ICON_THEME, {
|
|
971
|
+
execute: () => this.selectIconTheme()
|
|
972
|
+
});
|
|
973
|
+
commandRegistry.registerCommand(CommonCommands.PIN_TAB, new CurrentWidgetCommandAdapter(this.shell, {
|
|
974
|
+
isEnabled: title => Boolean(title && !isPinned(title)),
|
|
975
|
+
execute: title => this.togglePinned(title),
|
|
976
|
+
}));
|
|
977
|
+
commandRegistry.registerCommand(CommonCommands.UNPIN_TAB, new CurrentWidgetCommandAdapter(this.shell, {
|
|
978
|
+
isEnabled: title => Boolean(title && isPinned(title)),
|
|
979
|
+
execute: title => this.togglePinned(title),
|
|
980
|
+
}));
|
|
981
|
+
commandRegistry.registerCommand(CommonCommands.CONFIGURE_DISPLAY_LANGUAGE, {
|
|
982
|
+
execute: () => this.configureDisplayLanguage()
|
|
983
|
+
});
|
|
984
|
+
commandRegistry.registerCommand(CommonCommands.TOGGLE_BREADCRUMBS, {
|
|
985
|
+
execute: () => this.toggleBreadcrumbs(),
|
|
986
|
+
isToggled: () => this.isBreadcrumbsEnabled(),
|
|
987
|
+
});
|
|
988
|
+
commandRegistry.registerCommand(CommonCommands.NEW_UNTITLED_TEXT_FILE, {
|
|
989
|
+
execute: async () => {
|
|
990
|
+
const untitledUri = this.untitledResourceResolver.createUntitledURI('', await this.workingDirProvider.getUserWorkingDir());
|
|
991
|
+
this.untitledResourceResolver.resolve(untitledUri);
|
|
992
|
+
return open(this.openerService, untitledUri);
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
commandRegistry.registerCommand(CommonCommands.NEW_UNTITLED_FILE, {
|
|
996
|
+
execute: async () => this.showNewFilePicker()
|
|
997
|
+
});
|
|
998
|
+
|
|
999
|
+
for (const [index, ordinal] of this.getOrdinalNumbers().entries()) {
|
|
1000
|
+
commandRegistry.registerCommand({ id: `workbench.action.focus${ordinal}EditorGroup`, label: index === 0 ? nls.localizeByDefault('Focus First Editor Group') : '', category: nls.localize(CommonCommands.VIEW_CATEGORY_KEY, CommonCommands.VIEW_CATEGORY) }, {
|
|
1001
|
+
isEnabled: () => this.shell.mainAreaTabBars.length > index,
|
|
1002
|
+
execute: () => {
|
|
1003
|
+
const widget = this.shell.mainAreaTabBars[index]?.currentTitle?.owner;
|
|
1004
|
+
if (widget) {
|
|
1005
|
+
this.shell.activateWidget(widget.id);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
protected getOrdinalNumbers(): readonly string[] {
|
|
1013
|
+
return ['First', 'Second', 'Third', 'Fourth', 'Fifth', 'Sixth', 'Seventh', 'Eighth', 'Ninth'];
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
protected isElectron(): boolean {
|
|
1017
|
+
return environment.electron.is();
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
protected togglePinned(title?: Title<Widget>): void {
|
|
1021
|
+
if (title) {
|
|
1022
|
+
togglePinned(title);
|
|
1023
|
+
this.updatePinnedKey();
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
registerKeybindings(registry: KeybindingRegistry): void {
|
|
1028
|
+
if (supportCut) {
|
|
1029
|
+
registry.registerKeybinding({
|
|
1030
|
+
command: CommonCommands.CUT.id,
|
|
1031
|
+
keybinding: 'ctrlcmd+x'
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
if (supportCopy) {
|
|
1035
|
+
registry.registerKeybinding({
|
|
1036
|
+
command: CommonCommands.COPY.id,
|
|
1037
|
+
keybinding: 'ctrlcmd+c'
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
if (supportPaste) {
|
|
1041
|
+
registry.registerKeybinding({
|
|
1042
|
+
command: CommonCommands.PASTE.id,
|
|
1043
|
+
keybinding: 'ctrlcmd+v'
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
registry.registerKeybinding({
|
|
1047
|
+
command: CommonCommands.COPY_PATH.id,
|
|
1048
|
+
keybinding: isWindows ? 'shift+alt+c' : 'ctrlcmd+alt+c',
|
|
1049
|
+
when: '!editorFocus'
|
|
1050
|
+
});
|
|
1051
|
+
registry.registerKeybindings(
|
|
1052
|
+
// Edition
|
|
1053
|
+
{
|
|
1054
|
+
command: CommonCommands.UNDO.id,
|
|
1055
|
+
keybinding: 'ctrlcmd+z'
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
command: CommonCommands.REDO.id,
|
|
1059
|
+
keybinding: 'ctrlcmd+shift+z'
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
command: CommonCommands.SELECT_ALL.id,
|
|
1063
|
+
keybinding: 'ctrlcmd+a'
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
command: CommonCommands.FIND.id,
|
|
1067
|
+
keybinding: 'ctrlcmd+f'
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
command: CommonCommands.REPLACE.id,
|
|
1071
|
+
keybinding: 'ctrlcmd+alt+f'
|
|
1072
|
+
},
|
|
1073
|
+
// Tabs
|
|
1074
|
+
{
|
|
1075
|
+
command: CommonCommands.NEXT_TAB.id,
|
|
1076
|
+
keybinding: 'ctrlcmd+tab'
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
command: CommonCommands.NEXT_TAB.id,
|
|
1080
|
+
keybinding: 'ctrlcmd+alt+d'
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
command: CommonCommands.PREVIOUS_TAB.id,
|
|
1084
|
+
keybinding: 'ctrlcmd+shift+tab'
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
command: CommonCommands.PREVIOUS_TAB.id,
|
|
1088
|
+
keybinding: 'ctrlcmd+alt+a'
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
command: CommonCommands.CLOSE_MAIN_TAB.id,
|
|
1092
|
+
keybinding: this.isElectron() ? (isWindows ? 'ctrl+f4' : 'ctrlcmd+w') : 'alt+w'
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
command: CommonCommands.CLOSE_OTHER_MAIN_TABS.id,
|
|
1096
|
+
keybinding: 'ctrlcmd+alt+t'
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
command: CommonCommands.CLOSE_ALL_MAIN_TABS.id,
|
|
1100
|
+
keybinding: this.isElectron() ? 'ctrlCmd+k ctrlCmd+w' : 'alt+shift+w'
|
|
1101
|
+
},
|
|
1102
|
+
// Panels
|
|
1103
|
+
{
|
|
1104
|
+
command: CommonCommands.COLLAPSE_PANEL.id,
|
|
1105
|
+
keybinding: 'alt+c'
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
command: CommonCommands.TOGGLE_BOTTOM_PANEL.id,
|
|
1109
|
+
keybinding: 'ctrlcmd+j',
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
command: CommonCommands.COLLAPSE_ALL_PANELS.id,
|
|
1113
|
+
keybinding: 'alt+shift+c',
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
command: CommonCommands.TOGGLE_MAXIMIZED.id,
|
|
1117
|
+
keybinding: 'alt+m',
|
|
1118
|
+
},
|
|
1119
|
+
// Saving
|
|
1120
|
+
{
|
|
1121
|
+
command: CommonCommands.SAVE.id,
|
|
1122
|
+
keybinding: 'ctrlcmd+s'
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
command: CommonCommands.SAVE_WITHOUT_FORMATTING.id,
|
|
1126
|
+
keybinding: 'ctrlcmd+k s'
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
command: CommonCommands.SAVE_ALL.id,
|
|
1130
|
+
keybinding: 'ctrlcmd+alt+s'
|
|
1131
|
+
},
|
|
1132
|
+
// Theming
|
|
1133
|
+
{
|
|
1134
|
+
command: CommonCommands.SELECT_COLOR_THEME.id,
|
|
1135
|
+
keybinding: 'ctrlcmd+k ctrlcmd+t'
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
command: CommonCommands.PIN_TAB.id,
|
|
1139
|
+
keybinding: 'ctrlcmd+k shift+enter',
|
|
1140
|
+
when: '!activeEditorIsPinned'
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
command: CommonCommands.UNPIN_TAB.id,
|
|
1144
|
+
keybinding: 'ctrlcmd+k shift+enter',
|
|
1145
|
+
when: 'activeEditorIsPinned'
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
command: CommonCommands.NEW_UNTITLED_TEXT_FILE.id,
|
|
1149
|
+
keybinding: this.isElectron() ? 'ctrlcmd+n' : 'alt+n',
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
command: CommonCommands.NEW_UNTITLED_FILE.id,
|
|
1153
|
+
keybinding: 'ctrlcmd+alt+n'
|
|
1154
|
+
}
|
|
1155
|
+
);
|
|
1156
|
+
for (const [index, ordinal] of this.getOrdinalNumbers().entries()) {
|
|
1157
|
+
registry.registerKeybinding({
|
|
1158
|
+
command: `workbench.action.focus${ordinal}EditorGroup`,
|
|
1159
|
+
keybinding: `ctrlcmd+${(index + 1) % 10}`,
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
protected async save(options?: SaveOptions): Promise<void> {
|
|
1165
|
+
const widget = this.shell.currentWidget;
|
|
1166
|
+
this.saveResourceService.save(widget, options);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
protected async openAbout(): Promise<void> {
|
|
1170
|
+
this.aboutDialog.open();
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
protected shouldPreventClose = false;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* registers event listener which make sure that
|
|
1177
|
+
* window doesn't get closed if CMD/CTRL W is pressed.
|
|
1178
|
+
* Too many users have that in their muscle memory.
|
|
1179
|
+
* Chrome doesn't let us rebind or prevent default the keybinding, so this
|
|
1180
|
+
* at least doesn't close the window immediately.
|
|
1181
|
+
*/
|
|
1182
|
+
protected registerCtrlWHandling(): void {
|
|
1183
|
+
function isCtrlCmd(event: KeyboardEvent): boolean {
|
|
1184
|
+
return (isOSX && event.metaKey) || (!isOSX && event.ctrlKey);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
window.document.addEventListener('keydown', event => {
|
|
1188
|
+
this.shouldPreventClose = isCtrlCmd(event) && event.code === 'KeyW';
|
|
1189
|
+
});
|
|
1190
|
+
|
|
1191
|
+
window.document.addEventListener('keyup', () => {
|
|
1192
|
+
this.shouldPreventClose = false;
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
onWillStop(): OnWillStopAction | undefined {
|
|
1197
|
+
if (this.shouldPreventClose || this.shell.canSaveAll()) {
|
|
1198
|
+
return {
|
|
1199
|
+
reason: 'Dirty editors present',
|
|
1200
|
+
action: async () => {
|
|
1201
|
+
const captionsToSave = this.unsavedTabsCaptions();
|
|
1202
|
+
const untitledCaptionsToSave = this.unsavedUntitledTabsCaptions();
|
|
1203
|
+
const shouldExit = await this.confirmExitWithOrWithoutSaving(captionsToSave, async () => {
|
|
1204
|
+
await this.saveDirty(untitledCaptionsToSave);
|
|
1205
|
+
await this.shell.saveAll();
|
|
1206
|
+
});
|
|
1207
|
+
const allSavedOrDoNotSave = (
|
|
1208
|
+
shouldExit === true && untitledCaptionsToSave.length === 0 // Should save and cancel if any captions failed to save
|
|
1209
|
+
) || shouldExit === false; // Do not save
|
|
1210
|
+
|
|
1211
|
+
this.shouldPreventClose = !allSavedOrDoNotSave;
|
|
1212
|
+
return allSavedOrDoNotSave;
|
|
1213
|
+
|
|
1214
|
+
}
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
// Asks the user to confirm whether they want to exit with or without saving the changes
|
|
1219
|
+
private async confirmExitWithOrWithoutSaving(captionsToSave: string[], performSave: () => Promise<void>): Promise<boolean | undefined> {
|
|
1220
|
+
const div: HTMLElement = document.createElement('div');
|
|
1221
|
+
div.innerText = nls.localizeByDefault("Your changes will be lost if you don't save them.");
|
|
1222
|
+
|
|
1223
|
+
let result;
|
|
1224
|
+
if (captionsToSave.length > 0) {
|
|
1225
|
+
const span = document.createElement('span');
|
|
1226
|
+
span.appendChild(document.createElement('br'));
|
|
1227
|
+
captionsToSave.forEach(cap => {
|
|
1228
|
+
const b = document.createElement('b');
|
|
1229
|
+
b.innerText = cap;
|
|
1230
|
+
span.appendChild(b);
|
|
1231
|
+
span.appendChild(document.createElement('br'));
|
|
1232
|
+
});
|
|
1233
|
+
span.appendChild(document.createElement('br'));
|
|
1234
|
+
div.appendChild(span);
|
|
1235
|
+
result = await new ConfirmSaveDialog({
|
|
1236
|
+
title: nls.localizeByDefault('Do you want to save the changes to the following {0} files?', captionsToSave.length),
|
|
1237
|
+
msg: div,
|
|
1238
|
+
dontSave: nls.localizeByDefault("Don't Save"),
|
|
1239
|
+
save: nls.localizeByDefault('Save All'),
|
|
1240
|
+
cancel: Dialog.CANCEL
|
|
1241
|
+
}).open();
|
|
1242
|
+
|
|
1243
|
+
if (result) {
|
|
1244
|
+
await performSave();
|
|
1245
|
+
}
|
|
1246
|
+
} else {
|
|
1247
|
+
// fallback if not passed with an empty caption-list.
|
|
1248
|
+
result = confirmExit();
|
|
1249
|
+
}
|
|
1250
|
+
if (result !== undefined) {
|
|
1251
|
+
return result === true;
|
|
1252
|
+
} else {
|
|
1253
|
+
return undefined;
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
}
|
|
1257
|
+
protected unsavedTabsCaptions(): string[] {
|
|
1258
|
+
return this.shell.widgets
|
|
1259
|
+
.filter(widget => this.saveResourceService.canSave(widget))
|
|
1260
|
+
.map(widget => widget.title.label);
|
|
1261
|
+
}
|
|
1262
|
+
protected unsavedUntitledTabsCaptions(): Widget[] {
|
|
1263
|
+
return this.shell.widgets.filter(widget =>
|
|
1264
|
+
NavigatableWidget.getUri(widget)?.scheme === UNTITLED_SCHEME && this.saveResourceService.canSaveAs(widget)
|
|
1265
|
+
);
|
|
1266
|
+
}
|
|
1267
|
+
protected async configureDisplayLanguage(): Promise<void> {
|
|
1268
|
+
const languageInfo = await this.languageQuickPickService.pickDisplayLanguage();
|
|
1269
|
+
if (languageInfo && !nls.isSelectedLocale(languageInfo.languageId) && await this.confirmRestart(
|
|
1270
|
+
languageInfo.localizedLanguageName ?? languageInfo.languageName ?? languageInfo.languageId
|
|
1271
|
+
)) {
|
|
1272
|
+
nls.setLocale(languageInfo.languageId);
|
|
1273
|
+
this.windowService.setSafeToShutDown();
|
|
1274
|
+
this.windowService.reload();
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* saves any dirty widget in toSave
|
|
1279
|
+
* side effect - will pop all widgets from toSave that was saved
|
|
1280
|
+
* @param toSave
|
|
1281
|
+
*/
|
|
1282
|
+
protected async saveDirty(toSave: Widget[]): Promise<void> {
|
|
1283
|
+
for (const widget of toSave) {
|
|
1284
|
+
const saveable = Saveable.get(widget);
|
|
1285
|
+
if (saveable?.dirty) {
|
|
1286
|
+
await this.saveResourceService.save(widget);
|
|
1287
|
+
if (!this.saveResourceService.canSave(widget)) {
|
|
1288
|
+
toSave.pop();
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
protected toggleBreadcrumbs(): void {
|
|
1294
|
+
const value: boolean | undefined = this.preferenceService.get('breadcrumbs.enabled');
|
|
1295
|
+
this.preferenceService.set('breadcrumbs.enabled', !value, PreferenceScope.User);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
protected isBreadcrumbsEnabled(): boolean {
|
|
1299
|
+
return !!this.preferenceService.get('breadcrumbs.enabled');
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
protected async confirmRestart(languageName: string): Promise<boolean> {
|
|
1303
|
+
const appName = FrontendApplicationConfigProvider.get().applicationName;
|
|
1304
|
+
const shouldRestart = await new ConfirmDialog({
|
|
1305
|
+
title: nls.localizeByDefault('Restart {0} to switch to {1}?', appName, languageName),
|
|
1306
|
+
msg: nls.localizeByDefault('To change the display language to {0}, {1} needs to restart.', languageName, appName),
|
|
1307
|
+
ok: nls.localizeByDefault('Restart'),
|
|
1308
|
+
cancel: Dialog.CANCEL,
|
|
1309
|
+
}).open();
|
|
1310
|
+
return shouldRestart === true;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
protected selectIconTheme(): void {
|
|
1314
|
+
let resetTo: IconTheme | undefined = this.iconThemes.getCurrent();
|
|
1315
|
+
const setTheme = (id: string, persist: boolean) => {
|
|
1316
|
+
const theme = this.iconThemes.getDefinition(id);
|
|
1317
|
+
if (theme) {
|
|
1318
|
+
this.iconThemes.setCurrent(theme as IconTheme, persist);
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
const previewTheme = debounce(setTheme, 200);
|
|
1322
|
+
|
|
1323
|
+
let items: Array<QuickPickItem & { id: string }> = [];
|
|
1324
|
+
for (const iconTheme of this.iconThemes.definitions) {
|
|
1325
|
+
items.push({
|
|
1326
|
+
id: iconTheme.id,
|
|
1327
|
+
label: iconTheme.label,
|
|
1328
|
+
description: iconTheme.description,
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
items = items.sort((a, b) => {
|
|
1332
|
+
if (a.id === 'none') {
|
|
1333
|
+
return -1;
|
|
1334
|
+
}
|
|
1335
|
+
return a.label!.localeCompare(b.label!);
|
|
1336
|
+
});
|
|
1337
|
+
|
|
1338
|
+
this.quickInputService?.showQuickPick(items,
|
|
1339
|
+
{
|
|
1340
|
+
placeholder: nls.localizeByDefault('Select File Icon Theme'),
|
|
1341
|
+
activeItem: items.find(item => item.id === resetTo?.id),
|
|
1342
|
+
onDidChangeSelection: (_, selectedItems) => {
|
|
1343
|
+
resetTo = undefined;
|
|
1344
|
+
setTheme(selectedItems[0].id, true);
|
|
1345
|
+
},
|
|
1346
|
+
onDidChangeActive: (_, activeItems) => {
|
|
1347
|
+
previewTheme(activeItems[0].id, false);
|
|
1348
|
+
},
|
|
1349
|
+
onDidHide: () => {
|
|
1350
|
+
if (resetTo) {
|
|
1351
|
+
this.iconThemes.setCurrent(resetTo, false);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
protected selectColorTheme(): void {
|
|
1358
|
+
let resetTo: string | undefined = this.themeService.getCurrentTheme().id;
|
|
1359
|
+
const setTheme = (id: string, persist: boolean) => this.themeService.setCurrentTheme(id, persist);
|
|
1360
|
+
const previewTheme = debounce(setTheme, 200);
|
|
1361
|
+
type QuickPickWithId = QuickPickItem & { id: string };
|
|
1362
|
+
const itemsByTheme: {
|
|
1363
|
+
light: Array<QuickPickWithId>,
|
|
1364
|
+
dark: Array<QuickPickWithId>,
|
|
1365
|
+
hc: Array<QuickPickWithId>,
|
|
1366
|
+
hcLight: Array<QuickPickWithId>
|
|
1367
|
+
} = { light: [], dark: [], hc: [], hcLight: [] };
|
|
1368
|
+
|
|
1369
|
+
const lightThemesSeparator = nls.localizeByDefault('light themes');
|
|
1370
|
+
const darkThemesSeparator = nls.localizeByDefault('dark themes');
|
|
1371
|
+
const highContrastThemesSeparator = nls.localizeByDefault('high contrast themes');
|
|
1372
|
+
|
|
1373
|
+
for (const theme of this.themeService.getThemes().sort((a, b) => a.label.localeCompare(b.label))) {
|
|
1374
|
+
const themeItems: QuickPickItemOrSeparator[] = itemsByTheme[theme.type];
|
|
1375
|
+
|
|
1376
|
+
// Add a separator for the first item in the respective group.
|
|
1377
|
+
// High Contrast Themes despite dark or light should be grouped together.
|
|
1378
|
+
if (themeItems.length === 0 && theme.type !== 'hcLight') {
|
|
1379
|
+
let label = '';
|
|
1380
|
+
if (theme.type === 'light') {
|
|
1381
|
+
label = lightThemesSeparator;
|
|
1382
|
+
} else if (theme.type === 'dark') {
|
|
1383
|
+
label = darkThemesSeparator;
|
|
1384
|
+
} else {
|
|
1385
|
+
label = highContrastThemesSeparator;
|
|
1386
|
+
}
|
|
1387
|
+
themeItems.push({
|
|
1388
|
+
type: 'separator',
|
|
1389
|
+
label
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
themeItems.push({
|
|
1394
|
+
id: theme.id,
|
|
1395
|
+
label: theme.label,
|
|
1396
|
+
description: theme.description,
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
const items = [...itemsByTheme.light, ...itemsByTheme.dark, ...itemsByTheme.hc, ...itemsByTheme.hcLight];
|
|
1400
|
+
this.quickInputService?.showQuickPick(items,
|
|
1401
|
+
{
|
|
1402
|
+
placeholder: nls.localizeByDefault('Select Color Theme (Up/Down Keys to Preview)'),
|
|
1403
|
+
activeItem: items.find(item => item.id === resetTo),
|
|
1404
|
+
onDidChangeSelection: (_, selectedItems) => {
|
|
1405
|
+
resetTo = undefined;
|
|
1406
|
+
setTheme(selectedItems[0].id, true);
|
|
1407
|
+
},
|
|
1408
|
+
onDidChangeActive: (_, activeItems) => {
|
|
1409
|
+
previewTheme(activeItems[0].id, false);
|
|
1410
|
+
},
|
|
1411
|
+
onDidHide: () => {
|
|
1412
|
+
if (resetTo) {
|
|
1413
|
+
setTheme(resetTo, false);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* @todo https://github.com/eclipse-theia/theia/issues/12824
|
|
1421
|
+
*/
|
|
1422
|
+
protected async showNewFilePicker(): Promise<void> {
|
|
1423
|
+
const newFileContributions = this.menuRegistry.getMenuNode(CommonMenus.FILE_NEW_CONTRIBUTIONS); // Add menus
|
|
1424
|
+
const items: QuickPickItemOrSeparator[] = [
|
|
1425
|
+
{
|
|
1426
|
+
label: nls.localizeByDefault('New Text File'),
|
|
1427
|
+
execute: async () => this.commandRegistry.executeCommand(CommonCommands.NEW_UNTITLED_TEXT_FILE.id)
|
|
1428
|
+
},
|
|
1429
|
+
...newFileContributions.children
|
|
1430
|
+
.flatMap(node => {
|
|
1431
|
+
if (node.children && node.children.length > 0) {
|
|
1432
|
+
return node.children;
|
|
1433
|
+
}
|
|
1434
|
+
return node;
|
|
1435
|
+
})
|
|
1436
|
+
.filter(node => node.role || node.command)
|
|
1437
|
+
.map(node => {
|
|
1438
|
+
if (node.role) {
|
|
1439
|
+
return { type: 'separator' } as QuickPickSeparator;
|
|
1440
|
+
}
|
|
1441
|
+
const command = this.commandRegistry.getCommand(node.command!);
|
|
1442
|
+
return {
|
|
1443
|
+
label: command!.label!,
|
|
1444
|
+
execute: async () => this.commandRegistry.executeCommand(command!.id!)
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
})
|
|
1448
|
+
];
|
|
1449
|
+
this.quickInputService.showQuickPick(items, {
|
|
1450
|
+
title: nls.localizeByDefault('New File...'),
|
|
1451
|
+
placeholder: nls.localizeByDefault('Select File Type or Enter File Name...'),
|
|
1452
|
+
canSelectMany: false
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
registerColors(colors: ColorRegistry): void {
|
|
1457
|
+
colors.register(
|
|
1458
|
+
// Base Colors should be aligned with https://code.visualstudio.com/api/references/theme-color#base-colors
|
|
1459
|
+
// if not yet contributed by Monaco, check runtime css variables to learn
|
|
1460
|
+
{ id: 'selection.background', defaults: { dark: '#217daf', light: '#c0dbf1' }, description: 'Overall border color for focused elements. This color is only used if not overridden by a component.' },
|
|
1461
|
+
{ id: 'icon.foreground', defaults: { dark: '#C5C5C5', light: '#424242', hcDark: '#FFFFFF', hcLight: '#292929' }, description: 'The default color for icons in the workbench.' },
|
|
1462
|
+
{ id: 'sash.hoverBorder', defaults: { dark: Color.transparent('focusBorder', 0.99), light: Color.transparent('focusBorder', 0.99), hcDark: 'focusBorder', hcLight: 'focusBorder' }, description: 'The hover border color for draggable sashes.' },
|
|
1463
|
+
{ id: 'sash.activeBorder', defaults: { dark: 'focusBorder', light: 'focusBorder', hcDark: 'focusBorder' }, description: 'The active border color for draggable sashes.' },
|
|
1464
|
+
// Window border colors should be aligned with https://code.visualstudio.com/api/references/theme-color#window-border
|
|
1465
|
+
{
|
|
1466
|
+
id: 'window.activeBorder', defaults: {
|
|
1467
|
+
hcDark: 'contrastBorder',
|
|
1468
|
+
hcLight: 'contrastBorder'
|
|
1469
|
+
}, description: 'The color used for the border of the window when it is active.'
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
id: 'window.inactiveBorder', defaults: {
|
|
1473
|
+
hcDark: 'contrastBorder',
|
|
1474
|
+
hcLight: 'contrastBorder'
|
|
1475
|
+
},
|
|
1476
|
+
description: 'The color used for the border of the window when it is inactive.'
|
|
1477
|
+
},
|
|
1478
|
+
|
|
1479
|
+
// Buttons should be aligned with https://code.visualstudio.com/api/references/theme-color#button-control
|
|
1480
|
+
// if not yet contributed by Monaco, check runtime css variables to learn
|
|
1481
|
+
{ id: 'button.foreground', defaults: { dark: Color.white, light: Color.white, hcDark: Color.white, hcLight: Color.white }, description: 'Button foreground color.' },
|
|
1482
|
+
{ id: 'button.background', defaults: { dark: '#0E639C', light: '#007ACC', hcDark: undefined, hcLight: '#0F4A85' }, description: 'Button background color.' },
|
|
1483
|
+
{ id: 'button.hoverBackground', defaults: { dark: Color.lighten('button.background', 0.2), light: Color.darken('button.background', 0.2) }, description: 'Button background color when hovering.' },
|
|
1484
|
+
|
|
1485
|
+
// Activity Bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#activity-bar
|
|
1486
|
+
{
|
|
1487
|
+
id: 'activityBar.background', defaults: {
|
|
1488
|
+
dark: '#333333',
|
|
1489
|
+
light: '#2C2C2C',
|
|
1490
|
+
hcDark: '#000000',
|
|
1491
|
+
hcLight: '#FFFFFF'
|
|
1492
|
+
}, description: 'Activity bar background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
id: 'activityBar.foreground', defaults: {
|
|
1496
|
+
dark: Color.white,
|
|
1497
|
+
light: Color.white,
|
|
1498
|
+
hcDark: Color.white,
|
|
1499
|
+
hcLight: 'editor.foreground'
|
|
1500
|
+
}, description: 'Activity bar item foreground color when it is active. The activity bar is showing on the far left or right and allows to switch between views of the side bar.',
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
id: 'activityBar.inactiveForeground', defaults: {
|
|
1504
|
+
dark: Color.transparent('activityBar.foreground', 0.4),
|
|
1505
|
+
light: Color.transparent('activityBar.foreground', 0.4),
|
|
1506
|
+
hcDark: Color.white,
|
|
1507
|
+
hcLight: 'editor.foreground'
|
|
1508
|
+
}, description: 'Activity bar item foreground color when it is inactive. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
id: 'activityBar.border', defaults: {
|
|
1512
|
+
hcDark: 'contrastBorder',
|
|
1513
|
+
hcLight: 'contrastBorder'
|
|
1514
|
+
}, description: 'Activity bar border color separating to the side bar. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
id: 'activityBar.activeBorder', defaults: {
|
|
1518
|
+
dark: 'activityBar.foreground',
|
|
1519
|
+
light: 'activityBar.foreground',
|
|
1520
|
+
hcLight: 'contrastBorder'
|
|
1521
|
+
}, description: 'Activity bar border color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
id: 'activityBar.activeFocusBorder', defaults: {
|
|
1525
|
+
hcLight: '#B5200D'
|
|
1526
|
+
}, description: 'Activity bar focus border color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1527
|
+
},
|
|
1528
|
+
{ id: 'activityBar.activeBackground', description: 'Activity bar background color for the active item. The activity bar is showing on the far left or right and allows to switch between views of the side bar.' },
|
|
1529
|
+
{
|
|
1530
|
+
id: 'activityBar.dropBackground', defaults: {
|
|
1531
|
+
dark: Color.transparent('#ffffff', 0.12),
|
|
1532
|
+
light: Color.transparent('#ffffff', 0.12),
|
|
1533
|
+
hcDark: Color.transparent('#ffffff', 0.12),
|
|
1534
|
+
}, description: 'Drag and drop feedback color for the activity bar items. The color should have transparency so that the activity bar entries can still shine through. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
id: 'activityBarBadge.background', defaults: {
|
|
1538
|
+
dark: '#007ACC',
|
|
1539
|
+
light: '#007ACC',
|
|
1540
|
+
hcDark: '#000000',
|
|
1541
|
+
hcLight: '#0F4A85'
|
|
1542
|
+
}, description: 'Activity notification badge background color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
id: 'activityBarBadge.foreground', defaults: {
|
|
1546
|
+
dark: Color.white,
|
|
1547
|
+
light: Color.white,
|
|
1548
|
+
hcDark: Color.white,
|
|
1549
|
+
hcLight: Color.white
|
|
1550
|
+
}, description: 'Activity notification badge foreground color. The activity bar is showing on the far left or right and allows to switch between views of the side bar.'
|
|
1551
|
+
},
|
|
1552
|
+
|
|
1553
|
+
// Side Bar should be aligned with https://code.visualstudio.com/api/references/theme-color#side-bar
|
|
1554
|
+
// if not yet contributed by Monaco, check runtime css variables to learn
|
|
1555
|
+
{ id: 'sideBar.background', defaults: { dark: '#252526', light: '#F3F3F3', hcDark: '#000000', hcLight: '#FFFFFF' }, description: 'Side bar background color. The side bar is the container for views like explorer and search.' },
|
|
1556
|
+
{ id: 'sideBar.foreground', description: 'Side bar foreground color. The side bar is the container for views like explorer and search.' },
|
|
1557
|
+
{ id: 'sideBarSectionHeader.background', defaults: { dark: '#80808033', light: '#80808033' }, description: 'Side bar section header background color. The side bar is the container for views like explorer and search.' },
|
|
1558
|
+
{ id: 'sideBarSectionHeader.foreground', description: 'Side bar foreground color. The side bar is the container for views like explorer and search.' },
|
|
1559
|
+
{ id: 'sideBarSectionHeader.border', defaults: { dark: 'contrastBorder', light: 'contrastBorder', hcDark: 'contrastBorder', hcLight: 'contrastBorder' }, description: 'Side bar section header border color. The side bar is the container for views like explorer and search.' },
|
|
1560
|
+
|
|
1561
|
+
// Lists and Trees colors should be aligned with https://code.visualstudio.com/api/references/theme-color#lists-and-trees
|
|
1562
|
+
// if not yet contributed by Monaco, check runtime css variables to learn.
|
|
1563
|
+
// TODO: Following are not yet supported/no respective elements in theia:
|
|
1564
|
+
// list.focusBackground, list.focusForeground, list.inactiveFocusBackground, list.filterMatchBorder,
|
|
1565
|
+
// list.dropBackground, listFilterWidget.outline, listFilterWidget.noMatchesOutline
|
|
1566
|
+
// list.invalidItemForeground => tree node needs an respective class
|
|
1567
|
+
{ id: 'list.activeSelectionBackground', defaults: { dark: '#094771', light: '#0074E8', hcLight: Color.transparent('#0F4A85', 0.1) }, description: 'List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1568
|
+
{ id: 'list.activeSelectionForeground', defaults: { dark: '#FFF', light: '#FFF' }, description: 'List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1569
|
+
{ id: 'list.inactiveSelectionBackground', defaults: { dark: '#37373D', light: '#E4E6F1', hcLight: Color.transparent('#0F4A85', 0.1) }, description: 'List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1570
|
+
{ id: 'list.inactiveSelectionForeground', description: 'List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.' },
|
|
1571
|
+
{ id: 'list.hoverBackground', defaults: { dark: '#2A2D2E', light: '#F0F0F0', hcLight: Color.transparent('#0F4A85', 0.1) }, description: 'List/Tree background when hovering over items using the mouse.' },
|
|
1572
|
+
{ id: 'list.hoverForeground', description: 'List/Tree foreground when hovering over items using the mouse.' },
|
|
1573
|
+
{ id: 'list.errorForeground', defaults: { dark: '#F88070', light: '#B01011' }, description: 'Foreground color of list items containing errors.' },
|
|
1574
|
+
{ id: 'list.warningForeground', defaults: { dark: '#CCA700', light: '#855F00' }, description: 'Foreground color of list items containing warnings.' },
|
|
1575
|
+
{ id: 'list.filterMatchBackground', defaults: { dark: 'editor.findMatchHighlightBackground', light: 'editor.findMatchHighlightBackground' }, description: 'Background color of the filtered match.' },
|
|
1576
|
+
{ id: 'list.highlightForeground', defaults: { dark: '#18A3FF', light: '#0066BF', hcDark: 'focusBorder', hcLight: 'focusBorder' }, description: 'List/Tree foreground color of the match highlights when searching inside the list/tree.' },
|
|
1577
|
+
{ id: 'list.focusHighlightForeground', defaults: { dark: 'list.highlightForeground', light: 'list.activeSelectionForeground', hcDark: 'list.highlightForeground', hcLight: 'list.highlightForeground' }, description: 'List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.' },
|
|
1578
|
+
{ id: 'tree.inactiveIndentGuidesStroke', defaults: { dark: Color.transparent('tree.indentGuidesStroke', 0.4), light: Color.transparent('tree.indentGuidesStroke', 0.4), hcDark: Color.transparent('tree.indentGuidesStroke', 0.4) }, description: 'Tree stroke color for the inactive indentation guides.' },
|
|
1579
|
+
|
|
1580
|
+
// Editor Group & Tabs colors should be aligned with https://code.visualstudio.com/api/references/theme-color#editor-groups-tabs
|
|
1581
|
+
{
|
|
1582
|
+
id: 'editorGroup.border',
|
|
1583
|
+
defaults: {
|
|
1584
|
+
dark: '#444444',
|
|
1585
|
+
light: '#E7E7E7',
|
|
1586
|
+
hcDark: 'contrastBorder',
|
|
1587
|
+
hcLight: 'contrastBorder'
|
|
1588
|
+
},
|
|
1589
|
+
description: 'Color to separate multiple editor groups from each other. Editor groups are the containers of editors.'
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
id: 'editorGroup.dropBackground',
|
|
1593
|
+
defaults: {
|
|
1594
|
+
dark: Color.transparent('#53595D', 0.5),
|
|
1595
|
+
light: Color.transparent('#2677CB', 0.18),
|
|
1596
|
+
hcLight: Color.transparent('#0F4A85', 0.50)
|
|
1597
|
+
},
|
|
1598
|
+
description: 'Background color when dragging editors around. The color should have transparency so that the editor contents can still shine through.'
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
id: 'editorGroupHeader.tabsBackground',
|
|
1602
|
+
defaults: {
|
|
1603
|
+
dark: '#252526',
|
|
1604
|
+
light: '#F3F3F3',
|
|
1605
|
+
},
|
|
1606
|
+
description: 'Background color of the editor group title header when tabs are enabled. Editor groups are the containers of editors.'
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
id: 'editorGroupHeader.tabsBorder',
|
|
1610
|
+
defaults: {
|
|
1611
|
+
hcDark: 'contrastBorder'
|
|
1612
|
+
},
|
|
1613
|
+
description: 'Border color of the editor group title header when tabs are enabled. Editor groups are the containers of editors.'
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
id: 'tab.activeBackground',
|
|
1617
|
+
defaults: {
|
|
1618
|
+
dark: 'editor.background',
|
|
1619
|
+
light: 'editor.background',
|
|
1620
|
+
hcDark: 'editor.background',
|
|
1621
|
+
hcLight: 'editor.background'
|
|
1622
|
+
},
|
|
1623
|
+
description: 'Active tab background color. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
id: 'tab.unfocusedActiveBackground',
|
|
1627
|
+
defaults: {
|
|
1628
|
+
dark: 'tab.activeBackground',
|
|
1629
|
+
light: 'tab.activeBackground',
|
|
1630
|
+
hcDark: 'tab.activeBackground',
|
|
1631
|
+
hcLight: 'tab.activeBackground'
|
|
1632
|
+
},
|
|
1633
|
+
description: 'Active tab background color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
id: 'tab.inactiveBackground',
|
|
1637
|
+
defaults: {
|
|
1638
|
+
dark: '#2D2D2D',
|
|
1639
|
+
light: '#ECECEC'
|
|
1640
|
+
},
|
|
1641
|
+
description: 'Inactive tab background color. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
id: 'tab.activeForeground',
|
|
1645
|
+
defaults: {
|
|
1646
|
+
dark: Color.white,
|
|
1647
|
+
light: '#333333',
|
|
1648
|
+
hcDark: Color.white,
|
|
1649
|
+
hcLight: '#292929'
|
|
1650
|
+
}, description: 'Active tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
id: 'tab.inactiveForeground', defaults: {
|
|
1654
|
+
dark: Color.transparent('tab.activeForeground', 0.5),
|
|
1655
|
+
light: Color.transparent('tab.activeForeground', 0.7),
|
|
1656
|
+
hcDark: Color.white,
|
|
1657
|
+
hcLight: '#292929'
|
|
1658
|
+
}, description: 'Inactive tab foreground color in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
id: 'tab.unfocusedActiveForeground', defaults: {
|
|
1662
|
+
dark: Color.transparent('tab.activeForeground', 0.5),
|
|
1663
|
+
light: Color.transparent('tab.activeForeground', 0.7),
|
|
1664
|
+
hcDark: Color.white,
|
|
1665
|
+
hcLight: '#292929'
|
|
1666
|
+
}, description: 'Active tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
id: 'tab.unfocusedInactiveForeground', defaults: {
|
|
1670
|
+
dark: Color.transparent('tab.inactiveForeground', 0.5),
|
|
1671
|
+
light: Color.transparent('tab.inactiveForeground', 0.5),
|
|
1672
|
+
hcDark: Color.white,
|
|
1673
|
+
hcLight: '#292929'
|
|
1674
|
+
}, description: 'Inactive tab foreground color in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
id: 'tab.border', defaults: {
|
|
1678
|
+
dark: '#252526',
|
|
1679
|
+
light: '#F3F3F3',
|
|
1680
|
+
hcDark: 'contrastBorder',
|
|
1681
|
+
hcLight: 'contrastBorder'
|
|
1682
|
+
}, description: 'Border to separate tabs from each other. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
id: 'tab.activeBorder',
|
|
1686
|
+
description: 'Border on the bottom of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
id: 'tab.unfocusedActiveBorder',
|
|
1690
|
+
defaults: {
|
|
1691
|
+
dark: Color.transparent('tab.activeBorder', 0.5),
|
|
1692
|
+
light: Color.transparent('tab.activeBorder', 0.7)
|
|
1693
|
+
},
|
|
1694
|
+
description: 'Border on the bottom of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
id: 'tab.activeBorderTop',
|
|
1698
|
+
defaults: {
|
|
1699
|
+
hcLight: '#B5200D'
|
|
1700
|
+
},
|
|
1701
|
+
description: 'Border to the top of an active tab. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
id: 'tab.unfocusedActiveBorderTop', defaults: {
|
|
1705
|
+
dark: Color.transparent('tab.activeBorderTop', 0.5),
|
|
1706
|
+
light: Color.transparent('tab.activeBorderTop', 0.7),
|
|
1707
|
+
hcLight: '#B5200D'
|
|
1708
|
+
}, description: 'Border to the top of an active tab in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
id: 'tab.hoverBackground',
|
|
1712
|
+
description: 'Tab background color when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
id: 'tab.unfocusedHoverBackground', defaults: {
|
|
1716
|
+
dark: Color.transparent('tab.hoverBackground', 0.5),
|
|
1717
|
+
light: Color.transparent('tab.hoverBackground', 0.7)
|
|
1718
|
+
}, description: 'Tab background color in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
id: 'tab.hoverBorder',
|
|
1722
|
+
description: 'Border to highlight tabs when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
id: 'tab.unfocusedHoverBorder', defaults: {
|
|
1726
|
+
dark: Color.transparent('tab.hoverBorder', 0.5),
|
|
1727
|
+
light: Color.transparent('tab.hoverBorder', 0.7),
|
|
1728
|
+
hcLight: 'contrastBorder'
|
|
1729
|
+
}, description: 'Border to highlight tabs in an unfocused group when hovering. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
id: 'tab.activeModifiedBorder', defaults: {
|
|
1733
|
+
dark: '#3399CC',
|
|
1734
|
+
light: '#33AAEE',
|
|
1735
|
+
hcLight: 'contrastBorder'
|
|
1736
|
+
}, description: 'Border on the top of modified (dirty) active tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
id: 'tab.inactiveModifiedBorder', defaults: {
|
|
1740
|
+
dark: Color.transparent('tab.activeModifiedBorder', 0.5),
|
|
1741
|
+
light: Color.transparent('tab.activeModifiedBorder', 0.5),
|
|
1742
|
+
hcDark: Color.white,
|
|
1743
|
+
hcLight: 'contrastBorder'
|
|
1744
|
+
}, description: 'Border on the top of modified (dirty) inactive tabs in an active group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
id: 'tab.unfocusedActiveModifiedBorder', defaults: {
|
|
1748
|
+
dark: Color.transparent('tab.activeModifiedBorder', 0.5),
|
|
1749
|
+
light: Color.transparent('tab.activeModifiedBorder', 0.7),
|
|
1750
|
+
hcDark: Color.white,
|
|
1751
|
+
hcLight: 'contrastBorder'
|
|
1752
|
+
}, description: 'Border on the top of modified (dirty) active tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
id: 'tab.unfocusedInactiveModifiedBorder', defaults: {
|
|
1756
|
+
dark: Color.transparent('tab.inactiveModifiedBorder', 0.5),
|
|
1757
|
+
light: Color.transparent('tab.inactiveModifiedBorder', 0.5),
|
|
1758
|
+
hcDark: Color.white,
|
|
1759
|
+
hcLight: 'contrastBorder'
|
|
1760
|
+
}, description: 'Border on the top of modified (dirty) inactive tabs in an unfocused group. Tabs are the containers for editors in the editor area. Multiple tabs can be opened in one editor group. There can be multiple editor groups.'
|
|
1761
|
+
},
|
|
1762
|
+
|
|
1763
|
+
// Status bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#status-bar-colors
|
|
1764
|
+
// Not yet supported:
|
|
1765
|
+
// statusBarItem.prominentForeground, statusBarItem.prominentBackground, statusBarItem.prominentHoverBackground
|
|
1766
|
+
{
|
|
1767
|
+
id: 'statusBar.foreground', defaults: {
|
|
1768
|
+
dark: '#FFFFFF',
|
|
1769
|
+
light: '#FFFFFF',
|
|
1770
|
+
hcDark: '#FFFFFF',
|
|
1771
|
+
hcLight: 'editor.foreground'
|
|
1772
|
+
}, description: 'Status bar foreground color when a workspace is opened. The status bar is shown in the bottom of the window.'
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
id: 'statusBar.background', defaults: {
|
|
1776
|
+
dark: '#007ACC',
|
|
1777
|
+
light: '#007ACC'
|
|
1778
|
+
}, description: 'Status bar background color when a workspace is opened. The status bar is shown in the bottom of the window.'
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
id: 'statusBar.noFolderForeground', defaults: {
|
|
1782
|
+
dark: 'statusBar.foreground',
|
|
1783
|
+
light: 'statusBar.foreground',
|
|
1784
|
+
hcDark: 'statusBar.foreground',
|
|
1785
|
+
hcLight: 'statusBar.foreground'
|
|
1786
|
+
}, description: 'Status bar foreground color when no folder is opened. The status bar is shown in the bottom of the window.'
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
id: 'statusBar.noFolderBackground', defaults: {
|
|
1790
|
+
dark: '#68217A',
|
|
1791
|
+
light: '#68217A'
|
|
1792
|
+
}, description: 'Status bar background color when no folder is opened. The status bar is shown in the bottom of the window.'
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
id: 'statusBar.border', defaults: {
|
|
1796
|
+
hcDark: 'contrastBorder',
|
|
1797
|
+
hcLight: 'contrastBorder'
|
|
1798
|
+
}, description: 'Status bar border color separating to the sidebar and editor. The status bar is shown in the bottom of the window.'
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
id: 'statusBar.noFolderBorder', defaults: {
|
|
1802
|
+
dark: 'statusBar.border',
|
|
1803
|
+
light: 'statusBar.border',
|
|
1804
|
+
hcDark: 'statusBar.border',
|
|
1805
|
+
hcLight: 'statusBar.border'
|
|
1806
|
+
}, description: 'Status bar border color separating to the sidebar and editor when no folder is opened. The status bar is shown in the bottom of the window.'
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
id: 'statusBarItem.activeBackground', defaults: {
|
|
1810
|
+
dark: Color.rgba(255, 255, 255, 0.18),
|
|
1811
|
+
light: Color.rgba(255, 255, 255, 0.18),
|
|
1812
|
+
hcDark: Color.rgba(255, 255, 255, 0.18),
|
|
1813
|
+
hcLight: Color.rgba(0, 0, 0, 0.18)
|
|
1814
|
+
}, description: 'Status bar item background color when clicking. The status bar is shown in the bottom of the window.'
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
id: 'statusBarItem.hoverBackground', defaults: {
|
|
1818
|
+
dark: Color.rgba(255, 255, 255, 0.12),
|
|
1819
|
+
light: Color.rgba(255, 255, 255, 0.12),
|
|
1820
|
+
hcDark: Color.rgba(255, 255, 255, 0.12),
|
|
1821
|
+
hcLight: Color.rgba(0, 0, 0, 0.12)
|
|
1822
|
+
}, description: 'Status bar item background color when hovering. The status bar is shown in the bottom of the window.'
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
id: 'statusBarItem.errorBackground', defaults: {
|
|
1826
|
+
dark: Color.darken('errorBackground', 0.4),
|
|
1827
|
+
light: Color.darken('errorBackground', 0.4),
|
|
1828
|
+
hcDark: undefined,
|
|
1829
|
+
hcLight: '#B5200D'
|
|
1830
|
+
}, description: 'Status bar error items background color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window.'
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
id: 'statusBarItem.errorForeground', defaults: {
|
|
1834
|
+
dark: Color.white,
|
|
1835
|
+
light: Color.white,
|
|
1836
|
+
hcDark: Color.white,
|
|
1837
|
+
hcLight: Color.white
|
|
1838
|
+
}, description: 'Status bar error items foreground color. Error items stand out from other status bar entries to indicate error conditions. The status bar is shown in the bottom of the window.'
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
id: 'statusBarItem.warningBackground', defaults: {
|
|
1842
|
+
dark: Color.darken('warningBackground', 0.4),
|
|
1843
|
+
light: Color.darken('warningBackground', 0.4),
|
|
1844
|
+
hcDark: undefined,
|
|
1845
|
+
hcLight: '#895503'
|
|
1846
|
+
}, description: 'Status bar warning items background color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.'
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
id: 'statusBarItem.warningForeground', defaults: {
|
|
1850
|
+
dark: Color.white,
|
|
1851
|
+
light: Color.white,
|
|
1852
|
+
hcDark: Color.white,
|
|
1853
|
+
hcLight: Color.white
|
|
1854
|
+
}, description: 'Status bar warning items foreground color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.'
|
|
1855
|
+
},
|
|
1856
|
+
|
|
1857
|
+
// Quickinput colors should be aligned with https://code.visualstudio.com/api/references/theme-color#quick-picker
|
|
1858
|
+
// if not yet contributed by Monaco, check runtime css variables to learn.
|
|
1859
|
+
{
|
|
1860
|
+
id: 'quickInput.background', defaults: {
|
|
1861
|
+
dark: 'editorWidget.background',
|
|
1862
|
+
light: 'editorWidget.background',
|
|
1863
|
+
hcDark: 'editorWidget.background',
|
|
1864
|
+
hcLight: 'editorWidget.background'
|
|
1865
|
+
}, description: 'Quick Input background color. The Quick Input widget is the container for views like the color theme picker.'
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
id: 'quickInput.foreground', defaults: {
|
|
1869
|
+
dark: 'editorWidget.foreground',
|
|
1870
|
+
light: 'editorWidget.foreground',
|
|
1871
|
+
hcDark: 'editorWidget.foreground',
|
|
1872
|
+
hcLight: 'editorWidget.foreground'
|
|
1873
|
+
}, description: 'Quick Input foreground color. The Quick Input widget is the container for views like the color theme picker.'
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
id: 'quickInput.list.focusBackground', defaults: {
|
|
1877
|
+
dark: undefined,
|
|
1878
|
+
light: undefined,
|
|
1879
|
+
hcDark: undefined,
|
|
1880
|
+
hcLight: undefined
|
|
1881
|
+
}, description: 'quickInput.list.focusBackground deprecation. Please use quickInputList.focusBackground instead'
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
id: 'quickInputList.focusForeground', defaults: {
|
|
1885
|
+
dark: 'list.activeSelectionForeground',
|
|
1886
|
+
light: 'list.activeSelectionForeground',
|
|
1887
|
+
hcDark: 'list.activeSelectionForeground',
|
|
1888
|
+
hcLight: 'list.activeSelectionForeground'
|
|
1889
|
+
}, description: 'Quick picker foreground color for the focused item'
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
id: 'quickInputList.focusBackground', defaults: {
|
|
1893
|
+
dark: 'list.activeSelectionBackground',
|
|
1894
|
+
light: 'list.activeSelectionBackground',
|
|
1895
|
+
hcDark: undefined
|
|
1896
|
+
}, description: 'Quick picker background color for the focused item.'
|
|
1897
|
+
},
|
|
1898
|
+
|
|
1899
|
+
// Panel colors should be aligned with https://code.visualstudio.com/api/references/theme-color#panel-colors
|
|
1900
|
+
{
|
|
1901
|
+
id: 'panel.background', defaults: {
|
|
1902
|
+
dark: 'editor.background', light: 'editor.background', hcDark: 'editor.background', hcLight: 'editor.background'
|
|
1903
|
+
}, description: 'Panel background color. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
id: 'panel.border', defaults: {
|
|
1907
|
+
dark: Color.transparent('#808080', 0.35), light: Color.transparent('#808080', 0.35), hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
1908
|
+
}, description: 'Panel border color to separate the panel from the editor. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
id: 'panel.dropBackground', defaults: {
|
|
1912
|
+
dark: Color.rgba(255, 255, 255, 0.12), light: Color.transparent('#2677CB', 0.18), hcDark: Color.rgba(255, 255, 255, 0.12)
|
|
1913
|
+
}, description: 'Drag and drop feedback color for the panel title items. The color should have transparency so that the panel entries can still shine through. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
id: 'panelTitle.activeForeground', defaults: {
|
|
1917
|
+
dark: '#E7E7E7', light: '#424242', hcDark: Color.white, hcLight: 'editor.foreground'
|
|
1918
|
+
}, description: 'Title color for the active panel. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
id: 'panelTitle.inactiveForeground', defaults: {
|
|
1922
|
+
dark: Color.transparent('panelTitle.activeForeground', 0.6), light: Color.transparent('panelTitle.activeForeground', 0.75), hcDark: Color.white, hcLight: 'editor.foreground'
|
|
1923
|
+
}, description: 'Title color for the inactive panel. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
id: 'panelTitle.activeBorder', defaults: {
|
|
1927
|
+
dark: 'panelTitle.activeForeground', light: 'panelTitle.activeForeground', hcDark: 'contrastBorder', hcLight: '#B5200D'
|
|
1928
|
+
}, description: 'Border color for the active panel title. Panels are shown below the editor area and contain views like output and integrated terminal.'
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
id: 'panelInput.border', defaults: { light: '#ddd' },
|
|
1932
|
+
description: 'Input box border for inputs in the panel.'
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
id: 'imagePreview.border', defaults: {
|
|
1936
|
+
dark: Color.transparent('#808080', 0.35), light: Color.transparent('#808080', 0.35), hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
1937
|
+
}, description: 'Border color for image in image preview.'
|
|
1938
|
+
},
|
|
1939
|
+
|
|
1940
|
+
// Title Bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#title-bar-colors
|
|
1941
|
+
{
|
|
1942
|
+
id: 'titleBar.activeForeground', defaults: {
|
|
1943
|
+
dark: '#CCCCCC',
|
|
1944
|
+
light: '#333333',
|
|
1945
|
+
hcDark: '#FFFFFF',
|
|
1946
|
+
hcLight: '#292929'
|
|
1947
|
+
}, description: 'Title bar foreground when the window is active. Note that this color is currently only supported on macOS.'
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
id: 'titleBar.inactiveForeground', defaults: {
|
|
1951
|
+
dark: Color.transparent('titleBar.activeForeground', 0.6),
|
|
1952
|
+
light: Color.transparent('titleBar.activeForeground', 0.6),
|
|
1953
|
+
hcLight: '#292929'
|
|
1954
|
+
}, description: 'Title bar foreground when the window is inactive. Note that this color is currently only supported on macOS.'
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
id: 'titleBar.activeBackground', defaults: {
|
|
1958
|
+
dark: '#3C3C3C',
|
|
1959
|
+
light: '#DDDDDD',
|
|
1960
|
+
hcDark: '#000000',
|
|
1961
|
+
hcLight: '#FFFFFF'
|
|
1962
|
+
}, description: 'Title bar background when the window is active. Note that this color is currently only supported on macOS.'
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
id: 'titleBar.inactiveBackground', defaults: {
|
|
1966
|
+
dark: Color.transparent('titleBar.activeBackground', 0.6),
|
|
1967
|
+
light: Color.transparent('titleBar.activeBackground', 0.6)
|
|
1968
|
+
}, description: 'Title bar background when the window is inactive. Note that this color is currently only supported on macOS.'
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
id: 'titleBar.border', defaults: {
|
|
1972
|
+
hcDark: 'contrastBorder',
|
|
1973
|
+
hcLight: 'contrastBorder'
|
|
1974
|
+
}, description: 'Title bar border color. Note that this color is currently only supported on macOS.'
|
|
1975
|
+
},
|
|
1976
|
+
|
|
1977
|
+
// Menu Bar colors should be aligned with https://code.visualstudio.com/api/references/theme-color#menu-bar-colors
|
|
1978
|
+
{
|
|
1979
|
+
id: 'menubar.selectionForeground', defaults: {
|
|
1980
|
+
dark: 'titleBar.activeForeground',
|
|
1981
|
+
light: 'titleBar.activeForeground',
|
|
1982
|
+
hcDark: 'titleBar.activeForeground',
|
|
1983
|
+
hcLight: 'titleBar.activeForeground'
|
|
1984
|
+
}, description: 'Foreground color of the selected menu item in the menubar.'
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
id: 'menubar.selectionBackground', defaults: {
|
|
1988
|
+
dark: 'toolbar.hoverBackground',
|
|
1989
|
+
light: 'toolbar.hoverBackground'
|
|
1990
|
+
}, description: 'Background color of the selected menu item in the menubar.'
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
id: 'menubar.selectionBorder', defaults: {
|
|
1994
|
+
hcDark: 'activeContrastBorder', hcLight: 'activeContrastBorder'
|
|
1995
|
+
}, description: 'Border color of the selected menu item in the menubar.'
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
id: 'menu.border', defaults: {
|
|
1999
|
+
hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
2000
|
+
}, description: 'Border color of menus.'
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
id: 'menu.foreground', defaults: {
|
|
2004
|
+
dark: 'dropdown.foreground', light: 'foreground', hcDark: 'dropdown.foreground', hcLight: 'dropdown.foreground'
|
|
2005
|
+
},
|
|
2006
|
+
description: 'Foreground color of menu items.'
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
id: 'menu.background', defaults: {
|
|
2010
|
+
dark: 'dropdown.background', light: 'dropdown.background', hcDark: 'dropdown.background', hcLight: 'dropdown.background'
|
|
2011
|
+
}, description: 'Background color of menu items.'
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
id: 'menu.selectionForeground', defaults: {
|
|
2015
|
+
dark: 'list.activeSelectionForeground', light: 'list.activeSelectionForeground', hcDark: 'list.activeSelectionForeground', hcLight: 'list.activeSelectionForeground'
|
|
2016
|
+
}, description: 'Foreground color of the selected menu item in menus.'
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
id: 'menu.selectionBackground', defaults: {
|
|
2020
|
+
dark: 'list.activeSelectionBackground', light: 'list.activeSelectionBackground', hcDark: 'list.activeSelectionBackground', hcLight: 'list.activeSelectionBackground'
|
|
2021
|
+
},
|
|
2022
|
+
description: 'Background color of the selected menu item in menus.'
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
id: 'menu.selectionBorder', defaults: {
|
|
2026
|
+
hcDark: 'activeContrastBorder', hcLight: 'activeContrastBorder'
|
|
2027
|
+
}, description: 'Border color of the selected menu item in menus.'
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
id: 'menu.separatorBackground', defaults: {
|
|
2031
|
+
dark: '#BBBBBB', light: '#888888', hcDark: 'contrastBorder', hcLight: 'contrastBorder'
|
|
2032
|
+
},
|
|
2033
|
+
description: 'Color of a separator menu item in menus.'
|
|
2034
|
+
},
|
|
2035
|
+
|
|
2036
|
+
// Welcome Page colors should be aligned with https://code.visualstudio.com/api/references/theme-color#welcome-page
|
|
2037
|
+
{ id: 'welcomePage.background', description: 'Background color for the Welcome page.' },
|
|
2038
|
+
{ id: 'welcomePage.buttonBackground', defaults: { dark: Color.rgba(0, 0, 0, .2), light: Color.rgba(0, 0, 0, .04), hcDark: Color.black, hcLight: Color.white }, description: 'Background color for the buttons on the Welcome page.' },
|
|
2039
|
+
{ id: 'welcomePage.buttonHoverBackground', defaults: { dark: Color.rgba(200, 235, 255, .072), light: Color.rgba(0, 0, 0, .10) }, description: 'Hover background color for the buttons on the Welcome page.' },
|
|
2040
|
+
{ id: 'walkThrough.embeddedEditorBackground', defaults: { dark: Color.rgba(0, 0, 0, .4), light: '#f4f4f4' }, description: 'Background color for the embedded editors on the Interactive Playground.' },
|
|
2041
|
+
|
|
2042
|
+
// Dropdown colors should be aligned with https://code.visualstudio.com/api/references/theme-color#dropdown-control
|
|
2043
|
+
|
|
2044
|
+
{
|
|
2045
|
+
id: 'dropdown.background', defaults: {
|
|
2046
|
+
light: Color.white,
|
|
2047
|
+
dark: '#3C3C3C',
|
|
2048
|
+
hcDark: Color.black,
|
|
2049
|
+
hcLight: Color.white
|
|
2050
|
+
}, description: 'Dropdown background.'
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
id: 'dropdown.listBackground', defaults: {
|
|
2054
|
+
hcDark: Color.black,
|
|
2055
|
+
hcLight: Color.white
|
|
2056
|
+
}, description: 'Dropdown list background.'
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
id: 'dropdown.foreground', defaults: {
|
|
2060
|
+
dark: '#F0F0F0',
|
|
2061
|
+
hcDark: Color.white,
|
|
2062
|
+
hcLight: 'foreground'
|
|
2063
|
+
}, description: 'Dropdown foreground.'
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
id: 'dropdown.border', defaults: {
|
|
2067
|
+
light: '#CECECE',
|
|
2068
|
+
dark: 'dropdown.background',
|
|
2069
|
+
hcDark: 'contrastBorder',
|
|
2070
|
+
hcLight: 'contrastBorder'
|
|
2071
|
+
}, description: 'Dropdown border.'
|
|
2072
|
+
},
|
|
2073
|
+
|
|
2074
|
+
// Settings Editor colors should be aligned with https://code.visualstudio.com/api/references/theme-color#settings-editor-colors
|
|
2075
|
+
{
|
|
2076
|
+
id: 'settings.headerForeground', defaults: {
|
|
2077
|
+
light: '#444444', dark: '#e7e7e7', hcDark: '#ffffff', hcLight: '#292929'
|
|
2078
|
+
}, description: 'The foreground color for a section header or active title.'
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
id: 'settings.modifiedItemIndicator', defaults: {
|
|
2082
|
+
light: Color.rgba(102, 175, 224),
|
|
2083
|
+
dark: Color.rgba(12, 125, 157),
|
|
2084
|
+
hcDark: Color.rgba(0, 73, 122),
|
|
2085
|
+
hcLight: Color.rgba(102, 175, 224)
|
|
2086
|
+
}, description: 'The color of the modified setting indicator.'
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
id: 'settings.dropdownBackground', defaults: {
|
|
2090
|
+
dark: 'dropdown.background', light: 'dropdown.background', hcDark: 'dropdown.background', hcLight: 'dropdown.background'
|
|
2091
|
+
},
|
|
2092
|
+
description: 'Settings editor dropdown background.'
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
id: 'settings.dropdownForeground', defaults: {
|
|
2096
|
+
dark: 'dropdown.foreground', light: 'dropdown.foreground', hcDark: 'dropdown.foreground', hcLight: 'dropdown.foreground'
|
|
2097
|
+
}, description: 'Settings editor dropdown foreground.'
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
id: 'settings.dropdownBorder', defaults: {
|
|
2101
|
+
dark: 'dropdown.border', light: 'dropdown.border', hcDark: 'dropdown.border', hcLight: 'dropdown.border'
|
|
2102
|
+
}, description: 'Settings editor dropdown border.'
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
id: 'settings.dropdownListBorder', defaults: {
|
|
2106
|
+
dark: 'editorWidget.border', light: 'editorWidget.border', hcDark: 'editorWidget.border', hcLight: 'editorWidget.border'
|
|
2107
|
+
}, description: 'Settings editor dropdown list border. This surrounds the options and separates the options from the description.'
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
id: 'settings.checkboxBackground', defaults: {
|
|
2111
|
+
dark: 'checkbox.background', light: 'checkbox.background', hcDark: 'checkbox.background', hcLight: 'checkbox.background'
|
|
2112
|
+
}, description: 'Settings editor checkbox background.'
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
id: 'settings.checkboxForeground', defaults: {
|
|
2116
|
+
dark: 'checkbox.foreground', light: 'checkbox.foreground', hcDark: 'checkbox.foreground', hcLight: 'checkbox.foreground'
|
|
2117
|
+
}, description: 'Settings editor checkbox foreground.'
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
id: 'settings.checkboxBorder', defaults: {
|
|
2121
|
+
dark: 'checkbox.border', light: 'checkbox.border', hcDark: 'checkbox.border', hcLight: 'checkbox.border'
|
|
2122
|
+
}, description: 'Settings editor checkbox border.'
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
id: 'settings.textInputBackground', defaults: {
|
|
2126
|
+
dark: 'input.background', light: 'input.background', hcDark: 'input.background', hcLight: 'input.background'
|
|
2127
|
+
}, description: 'Settings editor text input box background.'
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
id: 'settings.textInputForeground', defaults: {
|
|
2131
|
+
dark: 'input.foreground', light: 'input.foreground', hcDark: 'input.foreground', hcLight: 'input.foreground'
|
|
2132
|
+
}, description: 'Settings editor text input box foreground.'
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
id: 'settings.textInputBorder', defaults: {
|
|
2136
|
+
dark: 'input.border', light: 'input.border', hcDark: 'input.border', hcLight: 'input.background'
|
|
2137
|
+
}, description: 'Settings editor text input box border.'
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
id: 'settings.numberInputBackground', defaults: {
|
|
2141
|
+
dark: 'input.background', light: 'input.background', hcDark: 'input.background', hcLight: 'input.background'
|
|
2142
|
+
}, description: 'Settings editor number input box background.'
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
id: 'settings.numberInputForeground', defaults: {
|
|
2146
|
+
dark: 'input.foreground', light: 'input.foreground', hcDark: 'input.foreground', hcLight: 'input.foreground'
|
|
2147
|
+
}, description: 'Settings editor number input box foreground.'
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
id: 'settings.numberInputBorder', defaults: {
|
|
2151
|
+
dark: 'input.border', light: 'input.border', hcDark: 'input.border', hcLight: 'input.border'
|
|
2152
|
+
}, description: 'Settings editor number input box border.'
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
id: 'settings.focusedRowBackground', defaults: {
|
|
2156
|
+
dark: Color.transparent('#808080', 0.14),
|
|
2157
|
+
light: Color.transparent('#808080', 0.03),
|
|
2158
|
+
hcDark: undefined,
|
|
2159
|
+
hcLight: undefined
|
|
2160
|
+
}, description: 'The background color of a settings row when focused.'
|
|
2161
|
+
},
|
|
2162
|
+
{
|
|
2163
|
+
id: 'settings.rowHoverBackground', defaults: {
|
|
2164
|
+
dark: Color.transparent('#808080', 0.07),
|
|
2165
|
+
light: Color.transparent('#808080', 0.05),
|
|
2166
|
+
hcDark: undefined,
|
|
2167
|
+
hcLight: undefined
|
|
2168
|
+
}, description: 'The background color of a settings row when hovered.'
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
id: 'settings.focusedRowBorder', defaults: {
|
|
2172
|
+
dark: Color.rgba(255, 255, 255, 0.12),
|
|
2173
|
+
light: Color.rgba(0, 0, 0, 0.12),
|
|
2174
|
+
hcDark: 'focusBorder',
|
|
2175
|
+
hcLight: 'focusBorder'
|
|
2176
|
+
}, description: "The color of the row's top and bottom border when the row is focused."
|
|
2177
|
+
},
|
|
2178
|
+
// Toolbar Action colors should be aligned with https://code.visualstudio.com/api/references/theme-color#action-colors
|
|
2179
|
+
{
|
|
2180
|
+
id: 'toolbar.hoverBackground', defaults: {
|
|
2181
|
+
dark: '#5a5d5e50', light: '#b8b8b850', hcDark: undefined, hcLight: undefined
|
|
2182
|
+
}, description: 'Toolbar background when hovering over actions using the mouse.'
|
|
2183
|
+
},
|
|
2184
|
+
|
|
2185
|
+
// Theia Variable colors
|
|
2186
|
+
{
|
|
2187
|
+
id: 'variable.name.color', defaults: {
|
|
2188
|
+
dark: '#C586C0',
|
|
2189
|
+
light: '#9B46B0',
|
|
2190
|
+
hcDark: '#C586C0'
|
|
2191
|
+
},
|
|
2192
|
+
description: 'Color of a variable name.'
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
id: 'variable.value.color', defaults: {
|
|
2196
|
+
dark: Color.rgba(204, 204, 204, 0.6),
|
|
2197
|
+
light: Color.rgba(108, 108, 108, 0.8),
|
|
2198
|
+
hcDark: Color.rgba(204, 204, 204, 0.6)
|
|
2199
|
+
},
|
|
2200
|
+
description: 'Color of a variable value.'
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
id: 'variable.number.variable.color', defaults: {
|
|
2204
|
+
dark: '#B5CEA8',
|
|
2205
|
+
light: '#09885A',
|
|
2206
|
+
hcDark: '#B5CEA8'
|
|
2207
|
+
},
|
|
2208
|
+
description: 'Value color of a number variable'
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
id: 'variable.boolean.variable.color', defaults: {
|
|
2212
|
+
dark: '#4E94CE',
|
|
2213
|
+
light: '#0000FF',
|
|
2214
|
+
hcDark: '#4E94CE'
|
|
2215
|
+
},
|
|
2216
|
+
description: 'Value color of a boolean variable'
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
id: 'variable.string.variable.color', defaults: {
|
|
2220
|
+
dark: '#CE9178',
|
|
2221
|
+
light: '#A31515',
|
|
2222
|
+
hcDark: '#CE9178'
|
|
2223
|
+
},
|
|
2224
|
+
description: 'Value color of a string variable'
|
|
2225
|
+
},
|
|
2226
|
+
|
|
2227
|
+
// Theia ANSI colors
|
|
2228
|
+
{
|
|
2229
|
+
id: 'ansi.black.color', defaults: {
|
|
2230
|
+
dark: '#A0A0A0',
|
|
2231
|
+
light: Color.rgba(128, 128, 128),
|
|
2232
|
+
hcDark: '#A0A0A0'
|
|
2233
|
+
},
|
|
2234
|
+
description: 'ANSI black color'
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
id: 'ansi.red.color', defaults: {
|
|
2238
|
+
dark: '#A74747',
|
|
2239
|
+
light: '#BE1717',
|
|
2240
|
+
hcDark: '#A74747'
|
|
2241
|
+
},
|
|
2242
|
+
description: 'ANSI red color'
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
id: 'ansi.green.color', defaults: {
|
|
2246
|
+
dark: '#348F34',
|
|
2247
|
+
light: '#338A2F',
|
|
2248
|
+
hcDark: '#348F34'
|
|
2249
|
+
},
|
|
2250
|
+
description: 'ANSI green color'
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
id: 'ansi.yellow.color', defaults: {
|
|
2254
|
+
dark: '#5F4C29',
|
|
2255
|
+
light: '#BEB817',
|
|
2256
|
+
hcDark: '#5F4C29'
|
|
2257
|
+
},
|
|
2258
|
+
description: 'ANSI yellow color'
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
id: 'ansi.blue.color', defaults: {
|
|
2262
|
+
dark: '#6286BB',
|
|
2263
|
+
light: Color.rgba(0, 0, 139),
|
|
2264
|
+
hcDark: '#6286BB'
|
|
2265
|
+
},
|
|
2266
|
+
description: 'ANSI blue color'
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
id: 'ansi.magenta.color', defaults: {
|
|
2270
|
+
dark: '#914191',
|
|
2271
|
+
light: Color.rgba(139, 0, 139),
|
|
2272
|
+
hcDark: '#914191'
|
|
2273
|
+
},
|
|
2274
|
+
description: 'ANSI magenta color'
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
id: 'ansi.cyan.color', defaults: {
|
|
2278
|
+
dark: '#218D8D',
|
|
2279
|
+
light: Color.rgba(0, 139, 139),
|
|
2280
|
+
hcDark: '#218D8D'
|
|
2281
|
+
},
|
|
2282
|
+
description: 'ANSI cyan color'
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
id: 'ansi.white.color', defaults: {
|
|
2286
|
+
dark: '#707070',
|
|
2287
|
+
light: '#BDBDBD',
|
|
2288
|
+
hcDark: '#707070'
|
|
2289
|
+
},
|
|
2290
|
+
description: 'ANSI white color'
|
|
2291
|
+
},
|
|
2292
|
+
|
|
2293
|
+
// Theia defaults
|
|
2294
|
+
// Base
|
|
2295
|
+
{
|
|
2296
|
+
id: 'errorBackground',
|
|
2297
|
+
defaults: {
|
|
2298
|
+
dark: 'inputValidation.errorBackground',
|
|
2299
|
+
light: 'inputValidation.errorBackground',
|
|
2300
|
+
hcDark: 'inputValidation.errorBackground'
|
|
2301
|
+
}, description: 'Background color of error widgets (like alerts or notifications).'
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
id: 'successBackground',
|
|
2305
|
+
defaults: {
|
|
2306
|
+
dark: 'editorGutter.addedBackground',
|
|
2307
|
+
light: 'editorGutter.addedBackground',
|
|
2308
|
+
hcDark: 'editorGutter.addedBackground'
|
|
2309
|
+
}, description: 'Background color of success widgets (like alerts or notifications).'
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
id: 'warningBackground',
|
|
2313
|
+
defaults: {
|
|
2314
|
+
dark: 'editorWarning.foreground',
|
|
2315
|
+
light: 'editorWarning.foreground',
|
|
2316
|
+
hcDark: 'editorWarning.border'
|
|
2317
|
+
}, description: 'Background color of warning widgets (like alerts or notifications).'
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
id: 'warningForeground',
|
|
2321
|
+
defaults: {
|
|
2322
|
+
dark: 'inputValidation.warningBackground',
|
|
2323
|
+
light: 'inputValidation.warningBackground',
|
|
2324
|
+
hcDark: 'inputValidation.warningBackground'
|
|
2325
|
+
}, description: 'Foreground color of warning widgets (like alerts or notifications).'
|
|
2326
|
+
},
|
|
2327
|
+
// Statusbar
|
|
2328
|
+
{
|
|
2329
|
+
id: 'statusBar.offlineBackground',
|
|
2330
|
+
defaults: {
|
|
2331
|
+
dark: 'editorWarning.foreground',
|
|
2332
|
+
light: 'editorWarning.foreground',
|
|
2333
|
+
hcDark: 'editorWarning.foreground',
|
|
2334
|
+
hcLight: 'editorWarning.foreground'
|
|
2335
|
+
}, description: 'Background of hovered statusbar item in case the theia server is offline.'
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
id: 'statusBar.offlineForeground',
|
|
2339
|
+
defaults: {
|
|
2340
|
+
dark: 'editor.background',
|
|
2341
|
+
light: 'editor.background',
|
|
2342
|
+
hcDark: 'editor.background',
|
|
2343
|
+
hcLight: 'editor.background'
|
|
2344
|
+
}, description: 'Background of hovered statusbar item in case the theia server is offline.'
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
id: 'statusBarItem.offlineHoverBackground',
|
|
2348
|
+
defaults: {
|
|
2349
|
+
dark: Color.lighten('statusBar.offlineBackground', 0.4),
|
|
2350
|
+
light: Color.lighten('statusBar.offlineBackground', 0.4),
|
|
2351
|
+
hcDark: Color.lighten('statusBar.offlineBackground', 0.4),
|
|
2352
|
+
hcLight: Color.lighten('statusBar.offlineBackground', 0.4)
|
|
2353
|
+
}, description: 'Background of hovered statusbar item in case the theia server is offline.'
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
id: 'statusBarItem.offlineActiveBackground',
|
|
2357
|
+
defaults: {
|
|
2358
|
+
dark: Color.lighten('statusBar.offlineBackground', 0.6),
|
|
2359
|
+
light: Color.lighten('statusBar.offlineBackground', 0.6),
|
|
2360
|
+
hcDark: Color.lighten('statusBar.offlineBackground', 0.6),
|
|
2361
|
+
hcLight: Color.lighten('statusBar.offlineBackground', 0.6)
|
|
2362
|
+
}, description: 'Background of active statusbar item in case the theia server is offline.'
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
id: 'statusBarItem.remoteBackground',
|
|
2366
|
+
defaults: {
|
|
2367
|
+
dark: 'activityBarBadge.background',
|
|
2368
|
+
light: 'activityBarBadge.background',
|
|
2369
|
+
hcDark: 'activityBarBadge.background',
|
|
2370
|
+
hcLight: 'activityBarBadge.background'
|
|
2371
|
+
}, description: 'Background color for the remote indicator on the status bar.'
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
id: 'statusBarItem.remoteForeground',
|
|
2375
|
+
defaults: {
|
|
2376
|
+
dark: 'activityBarBadge.foreground',
|
|
2377
|
+
light: 'activityBarBadge.foreground',
|
|
2378
|
+
hcDark: 'activityBarBadge.foreground',
|
|
2379
|
+
hcLight: 'activityBarBadge.foreground'
|
|
2380
|
+
}, description: 'Foreground color for the remote indicator on the status bar.'
|
|
2381
|
+
},
|
|
2382
|
+
// Buttons
|
|
2383
|
+
{
|
|
2384
|
+
id: 'secondaryButton.foreground',
|
|
2385
|
+
defaults: {
|
|
2386
|
+
dark: 'dropdown.foreground',
|
|
2387
|
+
light: 'dropdown.foreground',
|
|
2388
|
+
hcDark: 'dropdown.foreground',
|
|
2389
|
+
hcLight: 'dropdown.foreground'
|
|
2390
|
+
}, description: 'Foreground color of secondary buttons.'
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
id: 'secondaryButton.disabledForeground',
|
|
2394
|
+
defaults: {
|
|
2395
|
+
dark: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2396
|
+
light: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2397
|
+
hcDark: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2398
|
+
hcLight: Color.transparent('secondaryButton.foreground', 0.5),
|
|
2399
|
+
}, description: 'Foreground color of secondary buttons.'
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
id: 'secondaryButton.background',
|
|
2403
|
+
defaults: {
|
|
2404
|
+
dark: Color.lighten('dropdown.background', 0.5),
|
|
2405
|
+
light: Color.lighten('dropdown.background', 0.5)
|
|
2406
|
+
}, description: 'Background color of secondary buttons.'
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
id: 'secondaryButton.hoverBackground',
|
|
2410
|
+
defaults: {
|
|
2411
|
+
dark: Color.lighten('secondaryButton.background', 0.2),
|
|
2412
|
+
light: Color.lighten('secondaryButton.background', 0.2)
|
|
2413
|
+
}, description: 'Background color when hovering secondary buttons.'
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
id: 'secondaryButton.disabledBackground',
|
|
2417
|
+
defaults: {
|
|
2418
|
+
dark: Color.transparent('secondaryButton.background', 0.6),
|
|
2419
|
+
light: Color.transparent('secondaryButton.background', 0.6)
|
|
2420
|
+
}, description: 'Background color when hovering secondary buttons.'
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
id: 'button.disabledForeground',
|
|
2424
|
+
defaults: {
|
|
2425
|
+
dark: Color.transparent('button.foreground', 0.5),
|
|
2426
|
+
light: Color.transparent('button.foreground', 0.5),
|
|
2427
|
+
hcDark: Color.transparent('button.foreground', 0.5)
|
|
2428
|
+
}, description: 'Foreground color of secondary buttons.'
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
id: 'button.disabledBackground',
|
|
2432
|
+
defaults: {
|
|
2433
|
+
dark: Color.transparent('button.background', 0.5),
|
|
2434
|
+
light: Color.transparent('button.background', 0.5)
|
|
2435
|
+
}, description: 'Background color of secondary buttons.'
|
|
2436
|
+
},
|
|
2437
|
+
{
|
|
2438
|
+
id: 'editorGutter.commentRangeForeground',
|
|
2439
|
+
defaults: {
|
|
2440
|
+
dark: '#c5c5c5',
|
|
2441
|
+
light: '#c5c5c5',
|
|
2442
|
+
hcDark: Color.white,
|
|
2443
|
+
hcLight: Color.white
|
|
2444
|
+
}, description: 'Editor gutter decoration color for commenting ranges.'
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
id: 'breadcrumb.foreground',
|
|
2448
|
+
defaults: {
|
|
2449
|
+
dark: Color.transparent('foreground', 0.8),
|
|
2450
|
+
light: Color.transparent('foreground', 0.8),
|
|
2451
|
+
hcDark: Color.transparent('foreground', 0.8),
|
|
2452
|
+
hcLight: Color.transparent('foreground', 0.8)
|
|
2453
|
+
},
|
|
2454
|
+
description: 'Color of breadcrumb item text'
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
id: 'breadcrumb.background',
|
|
2458
|
+
defaults: {
|
|
2459
|
+
dark: 'editor.background',
|
|
2460
|
+
light: 'editor.background',
|
|
2461
|
+
hcDark: 'editor.background',
|
|
2462
|
+
hcLight: 'editor.background'
|
|
2463
|
+
},
|
|
2464
|
+
description: 'Color of breadcrumb item background'
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
id: 'breadcrumb.focusForeground',
|
|
2468
|
+
defaults: {
|
|
2469
|
+
dark: Color.lighten('foreground', 0.1),
|
|
2470
|
+
light: Color.darken('foreground', 0.2),
|
|
2471
|
+
hcDark: Color.lighten('foreground', 0.1),
|
|
2472
|
+
hcLight: Color.lighten('foreground', 0.1)
|
|
2473
|
+
},
|
|
2474
|
+
description: 'Color of breadcrumb item text when focused'
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
id: 'breadcrumb.activeSelectionForeground',
|
|
2478
|
+
defaults: {
|
|
2479
|
+
dark: Color.lighten('foreground', 0.1),
|
|
2480
|
+
light: Color.darken('foreground', 0.2),
|
|
2481
|
+
hcDark: Color.lighten('foreground', 0.1),
|
|
2482
|
+
hcLight: Color.lighten('foreground', 0.1)
|
|
2483
|
+
},
|
|
2484
|
+
description: 'Color of selected breadcrumb item'
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
id: 'breadcrumbPicker.background',
|
|
2488
|
+
defaults: {
|
|
2489
|
+
dark: 'editorWidget.background',
|
|
2490
|
+
light: 'editorWidget.background',
|
|
2491
|
+
hcDark: 'editorWidget.background',
|
|
2492
|
+
hcLight: 'editorWidget.background'
|
|
2493
|
+
},
|
|
2494
|
+
description: 'Background color of breadcrumb item picker'
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
id: 'mainToolbar.background',
|
|
2498
|
+
defaults: {
|
|
2499
|
+
dark: Color.lighten('activityBar.background', 0.1),
|
|
2500
|
+
light: Color.darken('activityBar.background', 0.1),
|
|
2501
|
+
hcDark: Color.lighten('activityBar.background', 0.1),
|
|
2502
|
+
hcLight: Color.lighten('activityBar.background', 0.1)
|
|
2503
|
+
},
|
|
2504
|
+
description: 'Background color of shell\'s global toolbar'
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
id: 'mainToolbar.foreground', defaults: {
|
|
2508
|
+
dark: Color.darken('activityBar.foreground', 0.1),
|
|
2509
|
+
light: Color.lighten('activityBar.foreground', 0.1),
|
|
2510
|
+
hcDark: Color.lighten('activityBar.foreground', 0.1),
|
|
2511
|
+
hcLight: Color.lighten('activityBar.foreground', 0.1),
|
|
2512
|
+
}, description: 'Foreground color of active toolbar item',
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
id: 'editorHoverWidgetInternalBorder',
|
|
2516
|
+
defaults: {
|
|
2517
|
+
dark: Color.transparent('editorHoverWidget.border', 0.5),
|
|
2518
|
+
light: Color.transparent('editorHoverWidget.border', 0.5),
|
|
2519
|
+
hcDark: Color.transparent('editorHoverWidget.border', 0.5),
|
|
2520
|
+
hcLight: Color.transparent('editorHoverWidget.border', 0.5)
|
|
2521
|
+
},
|
|
2522
|
+
description: 'The border between subelements of a hover widget'
|
|
2523
|
+
}
|
|
2524
|
+
);
|
|
2525
|
+
}
|
|
2526
|
+
}
|