@opensumi/ide-core-browser 2.21.13-rc-1673328992.0 → 2.21.13
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/lib/application/application-state-service.d.ts +1 -1
- package/lib/application/application-state-service.d.ts.map +1 -1
- package/lib/application/application-state-service.js.map +1 -1
- package/lib/application/application.service.js.map +1 -1
- package/lib/authentication/authentication.contribution.js.map +1 -1
- package/lib/authentication/authentication.service.js.map +1 -1
- package/lib/bootstrap/app.d.ts +35 -2
- package/lib/bootstrap/app.d.ts.map +1 -1
- package/lib/bootstrap/app.js +8 -8
- package/lib/bootstrap/app.js.map +1 -1
- package/lib/bootstrap/app.view.d.ts +1 -1
- package/lib/bootstrap/app.view.d.ts.map +1 -1
- package/lib/bootstrap/connection.d.ts +1 -1
- package/lib/bootstrap/connection.d.ts.map +1 -1
- package/lib/bootstrap/connection.js +4 -4
- package/lib/bootstrap/connection.js.map +1 -1
- package/lib/bootstrap/index.d.ts +1 -1
- package/lib/bootstrap/index.d.ts.map +1 -1
- package/lib/bootstrap/index.js +1 -1
- package/lib/bootstrap/index.js.map +1 -1
- package/lib/bootstrap/inner-providers.js +1 -1
- package/lib/bootstrap/inner-providers.js.map +1 -1
- package/lib/bootstrap/lifecycle.service.js.map +1 -1
- package/lib/browser-module.js.map +1 -1
- package/lib/common/common.command.d.ts +1 -24
- package/lib/common/common.command.d.ts.map +1 -1
- package/lib/common/common.command.js +6 -42
- package/lib/common/common.command.js.map +1 -1
- package/lib/common/common.contribution.js.map +1 -1
- package/lib/common/common.module.js.map +1 -1
- package/lib/common/common.storage.js.map +1 -1
- package/lib/components/actions/index.d.ts +2 -2
- package/lib/components/actions/index.d.ts.map +1 -1
- package/lib/components/actions/index.js +22 -2
- package/lib/components/actions/index.js.map +1 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/layout/box-panel.d.ts +1 -1
- package/lib/components/layout/box-panel.d.ts.map +1 -1
- package/lib/components/layout/split-panel.d.ts +1 -17
- package/lib/components/layout/split-panel.d.ts.map +1 -1
- package/lib/components/layout/split-panel.js +16 -16
- package/lib/components/layout/split-panel.js.map +1 -1
- package/lib/components/layout/split-panel.service.js.map +1 -1
- package/lib/components/progressbar/index.d.ts +2 -2
- package/lib/components/progressbar/index.d.ts.map +1 -1
- package/lib/components/progressbar/index.js +10 -2
- package/lib/components/progressbar/index.js.map +1 -1
- package/lib/components/progressbar/styles.module.less +31 -0
- package/lib/components/recycle-tree/index.d.ts +2 -0
- package/lib/components/recycle-tree/index.d.ts.map +1 -0
- package/lib/components/recycle-tree/index.js +5 -0
- package/lib/components/recycle-tree/index.js.map +1 -0
- package/lib/components/recycle-tree/recycle-tree.view.d.ts +82 -0
- package/lib/components/recycle-tree/recycle-tree.view.d.ts.map +1 -0
- package/lib/components/recycle-tree/recycle-tree.view.js +188 -0
- package/lib/components/recycle-tree/recycle-tree.view.js.map +1 -0
- package/lib/components/scroll/index.d.ts +68 -0
- package/lib/components/scroll/index.d.ts.map +1 -0
- package/lib/components/scroll/index.js +279 -0
- package/lib/components/scroll/index.js.map +1 -0
- package/lib/components/scroll/scroll.module.less +108 -0
- package/lib/components/scrollbar/index.d.ts +2 -0
- package/lib/components/scrollbar/index.d.ts.map +1 -0
- package/lib/components/scrollbar/index.js +5 -0
- package/lib/components/scrollbar/index.js.map +1 -0
- package/lib/components/scrollbar/scrollbar.less +36 -0
- package/lib/components/scrollbar/scrollbar.view.d.ts +7 -0
- package/lib/components/scrollbar/scrollbar.view.d.ts.map +1 -0
- package/lib/components/scrollbar/scrollbar.view.js +11 -0
- package/lib/components/scrollbar/scrollbar.view.js.map +1 -0
- package/lib/components/tree/index.d.ts +4 -0
- package/lib/components/tree/index.d.ts.map +1 -0
- package/lib/components/tree/index.js +7 -0
- package/lib/components/tree/index.js.map +1 -0
- package/lib/components/tree/tree-node.view.d.ts +26 -0
- package/lib/components/tree/tree-node.view.d.ts.map +1 -0
- package/lib/components/tree/tree-node.view.js +350 -0
- package/lib/components/tree/tree-node.view.js.map +1 -0
- package/lib/components/tree/tree.module.less +296 -0
- package/lib/components/tree/tree.view.d.ts +132 -0
- package/lib/components/tree/tree.view.d.ts.map +1 -0
- package/lib/components/tree/tree.view.js +238 -0
- package/lib/components/tree/tree.view.js.map +1 -0
- package/lib/contextkey/resource.d.ts +1 -1
- package/lib/contextkey/resource.d.ts.map +1 -1
- package/lib/contextkey/testing.d.ts +0 -1
- package/lib/contextkey/testing.d.ts.map +1 -1
- package/lib/contextkey/testing.js +1 -2
- package/lib/contextkey/testing.js.map +1 -1
- package/lib/core-preferences.d.ts +2 -3
- package/lib/core-preferences.d.ts.map +1 -1
- package/lib/core-preferences.js +1 -1
- package/lib/core-preferences.js.map +1 -1
- package/lib/dom/index.d.ts +1 -1
- package/lib/dom/index.d.ts.map +1 -1
- package/lib/encoding-registry.js.map +1 -1
- package/lib/extensions/extensions-point.service.js.map +1 -1
- package/lib/hash-calculate/hash-calculate.contribution.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/keybinding/keybinding.js.map +1 -1
- package/lib/keyboard/keyboard-layout-provider.d.ts +2 -2
- package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -1
- package/lib/keyboard/keyboard-layout-provider.js +13 -13
- package/lib/keyboard/keyboard-layout-provider.js.map +1 -1
- package/lib/keyboard/keyboard-layout-service.js.map +1 -1
- package/lib/keyboard/keys.d.ts +2 -2
- package/lib/keyboard/keys.d.ts.map +1 -1
- package/lib/keyboard/layouts/_.contribution.js +3 -3
- package/lib/keyboard/layouts/_.contribution.js.map +1 -1
- package/lib/layout/accordion/tab-bar-toolbar.js.map +1 -1
- package/lib/layout/accordion/view-context-key.registry.js.map +1 -1
- package/lib/layout/layout-hooks.d.ts +1 -1
- package/lib/layout/layout-hooks.d.ts.map +1 -1
- package/lib/layout/layout-hooks.js +3 -1
- package/lib/layout/layout-hooks.js.map +1 -1
- package/lib/layout/layout-state.js.map +1 -1
- package/lib/layout/layout.interface.d.ts +1 -1
- package/lib/layout/layout.interface.d.ts.map +1 -1
- package/lib/layout/layout.js.map +1 -1
- package/lib/logger/browser-logger.js.map +1 -1
- package/lib/markdown/index.d.ts +1 -1
- package/lib/markdown/index.d.ts.map +1 -1
- package/lib/markdown/index.js +31 -4
- package/lib/markdown/index.js.map +1 -1
- package/lib/menu/next/base.d.ts +4 -4
- package/lib/menu/next/base.d.ts.map +1 -1
- package/lib/menu/next/base.js.map +1 -1
- package/lib/menu/next/ctxmenu-service.js +10 -10
- package/lib/menu/next/ctxmenu-service.js.map +1 -1
- package/lib/menu/next/menu-service.js +6 -6
- package/lib/menu/next/menu-service.js.map +1 -1
- package/lib/menu/next/menu.contrib.interface.d.ts +15 -16
- package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -1
- package/lib/menu/next/menu.contrib.interface.js.map +1 -1
- package/lib/menu/next/menu.interface.d.ts +2 -2
- package/lib/menu/next/menu.interface.d.ts.map +1 -1
- package/lib/menu/next/menu.interface.js.map +1 -1
- package/lib/menu/next/menubar-service.js +10 -10
- package/lib/menu/next/menubar-service.js.map +1 -1
- package/lib/menu/next/renderer/ctxmenu/browser.js.map +1 -1
- package/lib/menu/next/renderer/ctxmenu/electron.js.map +1 -1
- package/lib/menu/next/toolbar-action.service.d.ts +1 -1
- package/lib/menu/next/toolbar-action.service.d.ts.map +1 -1
- package/lib/menu/next/toolbar-action.service.js.map +1 -1
- package/lib/monaco/index.d.ts +3 -7
- package/lib/monaco/index.d.ts.map +1 -1
- package/lib/monaco/index.js.map +1 -1
- package/lib/opener/command-opener.js.map +1 -1
- package/lib/opener/default-opener.js.map +1 -1
- package/lib/opener/http-opener.js.map +1 -1
- package/lib/opener/opener.contribution.js.map +1 -1
- package/lib/opener/opener.service.js.map +1 -1
- package/lib/preferences/early-preferences.js +4 -4
- package/lib/preferences/early-preferences.js.map +1 -1
- package/lib/preferences/preference-configurations.js +1 -1
- package/lib/preferences/preference-configurations.js.map +1 -1
- package/lib/preferences/preference-contribution.d.ts +2 -1
- package/lib/preferences/preference-contribution.d.ts.map +1 -1
- package/lib/preferences/preference-contribution.js +20 -23
- package/lib/preferences/preference-contribution.js.map +1 -1
- package/lib/preferences/preference-provider.js.map +1 -1
- package/lib/preferences/preference-proxy.d.ts +3 -2
- package/lib/preferences/preference-proxy.d.ts.map +1 -1
- package/lib/preferences/preference-proxy.js.map +1 -1
- package/lib/preferences/preference-service.d.ts +0 -1
- package/lib/preferences/preference-service.d.ts.map +1 -1
- package/lib/preferences/preference-service.js +3 -50
- package/lib/preferences/preference-service.js.map +1 -1
- package/lib/preferences/settings.d.ts +5 -44
- package/lib/preferences/settings.d.ts.map +1 -1
- package/lib/preferences/settings.js.map +1 -1
- package/lib/preferences/types.d.ts +1 -8
- package/lib/preferences/types.d.ts.map +1 -1
- package/lib/preferences/types.js.map +1 -1
- package/lib/progress/progress-bar.d.ts +1 -4
- package/lib/progress/progress-bar.d.ts.map +1 -1
- package/lib/progress/progress-bar.js +4 -11
- package/lib/progress/progress-bar.js.map +1 -1
- package/lib/progress/progress-indicator.js.map +1 -1
- package/lib/progress/progress.service.js +6 -6
- package/lib/progress/progress.service.js.map +1 -1
- package/lib/quick-open/index.d.ts +1 -1
- package/lib/quick-open/index.d.ts.map +1 -1
- package/lib/quick-open/index.js.map +1 -1
- package/lib/quick-open/recent-files.js.map +1 -1
- package/lib/raw-context-key.d.ts +1 -1
- package/lib/raw-context-key.d.ts.map +1 -1
- package/lib/raw-context-key.js +4 -4
- package/lib/raw-context-key.js.map +1 -1
- package/lib/react-providers/config-provider.d.ts +0 -5
- package/lib/react-providers/config-provider.d.ts.map +1 -1
- package/lib/react-providers/config-provider.js.map +1 -1
- package/lib/react-providers/slot.d.ts +2 -2
- package/lib/react-providers/slot.d.ts.map +1 -1
- package/lib/services/clipboard.service.d.ts +0 -1
- package/lib/services/clipboard.service.d.ts.map +1 -1
- package/lib/services/clipboard.service.js +30 -17
- package/lib/services/clipboard.service.js.map +1 -1
- package/lib/services/credentials-service.js.map +1 -1
- package/lib/services/crypto-service.js.map +1 -1
- package/lib/services/external-uri.service.js.map +1 -1
- package/lib/services/label-service.js.map +1 -1
- package/lib/services/storage-service.d.ts +0 -1
- package/lib/services/storage-service.d.ts.map +1 -1
- package/lib/services/storage-service.js +2 -13
- package/lib/services/storage-service.js.map +1 -1
- package/lib/style/icon/icon.d.ts +2 -3
- package/lib/style/icon/icon.d.ts.map +1 -1
- package/lib/style/icon/icon.js +1 -5
- package/lib/style/icon/icon.js.map +1 -1
- package/lib/style/icon/ide-iconfont.d.ts +1 -1
- package/lib/style/icon/ide-iconfont.d.ts.map +1 -1
- package/lib/style/icon/ide-iconfont.js +1 -1
- package/lib/style/icon/ide-iconfont.js.map +1 -1
- package/lib/style/icon/index.less +0 -13
- package/lib/toolbar/components/button.js +12 -12
- package/lib/toolbar/components/button.js.map +1 -1
- package/lib/toolbar/toolbar.popover.registry.js.map +1 -1
- package/lib/toolbar/toolbar.registry.d.ts +1 -1
- package/lib/toolbar/toolbar.registry.d.ts.map +1 -1
- package/lib/toolbar/toolbar.registry.js.map +1 -1
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/toolbar/types.d.ts.map +1 -1
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.d.ts.map +1 -0
- package/lib/tree/index.js +7 -0
- package/lib/tree/index.js.map +1 -0
- package/lib/tree/tree-expansion.d.ts +16 -0
- package/lib/tree/tree-expansion.d.ts.map +1 -0
- package/lib/tree/tree-expansion.js +20 -0
- package/lib/tree/tree-expansion.js.map +1 -0
- package/lib/tree/tree-selection.d.ts +48 -0
- package/lib/tree/tree-selection.d.ts.map +1 -0
- package/lib/tree/tree-selection.js +64 -0
- package/lib/tree/tree-selection.js.map +1 -0
- package/lib/tree/tree.d.ts +195 -0
- package/lib/tree/tree.d.ts.map +1 -0
- package/lib/tree/tree.js +108 -0
- package/lib/tree/tree.js.map +1 -0
- package/lib/utils/json.d.ts +5 -5
- package/lib/utils/json.d.ts.map +1 -1
- package/lib/utils/label.d.ts.map +1 -1
- package/lib/utils/label.js +9 -16
- package/lib/utils/label.js.map +1 -1
- package/lib/utils/parse.d.ts +1 -2
- package/lib/utils/parse.d.ts.map +1 -1
- package/lib/utils/parse.js +1 -10
- package/lib/utils/parse.js.map +1 -1
- package/lib/variable/variable.d.ts +1 -1
- package/lib/variable/variable.d.ts.map +1 -1
- package/lib/variable/variable.js.map +1 -1
- package/lib/window/window.service.js.map +1 -1
- package/package.json +11 -9
- package/lib/bootstrap/app.interface.d.ts +0 -39
- package/lib/bootstrap/app.interface.d.ts.map +0 -1
- package/lib/bootstrap/app.interface.js +0 -3
- package/lib/bootstrap/app.interface.js.map +0 -1
- package/lib/contextkey/search.d.ts +0 -24
- package/lib/contextkey/search.d.ts.map +0 -1
- package/lib/contextkey/search.js +0 -29
- package/lib/contextkey/search.js.map +0 -1
- package/lib/file-decoration.d.ts +0 -10
- package/lib/file-decoration.d.ts.map +0 -1
- package/lib/file-decoration.js +0 -3
- package/lib/file-decoration.js.map +0 -1
- package/lib/monaco/merge-editor-widget.d.ts +0 -53
- package/lib/monaco/merge-editor-widget.d.ts.map +0 -1
- package/lib/monaco/merge-editor-widget.js +0 -107
- package/lib/monaco/merge-editor-widget.js.map +0 -1
- package/lib/react-hooks/useThrottleFn/index.d.ts +0 -13
- package/lib/react-hooks/useThrottleFn/index.d.ts.map +0 -1
- package/lib/react-hooks/useThrottleFn/index.js +0 -20
- package/lib/react-hooks/useThrottleFn/index.js.map +0 -1
- package/src/application/application-state-service.ts +0 -54
- package/src/application/application.service.ts +0 -51
- package/src/application/index.ts +0 -2
- package/src/authentication/authentication.contribution.ts +0 -35
- package/src/authentication/authentication.service.ts +0 -517
- package/src/bootstrap/app.interface.ts +0 -46
- package/src/bootstrap/app.ts +0 -710
- package/src/bootstrap/app.view.tsx +0 -88
- package/src/bootstrap/connection.ts +0 -116
- package/src/bootstrap/index.ts +0 -3
- package/src/bootstrap/inner-providers.ts +0 -297
- package/src/bootstrap/lifecycle.service.ts +0 -19
- package/src/browser-module.ts +0 -24
- package/src/common/common.command.ts +0 -1018
- package/src/common/common.contribution.ts +0 -343
- package/src/common/common.define.ts +0 -55
- package/src/common/common.module.ts +0 -33
- package/src/common/common.storage.ts +0 -22
- package/src/common/container-id.ts +0 -12
- package/src/common/index.ts +0 -4
- package/src/components/actions/index.tsx +0 -486
- package/src/components/actions/placements.ts +0 -47
- package/src/components/actions/styles.module.less +0 -144
- package/src/components/badge/index.tsx +0 -1
- package/src/components/index.ts +0 -22
- package/src/components/layout/box-panel.tsx +0 -88
- package/src/components/layout/default-layout.tsx +0 -61
- package/src/components/layout/index.ts +0 -4
- package/src/components/layout/layout.ts +0 -80
- package/src/components/layout/split-panel.service.ts +0 -56
- package/src/components/layout/split-panel.tsx +0 -315
- package/src/components/layout/styles.module.less +0 -21
- package/src/components/loading/index.ts +0 -1
- package/src/components/loading/loading.less +0 -14
- package/src/components/loading/loading.view.tsx +0 -7
- package/src/components/loading/media/loading-dark.svg +0 -52
- package/src/components/loading/media/loading-hc.svg +0 -52
- package/src/components/loading/media/loading.svg +0 -52
- package/src/components/popover/styles.module.less +0 -81
- package/src/components/portal/index.tsx +0 -13
- package/src/components/progressbar/index.tsx +0 -3
- package/src/components/resize/resize.module.less +0 -78
- package/src/components/resize/resize.tsx +0 -663
- package/src/components/select/index.tsx +0 -12
- package/src/components/select/styles.less +0 -6
- package/src/context-key.ts +0 -48
- package/src/contextkey/dialog.ts +0 -3
- package/src/contextkey/explorer.ts +0 -26
- package/src/contextkey/index.ts +0 -6
- package/src/contextkey/outline.ts +0 -4
- package/src/contextkey/resource.ts +0 -61
- package/src/contextkey/search.ts +0 -30
- package/src/contextkey/terminal.ts +0 -7
- package/src/contextkey/testing.ts +0 -9
- package/src/contextkey/workspace.ts +0 -7
- package/src/core-preferences.ts +0 -318
- package/src/dom/index.ts +0 -176
- package/src/encoding-registry.ts +0 -83
- package/src/extensions/extensions-point.service.ts +0 -78
- package/src/extensions/index.ts +0 -3
- package/src/extensions/schema/browserViews.ts +0 -96
- package/src/extensions/schema/menu.ts +0 -245
- package/src/extensions/schema/opensumiExtensionPackageSchema.ts +0 -12
- package/src/extensions/schema/toolbar.ts +0 -338
- package/src/extensions/schema/vscodeExtensionPackageSchema.ts +0 -330
- package/src/file-decoration.ts +0 -10
- package/src/fs/index.ts +0 -12
- package/src/hash-calculate/hash-calculate.contribution.ts +0 -19
- package/src/index.ts +0 -42
- package/src/keybinding/index.ts +0 -1
- package/src/keybinding/keybinding.ts +0 -908
- package/src/keyboard/index.ts +0 -3
- package/src/keyboard/keyboard-layout-provider.ts +0 -412
- package/src/keyboard/keyboard-layout-service.ts +0 -449
- package/src/keyboard/keys.ts +0 -748
- package/src/keyboard/layouts/_.contribution.ts +0 -24
- package/src/keyboard/layouts/cz.win.ts +0 -168
- package/src/keyboard/layouts/de-swiss.win.ts +0 -168
- package/src/keyboard/layouts/de.darwin.ts +0 -131
- package/src/keyboard/layouts/de.linux.ts +0 -186
- package/src/keyboard/layouts/de.win.ts +0 -168
- package/src/keyboard/layouts/dk.win.ts +0 -168
- package/src/keyboard/layouts/dvorak.darwin.ts +0 -131
- package/src/keyboard/layouts/en-belgian.win.ts +0 -168
- package/src/keyboard/layouts/en-ext.darwin.ts +0 -131
- package/src/keyboard/layouts/en-in.win.ts +0 -168
- package/src/keyboard/layouts/en-intl.darwin.ts +0 -131
- package/src/keyboard/layouts/en-intl.win.ts +0 -168
- package/src/keyboard/layouts/en-uk.darwin.ts +0 -131
- package/src/keyboard/layouts/en-uk.win.ts +0 -168
- package/src/keyboard/layouts/en.darwin.ts +0 -139
- package/src/keyboard/layouts/en.linux.ts +0 -186
- package/src/keyboard/layouts/en.win.ts +0 -173
- package/src/keyboard/layouts/es-latin.win.ts +0 -168
- package/src/keyboard/layouts/es.darwin.ts +0 -131
- package/src/keyboard/layouts/es.linux.ts +0 -186
- package/src/keyboard/layouts/es.win.ts +0 -168
- package/src/keyboard/layouts/fr.darwin.ts +0 -131
- package/src/keyboard/layouts/fr.linux.ts +0 -186
- package/src/keyboard/layouts/fr.win.ts +0 -168
- package/src/keyboard/layouts/hu.win.ts +0 -168
- package/src/keyboard/layouts/it.darwin.ts +0 -131
- package/src/keyboard/layouts/it.win.ts +0 -168
- package/src/keyboard/layouts/jp-roman.darwin.ts +0 -131
- package/src/keyboard/layouts/jp.darwin.ts +0 -131
- package/src/keyboard/layouts/ko.darwin.ts +0 -131
- package/src/keyboard/layouts/layout.contribution.darwin.ts +0 -23
- package/src/keyboard/layouts/layout.contribution.linux.ts +0 -12
- package/src/keyboard/layouts/layout.contribution.ts +0 -9
- package/src/keyboard/layouts/layout.contribution.win.ts +0 -29
- package/src/keyboard/layouts/no.win.ts +0 -168
- package/src/keyboard/layouts/pl.darwin.ts +0 -131
- package/src/keyboard/layouts/pl.win.ts +0 -168
- package/src/keyboard/layouts/pt-br.win.ts +0 -169
- package/src/keyboard/layouts/pt.darwin.ts +0 -131
- package/src/keyboard/layouts/pt.win.ts +0 -168
- package/src/keyboard/layouts/ru.darwin.ts +0 -131
- package/src/keyboard/layouts/ru.linux.ts +0 -186
- package/src/keyboard/layouts/ru.win.ts +0 -168
- package/src/keyboard/layouts/sv.darwin.ts +0 -131
- package/src/keyboard/layouts/sv.win.ts +0 -168
- package/src/keyboard/layouts/thai.win.ts +0 -168
- package/src/keyboard/layouts/tr.win.ts +0 -168
- package/src/keyboard/layouts/zh-hans.darwin.ts +0 -131
- package/src/layout/accordion/tab-bar-toolbar.tsx +0 -59
- package/src/layout/accordion/view-context-key.registry.ts +0 -34
- package/src/layout/constants.ts +0 -7
- package/src/layout/index.ts +0 -5
- package/src/layout/layout-hooks.ts +0 -68
- package/src/layout/layout-state.ts +0 -107
- package/src/layout/layout.interface.ts +0 -101
- package/src/layout/layout.ts +0 -80
- package/src/layout/view-id.ts +0 -18
- package/src/logger/browser-logger.ts +0 -51
- package/src/logger/index.ts +0 -1
- package/src/markdown/index.tsx +0 -30
- package/src/menu/next/base.ts +0 -513
- package/src/menu/next/ctxmenu-service.ts +0 -188
- package/src/menu/next/index.ts +0 -10
- package/src/menu/next/menu-id.ts +0 -86
- package/src/menu/next/menu-service.ts +0 -252
- package/src/menu/next/menu-util.ts +0 -77
- package/src/menu/next/menu.contrib.interface.ts +0 -79
- package/src/menu/next/menu.interface.ts +0 -253
- package/src/menu/next/menubar-service.ts +0 -211
- package/src/menu/next/renderer/ctxmenu/base.ts +0 -18
- package/src/menu/next/renderer/ctxmenu/browser.ts +0 -45
- package/src/menu/next/renderer/ctxmenu/electron.ts +0 -207
- package/src/menu/next/toolbar-action.service.ts +0 -132
- package/src/monaco/index.ts +0 -136
- package/src/monaco/merge-editor-widget.ts +0 -159
- package/src/opener/command-opener.ts +0 -42
- package/src/opener/default-opener.ts +0 -31
- package/src/opener/http-opener.ts +0 -25
- package/src/opener/index.ts +0 -19
- package/src/opener/opener.contribution.ts +0 -57
- package/src/opener/opener.service.ts +0 -66
- package/src/preferences/early-preferences.ts +0 -117
- package/src/preferences/index.ts +0 -9
- package/src/preferences/preference-configurations.ts +0 -77
- package/src/preferences/preference-contribution.ts +0 -395
- package/src/preferences/preference-provider.ts +0 -414
- package/src/preferences/preference-proxy.ts +0 -291
- package/src/preferences/preference-scope.ts +0 -3
- package/src/preferences/preference-service.ts +0 -623
- package/src/preferences/settings.ts +0 -90
- package/src/preferences/types.ts +0 -119
- package/src/progress/index.ts +0 -58
- package/src/progress/progress-bar.tsx +0 -34
- package/src/progress/progress-indicator.ts +0 -90
- package/src/progress/progress.module.less +0 -46
- package/src/progress/progress.service.tsx +0 -429
- package/src/quick-open/index.ts +0 -655
- package/src/quick-open/recent-files.ts +0 -68
- package/src/raw-context-key.ts +0 -116
- package/src/react-hooks/event.tsx +0 -80
- package/src/react-hooks/hot-key.tsx +0 -58
- package/src/react-hooks/index.ts +0 -3
- package/src/react-hooks/injectable-hooks.tsx +0 -35
- package/src/react-hooks/portal-hooks.tsx +0 -38
- package/src/react-hooks/useThrottleFn/index.ts +0 -34
- package/src/react-providers/config-provider.tsx +0 -264
- package/src/react-providers/index.tsx +0 -2
- package/src/react-providers/slot.module.less +0 -19
- package/src/react-providers/slot.tsx +0 -242
- package/src/services/clipboard.service.ts +0 -92
- package/src/services/credentials-service.ts +0 -91
- package/src/services/crypto-service.ts +0 -23
- package/src/services/external-uri.service.ts +0 -68
- package/src/services/index.ts +0 -7
- package/src/services/label-service.ts +0 -386
- package/src/services/status-bar-service.ts +0 -108
- package/src/services/storage-service.ts +0 -201
- package/src/style/codicons/README.md +0 -22
- package/src/style/codicons/codicon-animations.css +0 -15
- package/src/style/codicons/generator.js +0 -15
- package/src/style/entry.less +0 -25
- package/src/style/icon/fileicons/file-default.svg +0 -1
- package/src/style/icon/fileicons/folder-default.svg +0 -1
- package/src/style/icon/fileicons.less +0 -20
- package/src/style/icon/icon.ts +0 -547
- package/src/style/icon/ide-iconfont.ts +0 -13
- package/src/style/icon/index.less +0 -67
- package/src/style/icon/seti.woff +0 -0
- package/src/style/icon/symbol-icons/boolean-dark.svg +0 -3
- package/src/style/icon/symbol-icons/boolean-light.svg +0 -3
- package/src/style/icon/symbol-icons/class-dark.svg +0 -3
- package/src/style/icon/symbol-icons/class-light.svg +0 -3
- package/src/style/icon/symbol-icons/constant-dark.svg +0 -4
- package/src/style/icon/symbol-icons/constant-light.svg +0 -4
- package/src/style/icon/symbol-icons/enumerator-dark.svg +0 -3
- package/src/style/icon/symbol-icons/enumerator-item-dark.svg +0 -3
- package/src/style/icon/symbol-icons/enumerator-item-light.svg +0 -3
- package/src/style/icon/symbol-icons/enumerator-light.svg +0 -3
- package/src/style/icon/symbol-icons/event-dark.svg +0 -3
- package/src/style/icon/symbol-icons/event-light.svg +0 -3
- package/src/style/icon/symbol-icons/field-dark.svg +0 -3
- package/src/style/icon/symbol-icons/field-light.svg +0 -3
- package/src/style/icon/symbol-icons/file-dark.svg +0 -3
- package/src/style/icon/symbol-icons/file-light.svg +0 -3
- package/src/style/icon/symbol-icons/indexer-dark.svg +0 -3
- package/src/style/icon/symbol-icons/indexer-light.svg +0 -3
- package/src/style/icon/symbol-icons/interface-dark.svg +0 -3
- package/src/style/icon/symbol-icons/interface-light.svg +0 -3
- package/src/style/icon/symbol-icons/keyword-dark.svg +0 -3
- package/src/style/icon/symbol-icons/keyword-light.svg +0 -3
- package/src/style/icon/symbol-icons/method-dark.svg +0 -3
- package/src/style/icon/symbol-icons/method-light.svg +0 -3
- package/src/style/icon/symbol-icons/namespace-dark.svg +0 -3
- package/src/style/icon/symbol-icons/namespace-light.svg +0 -3
- package/src/style/icon/symbol-icons/numeric-dark.svg +0 -3
- package/src/style/icon/symbol-icons/numeric-light.svg +0 -3
- package/src/style/icon/symbol-icons/operator-dark.svg +0 -3
- package/src/style/icon/symbol-icons/operator-light.svg +0 -3
- package/src/style/icon/symbol-icons/property-dark.svg +0 -3
- package/src/style/icon/symbol-icons/property-light.svg +0 -3
- package/src/style/icon/symbol-icons/snippet-dark.svg +0 -3
- package/src/style/icon/symbol-icons/snippet-light.svg +0 -3
- package/src/style/icon/symbol-icons/string-dark.svg +0 -3
- package/src/style/icon/symbol-icons/string-light.svg +0 -3
- package/src/style/icon/symbol-icons/structure-dark.svg +0 -3
- package/src/style/icon/symbol-icons/structure-light.svg +0 -3
- package/src/style/icon/symbol-icons/symbol-icons.css +0 -284
- package/src/style/icon/symbol-icons/template-dark.svg +0 -3
- package/src/style/icon/symbol-icons/template-light.svg +0 -3
- package/src/style/icon/symbol-icons/variable-dark.svg +0 -3
- package/src/style/icon/symbol-icons/variable-light.svg +0 -3
- package/src/style/icon.less +0 -8
- package/src/style/index.less +0 -14
- package/src/style/monaco-override.less +0 -116
- package/src/style/normalize.less +0 -92
- package/src/style/octicons/octicons-cdn.css +0 -720
- package/src/style/octicons/octicons.css +0 -714
- package/src/style/octicons/octicons.html +0 -1882
- package/src/style/octicons/octicons.svg +0 -582
- package/src/style/octicons/octicons.ttf +0 -0
- package/src/style/override.less +0 -97
- package/src/style/toolbar.less +0 -199
- package/src/style/utilities.less +0 -8
- package/src/style/variable.less +0 -8
- package/src/terminal/index.ts +0 -7
- package/src/toolbar/components/auto-complete.tsx +0 -0
- package/src/toolbar/components/button.tsx +0 -440
- package/src/toolbar/components/index.ts +0 -2
- package/src/toolbar/components/select.tsx +0 -189
- package/src/toolbar/index.ts +0 -3
- package/src/toolbar/toolbar.popover.registry.ts +0 -32
- package/src/toolbar/toolbar.registry.ts +0 -352
- package/src/toolbar/toolbar.tsx +0 -710
- package/src/toolbar/types.ts +0 -383
- package/src/utils/create-overlay.tsx +0 -53
- package/src/utils/electron.ts +0 -92
- package/src/utils/env.ts +0 -26
- package/src/utils/icon.ts +0 -13
- package/src/utils/index.ts +0 -7
- package/src/utils/json.ts +0 -251
- package/src/utils/label.tsx +0 -36
- package/src/utils/parse.ts +0 -82
- package/src/utils/react-hooks.ts +0 -118
- package/src/variable/index.ts +0 -1
- package/src/variable/variable.ts +0 -84
- package/src/window/index.ts +0 -34
- package/src/window/window.service.ts +0 -100
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-core-browser",
|
|
3
|
-
"version": "2.21.13
|
|
3
|
+
"version": "2.21.13",
|
|
4
4
|
"description": "@opensumi/ide-core-browser",
|
|
5
5
|
"files": [
|
|
6
|
-
"lib"
|
|
7
|
-
"src"
|
|
6
|
+
"lib"
|
|
8
7
|
],
|
|
9
8
|
"license": "MIT",
|
|
10
9
|
"main": "lib/index.js",
|
|
@@ -14,17 +13,17 @@
|
|
|
14
13
|
"url": "git@github.com:opensumi/core.git"
|
|
15
14
|
},
|
|
16
15
|
"scripts": {
|
|
17
|
-
"prepublishOnly": "
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
18
17
|
"build": "tsc --build ../../configs/ts/references/tsconfig.core-browser.json"
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
21
|
-
"@opensumi/ide-components": "2.21.13
|
|
22
|
-
"@opensumi/ide-connection": "2.21.13
|
|
23
|
-
"@opensumi/ide-core-common": "2.21.13
|
|
20
|
+
"@opensumi/ide-components": "2.21.13",
|
|
21
|
+
"@opensumi/ide-connection": "2.21.13",
|
|
22
|
+
"@opensumi/ide-core-common": "2.21.13",
|
|
24
23
|
"@opensumi/vscode-debugprotocol": "1.49.0-beta.1",
|
|
25
24
|
"@vscode/codicons": "0.0.27",
|
|
26
25
|
"ajv": "^6.10.0",
|
|
27
|
-
"classnames": "2.
|
|
26
|
+
"classnames": "2.2.6",
|
|
28
27
|
"font-awesome": "^4.7.0",
|
|
29
28
|
"fuzzy": "^0.1.3",
|
|
30
29
|
"jsonc-parser": "^2.1.0",
|
|
@@ -39,11 +38,14 @@
|
|
|
39
38
|
"react-ctxmenu-trigger": "^1.0.0",
|
|
40
39
|
"react-custom-scrollbars": "^4.2.1",
|
|
41
40
|
"react-is": "^16.8.6",
|
|
41
|
+
"react-perfect-scrollbar": "^1.5.2",
|
|
42
42
|
"react-sticky": "^6.0.3",
|
|
43
43
|
"react-window": "^1.8.5",
|
|
44
|
+
"reconnecting-websocket": "^4.2.0",
|
|
44
45
|
"resize-observer-polyfill": "1.5.1",
|
|
45
46
|
"strip-json-comments": "3.0.1",
|
|
47
|
+
"vscode-languageserver-protocol": "3.16.0",
|
|
46
48
|
"vscode-textmate": "7.0.1"
|
|
47
49
|
},
|
|
48
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "1480afacfef7ef11eae65c5cbbddce416f227fe8"
|
|
49
51
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ConstructorOf } from '@opensumi/di';
|
|
2
|
-
import { ApplicationConfig, UrlProvider } from '@opensumi/ide-core-common';
|
|
3
|
-
import { BrowserModule } from '../browser-module';
|
|
4
|
-
import { ClientAppContribution } from '../common/common.define';
|
|
5
|
-
export type ModuleConstructor = ConstructorOf<BrowserModule>;
|
|
6
|
-
export type ContributionConstructor = ConstructorOf<ClientAppContribution>;
|
|
7
|
-
export type Direction = 'left-to-right' | 'right-to-left' | 'top-to-bottom' | 'bottom-to-top';
|
|
8
|
-
export interface IconMap {
|
|
9
|
-
[iconKey: string]: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IPreferences {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export interface IconInfo {
|
|
15
|
-
cssPath: string;
|
|
16
|
-
prefix: string;
|
|
17
|
-
iconMap: IconMap;
|
|
18
|
-
}
|
|
19
|
-
export interface IClientAppOpts extends Partial<ApplicationConfig> {
|
|
20
|
-
modules: ModuleConstructor[];
|
|
21
|
-
contributions?: ContributionConstructor[];
|
|
22
|
-
modulesInstances?: BrowserModule[];
|
|
23
|
-
connectionPath?: UrlProvider;
|
|
24
|
-
connectionProtocols?: string[];
|
|
25
|
-
iconStyleSheets?: IconInfo[];
|
|
26
|
-
useCdnIcon?: boolean;
|
|
27
|
-
editorBackgroundImage?: string;
|
|
28
|
-
/**
|
|
29
|
-
* 插件开发模式下指定的插件路径
|
|
30
|
-
*/
|
|
31
|
-
extensionDevelopmentPath?: string | string[];
|
|
32
|
-
}
|
|
33
|
-
export interface LayoutConfig {
|
|
34
|
-
[area: string]: {
|
|
35
|
-
modules: Array<string>;
|
|
36
|
-
size?: number;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=app.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.interface.d.ts","sourceRoot":"","sources":["../../src/bootstrap/app.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB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sourceRoot":"","sources":["../../src/bootstrap/app.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { RawContextKey } from '../raw-context-key';
|
|
2
|
-
export declare const SearchViewFocusedKey: RawContextKey<boolean>;
|
|
3
|
-
export declare const SearchInputBoxFocusedKey: RawContextKey<boolean>;
|
|
4
|
-
export declare const ReplaceInputBoxFocusedKey: RawContextKey<boolean>;
|
|
5
|
-
export declare const HasSearchResults: RawContextKey<boolean>;
|
|
6
|
-
export declare const SearchViewVisibleKey: RawContextKey<boolean>;
|
|
7
|
-
export declare const InputBoxFocusedKey: RawContextKey<boolean>;
|
|
8
|
-
export declare const PatternIncludesFocusedKey: RawContextKey<boolean>;
|
|
9
|
-
export declare const PatternExcludesFocusedKey: RawContextKey<boolean>;
|
|
10
|
-
export declare const ReplaceActiveKey: RawContextKey<boolean>;
|
|
11
|
-
export declare const FirstMatchFocusKey: RawContextKey<boolean>;
|
|
12
|
-
export declare const FileMatchOrMatchFocusKey: RawContextKey<boolean>;
|
|
13
|
-
export declare const FileMatchOrFolderMatchFocusKey: RawContextKey<boolean>;
|
|
14
|
-
export declare const FileMatchOrFolderMatchWithResourceFocusKey: RawContextKey<boolean>;
|
|
15
|
-
export declare const FileFocusKey: RawContextKey<boolean>;
|
|
16
|
-
export declare const FolderFocusKey: RawContextKey<boolean>;
|
|
17
|
-
export declare const ResourceFolderFocusKey: RawContextKey<boolean>;
|
|
18
|
-
export declare const MatchFocusKey: RawContextKey<boolean>;
|
|
19
|
-
export declare const ViewHasSearchPatternKey: RawContextKey<boolean>;
|
|
20
|
-
export declare const ViewHasReplacePatternKey: RawContextKey<boolean>;
|
|
21
|
-
export declare const ViewHasFilePatternKey: RawContextKey<boolean>;
|
|
22
|
-
export declare const ViewHasSomeCollapsibleKey: RawContextKey<boolean>;
|
|
23
|
-
export declare const InTreeViewKey: RawContextKey<boolean>;
|
|
24
|
-
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/contextkey/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,eAAO,MAAM,oBAAoB,wBAA0D,CAAC;AAC5F,eAAO,MAAM,wBAAwB,wBAA2D,CAAC;AACjG,eAAO,MAAM,yBAAyB,wBAA4D,CAAC;AACnG,eAAO,MAAM,gBAAgB,wBAAuD,CAAC;AAGrF,eAAO,MAAM,oBAAoB,wBAA2D,CAAC;AAC7F,eAAO,MAAM,kBAAkB,wBAAqD,CAAC;AACrF,eAAO,MAAM,yBAAyB,wBAAoE,CAAC;AAC3G,eAAO,MAAM,yBAAyB,wBAAoE,CAAC;AAC3G,eAAO,MAAM,gBAAgB,wBAAqD,CAAC;AACnF,eAAO,MAAM,kBAAkB,wBAAuD,CAAC;AACvF,eAAO,MAAM,wBAAwB,wBAA6D,CAAC;AACnG,eAAO,MAAM,8BAA8B,wBAAmE,CAAC;AAC/G,eAAO,MAAM,0CAA0C,wBAGtD,CAAC;AACF,eAAO,MAAM,YAAY,wBAAsD,CAAC;AAChF,eAAO,MAAM,cAAc,wBAAwD,CAAC;AACpF,eAAO,MAAM,sBAAsB,wBAAoE,CAAC;AACxG,eAAO,MAAM,aAAa,wBAAkD,CAAC;AAC7E,eAAO,MAAM,uBAAuB,wBAA4D,CAAC;AACjG,eAAO,MAAM,wBAAwB,wBAA6D,CAAC;AACnG,eAAO,MAAM,qBAAqB,wBAA0D,CAAC;AAC7F,eAAO,MAAM,yBAAyB,wBAAoE,CAAC;AAC3G,eAAO,MAAM,aAAa,wBAAkD,CAAC"}
|
package/lib/contextkey/search.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InTreeViewKey = exports.ViewHasSomeCollapsibleKey = exports.ViewHasFilePatternKey = exports.ViewHasReplacePatternKey = exports.ViewHasSearchPatternKey = exports.MatchFocusKey = exports.ResourceFolderFocusKey = exports.FolderFocusKey = exports.FileFocusKey = exports.FileMatchOrFolderMatchWithResourceFocusKey = exports.FileMatchOrFolderMatchFocusKey = exports.FileMatchOrMatchFocusKey = exports.FirstMatchFocusKey = exports.ReplaceActiveKey = exports.PatternExcludesFocusedKey = exports.PatternIncludesFocusedKey = exports.InputBoxFocusedKey = exports.SearchViewVisibleKey = exports.HasSearchResults = exports.ReplaceInputBoxFocusedKey = exports.SearchInputBoxFocusedKey = exports.SearchViewFocusedKey = void 0;
|
|
4
|
-
const raw_context_key_1 = require("../raw-context-key");
|
|
5
|
-
// https://github.com/microsoft/vscode/blob/9318bcc5183dbbc49cea8843859cbdeb59b94eaf/src/vs/workbench/contrib/search/common/constants.ts
|
|
6
|
-
exports.SearchViewFocusedKey = new raw_context_key_1.RawContextKey('searchViewletFocus', false);
|
|
7
|
-
exports.SearchInputBoxFocusedKey = new raw_context_key_1.RawContextKey('searchInputBoxFocus', false);
|
|
8
|
-
exports.ReplaceInputBoxFocusedKey = new raw_context_key_1.RawContextKey('replaceInputBoxFocus', false);
|
|
9
|
-
exports.HasSearchResults = new raw_context_key_1.RawContextKey('hasSearchResult', false);
|
|
10
|
-
// not impliments
|
|
11
|
-
exports.SearchViewVisibleKey = new raw_context_key_1.RawContextKey('searchViewletVisible', true);
|
|
12
|
-
exports.InputBoxFocusedKey = new raw_context_key_1.RawContextKey('inputBoxFocus', false);
|
|
13
|
-
exports.PatternIncludesFocusedKey = new raw_context_key_1.RawContextKey('patternIncludesInputBoxFocus', false);
|
|
14
|
-
exports.PatternExcludesFocusedKey = new raw_context_key_1.RawContextKey('patternExcludesInputBoxFocus', false);
|
|
15
|
-
exports.ReplaceActiveKey = new raw_context_key_1.RawContextKey('replaceActive', false);
|
|
16
|
-
exports.FirstMatchFocusKey = new raw_context_key_1.RawContextKey('firstMatchFocus', false);
|
|
17
|
-
exports.FileMatchOrMatchFocusKey = new raw_context_key_1.RawContextKey('fileMatchOrMatchFocus', false); // This is actually, Match or File or Folder
|
|
18
|
-
exports.FileMatchOrFolderMatchFocusKey = new raw_context_key_1.RawContextKey('fileMatchOrFolderMatchFocus', false);
|
|
19
|
-
exports.FileMatchOrFolderMatchWithResourceFocusKey = new raw_context_key_1.RawContextKey('fileMatchOrFolderMatchWithResourceFocus', false); // Excludes "Other files"
|
|
20
|
-
exports.FileFocusKey = new raw_context_key_1.RawContextKey('fileMatchFocus', false);
|
|
21
|
-
exports.FolderFocusKey = new raw_context_key_1.RawContextKey('folderMatchFocus', false);
|
|
22
|
-
exports.ResourceFolderFocusKey = new raw_context_key_1.RawContextKey('folderMatchWithResourceFocus', false);
|
|
23
|
-
exports.MatchFocusKey = new raw_context_key_1.RawContextKey('matchFocus', false);
|
|
24
|
-
exports.ViewHasSearchPatternKey = new raw_context_key_1.RawContextKey('viewHasSearchPattern', false);
|
|
25
|
-
exports.ViewHasReplacePatternKey = new raw_context_key_1.RawContextKey('viewHasReplacePattern', false);
|
|
26
|
-
exports.ViewHasFilePatternKey = new raw_context_key_1.RawContextKey('viewHasFilePattern', false);
|
|
27
|
-
exports.ViewHasSomeCollapsibleKey = new raw_context_key_1.RawContextKey('viewHasSomeCollapsibleResult', false);
|
|
28
|
-
exports.InTreeViewKey = new raw_context_key_1.RawContextKey('inTreeView', false);
|
|
29
|
-
//# sourceMappingURL=search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/contextkey/search.ts"],"names":[],"mappings":";;;AAAA,wDAAmD;AAEnD,wIAAwI;AAC3H,QAAA,oBAAoB,GAAG,IAAI,+BAAa,CAAU,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAC/E,QAAA,wBAAwB,GAAG,IAAI,+BAAa,CAAU,qBAAqB,EAAE,KAAK,CAAC,CAAC;AACpF,QAAA,yBAAyB,GAAG,IAAI,+BAAa,CAAU,sBAAsB,EAAE,KA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wBAAwB,GAAG,IAAI,+BAAa,CAAU,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACtF,QAAA,qBAAqB,GAAG,IAAI,+BAAa,CAAU,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAChF,QAAA,yBAAyB,GAAG,IAAI,+BAAa,CAAU,8BAA8B,EAAE,KAAK,CAAC,CAAC;AAC9F,QAAA,aAAa,GAAG,IAAI,+BAAa,CAAU,YAAY,EAAE,KAAK,CAAC,CAAC"}
|
package/lib/file-decoration.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface IFileDecoration {
|
|
2
|
-
badge: string;
|
|
3
|
-
tooltip: string;
|
|
4
|
-
color: string;
|
|
5
|
-
weight?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface FileDecorationsProvider {
|
|
8
|
-
getDecoration: (uri: any, hasChildren?: boolean) => IFileDecoration;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=file-decoration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-decoration.d.ts","sourceRoot":"","sources":["../src/file-decoration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,eAAe,CAAC;CACrE"}
|
package/lib/file-decoration.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-decoration.js","sourceRoot":"","sources":["../src/file-decoration.ts"],"names":[],"mappings":""}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { URI } from '@opensumi/ide-core-common';
|
|
2
|
-
import type { ICodeEditor } from '@opensumi/monaco-editor-core/esm/vs/editor/browser/editorBrowser';
|
|
3
|
-
import type { IEditor } from '@opensumi/monaco-editor-core/esm/vs/editor/common/editorCommon';
|
|
4
|
-
import type { IEditorModel } from '@opensumi/monaco-editor-core/esm/vs/editor/common/editorCommon';
|
|
5
|
-
export interface IMergeEditorEditor extends IEditor {
|
|
6
|
-
getOursEditor(): ICodeEditor;
|
|
7
|
-
getResultEditor(): ICodeEditor;
|
|
8
|
-
getTheirsEditor(): ICodeEditor;
|
|
9
|
-
open(openMergeEditorArgs: IOpenMergeEditorArgs): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export interface IMergeEditorInputData {
|
|
12
|
-
uri: URI;
|
|
13
|
-
title?: string;
|
|
14
|
-
detail?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare class MergeEditorInputData implements IMergeEditorInputData {
|
|
18
|
-
readonly uri: URI;
|
|
19
|
-
readonly title?: string | undefined;
|
|
20
|
-
readonly detail?: string | undefined;
|
|
21
|
-
readonly description?: string | undefined;
|
|
22
|
-
static from(data: string): MergeEditorInputData;
|
|
23
|
-
private _textModel;
|
|
24
|
-
get textModel(): IEditorModel;
|
|
25
|
-
constructor(uri: URI, title?: string | undefined, detail?: string | undefined, description?: string | undefined);
|
|
26
|
-
getRaw(): IMergeEditorInputData;
|
|
27
|
-
toString(): string;
|
|
28
|
-
setTextModel(model: IEditorModel): this;
|
|
29
|
-
}
|
|
30
|
-
export interface IOpenMergeEditorArgs {
|
|
31
|
-
ancestor: {
|
|
32
|
-
uri: URI;
|
|
33
|
-
textModel: IEditorModel;
|
|
34
|
-
};
|
|
35
|
-
input1: MergeEditorInputData;
|
|
36
|
-
input2: MergeEditorInputData;
|
|
37
|
-
output: {
|
|
38
|
-
uri: URI;
|
|
39
|
-
textModel: IEditorModel;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
interface IValidateOpenArgs {
|
|
43
|
-
ancestor: URI;
|
|
44
|
-
input1: MergeEditorInputData;
|
|
45
|
-
input2: MergeEditorInputData;
|
|
46
|
-
output: URI;
|
|
47
|
-
}
|
|
48
|
-
export declare namespace IRelaxedOpenMergeEditorArgs {
|
|
49
|
-
const validate: (args: unknown) => IValidateOpenArgs;
|
|
50
|
-
const toString: (args: IValidateOpenArgs) => string;
|
|
51
|
-
}
|
|
52
|
-
export {};
|
|
53
|
-
//# sourceMappingURL=merge-editor-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merge-editor-widget.d.ts","sourceRoot":"","sources":["../../src/monaco/merge-editor-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAiB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kEAAkE,CAAC;AACpG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gEAAgE,CAAC;AAC9F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gEAAgE,CAAC;AAEnG,MAAM,WAAW,kBAAmB,SAAQ,OAAO;IACjD,aAAa,IAAI,WAAW,CAAC;IAC7B,eAAe,IAAI,WAAW,CAAC;IAC/B,eAAe,IAAI,WAAW,CAAC;IAC/B,IAAI,CAAC,mBAAmB,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,oBAAqB,YAAW,qBAAqB;IAgB9D,QAAQ,CAAC,GAAG,EAAE,GAAG;IACjB,QAAQ,CAAC,KAAK,CAAC;IACf,QAAQ,CAAC,MAAM,CAAC;IAChB,QAAQ,CAAC,WAAW,CAAC;IAlBvB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB;IAS/C,OAAO,CAAC,UAAU,CAAe;IACjC,IAAW,SAAS,IAAI,YAAY,CAEnC;gBAGU,GAAG,EAAE,GAAG,EACR,KAAK,CAAC,oBAAQ,EACd,MAAM,CAAC,oBAAoB,EAC3B,WAAW,CAAC,oBAAoB;IAGpC,MAAM,IAAI,qBAAqB;IAS/B,QAAQ,IAAI,MAAM;IASlB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;CAI/C;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE;QACR,GAAG,EAAE,GAAG,CAAC;QACT,SAAS,EAAE,YAAY,CAAC;KACzB,CAAC;IACF,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE;QACN,GAAG,EAAE,GAAG,CAAC;QACT,SAAS,EAAE,YAAY,CAAC;KACzB,CAAC;CACH;AAED,UAAU,iBAAiB;IACzB,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,GAAG,CAAC;CACb;AAED,yBAAiB,2BAA2B,CAAC;IACpC,MAAM,QAAQ,SAAU,OAAO,KAAG,iBAiBxC,CAAC;IAEK,MAAM,QAAQ,SAAU,iBAAiB,KAAG,MASlD,CAAC;CA4CH"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IRelaxedOpenMergeEditorArgs = exports.MergeEditorInputData = void 0;
|
|
4
|
-
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
5
|
-
class MergeEditorInputData {
|
|
6
|
-
static from(data) {
|
|
7
|
-
try {
|
|
8
|
-
const obj = JSON.parse(data);
|
|
9
|
-
return new MergeEditorInputData(obj.uri, obj.title, obj.detail, obj.description);
|
|
10
|
-
}
|
|
11
|
-
catch (error) {
|
|
12
|
-
throw Error('invalid MergeEditorInputData parse');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
get textModel() {
|
|
16
|
-
return this._textModel;
|
|
17
|
-
}
|
|
18
|
-
constructor(uri, title, detail, description) {
|
|
19
|
-
this.uri = uri;
|
|
20
|
-
this.title = title;
|
|
21
|
-
this.detail = detail;
|
|
22
|
-
this.description = description;
|
|
23
|
-
}
|
|
24
|
-
getRaw() {
|
|
25
|
-
return {
|
|
26
|
-
uri: this.uri,
|
|
27
|
-
title: this.title,
|
|
28
|
-
detail: this.detail,
|
|
29
|
-
description: this.description,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
toString() {
|
|
33
|
-
return JSON.stringify({
|
|
34
|
-
uri: this.uri.toString(),
|
|
35
|
-
title: this.title,
|
|
36
|
-
detail: this.detail,
|
|
37
|
-
description: this.description,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
setTextModel(model) {
|
|
41
|
-
this._textModel = model;
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.MergeEditorInputData = MergeEditorInputData;
|
|
46
|
-
var IRelaxedOpenMergeEditorArgs;
|
|
47
|
-
(function (IRelaxedOpenMergeEditorArgs) {
|
|
48
|
-
IRelaxedOpenMergeEditorArgs.validate = (args) => {
|
|
49
|
-
var _a, _b;
|
|
50
|
-
if (!args || typeof args !== 'object') {
|
|
51
|
-
throw new TypeError('invalid argument');
|
|
52
|
-
}
|
|
53
|
-
const obj = args;
|
|
54
|
-
const ancestor = toUri(obj.ancestor);
|
|
55
|
-
const output = toUri(obj.output);
|
|
56
|
-
const input1 = toInputData(Object.assign(Object.assign({}, obj.input1), { title: (_a = obj.input1.title) !== null && _a !== void 0 ? _a : 'Current' }));
|
|
57
|
-
const input2 = toInputData(Object.assign(Object.assign({}, obj.input2), { title: (_b = obj.input2.title) !== null && _b !== void 0 ? _b : 'Incoming' }));
|
|
58
|
-
return { ancestor, input1, input2, output };
|
|
59
|
-
};
|
|
60
|
-
IRelaxedOpenMergeEditorArgs.toString = (args) => {
|
|
61
|
-
const { ancestor, input1, input2, output } = args;
|
|
62
|
-
return JSON.stringify({
|
|
63
|
-
ancestor: ancestor.toString(),
|
|
64
|
-
input1: input1.toString(),
|
|
65
|
-
input2: input2.toString(),
|
|
66
|
-
output: output.toString(),
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
const toInputData = (args) => {
|
|
70
|
-
if (typeof args === 'string') {
|
|
71
|
-
return new MergeEditorInputData(ide_core_common_1.URI.parse(args));
|
|
72
|
-
}
|
|
73
|
-
if (!args || typeof args !== 'object') {
|
|
74
|
-
throw new TypeError('invalid argument');
|
|
75
|
-
}
|
|
76
|
-
if (isUriComponents(args)) {
|
|
77
|
-
return new MergeEditorInputData(ide_core_common_1.URI.from(args));
|
|
78
|
-
}
|
|
79
|
-
const obj = args;
|
|
80
|
-
const uri = toUri(obj.uri);
|
|
81
|
-
const title = obj.title;
|
|
82
|
-
const detail = obj.detail;
|
|
83
|
-
const description = obj.description;
|
|
84
|
-
return new MergeEditorInputData(uri, title, detail, description);
|
|
85
|
-
};
|
|
86
|
-
const toUri = (args) => {
|
|
87
|
-
if (typeof args === 'string') {
|
|
88
|
-
return ide_core_common_1.URI.parse(args);
|
|
89
|
-
}
|
|
90
|
-
else if (args && typeof args === 'object') {
|
|
91
|
-
return ide_core_common_1.URI.from(args);
|
|
92
|
-
}
|
|
93
|
-
throw new TypeError('invalid argument');
|
|
94
|
-
};
|
|
95
|
-
const isUriComponents = (args) => {
|
|
96
|
-
if (!args || typeof args !== 'object') {
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
const obj = args;
|
|
100
|
-
return (typeof obj.scheme === 'string' &&
|
|
101
|
-
typeof obj.authority === 'string' &&
|
|
102
|
-
typeof obj.path === 'string' &&
|
|
103
|
-
typeof obj.query === 'string' &&
|
|
104
|
-
typeof obj.fragment === 'string');
|
|
105
|
-
};
|
|
106
|
-
})(IRelaxedOpenMergeEditorArgs = exports.IRelaxedOpenMergeEditorArgs || (exports.IRelaxedOpenMergeEditorArgs = {}));
|
|
107
|
-
//# sourceMappingURL=merge-editor-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"merge-editor-widget.js","sourceRoot":"","sources":["../../src/monaco/merge-editor-widget.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAmB/D,MAAa,oBAAoB;IAC/B,MAAM,CAAC,IAAI,CAAC,IAAY;QACtB,IAAI;YACF,MAAM,GAAG,GAAyB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACnD,OAAO,IAAI,oBAAoB,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;SAClF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACnD;IACH,CAAC;IAGD,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,YACW,GAAQ,EACR,KAAc,EACd,MAA2B,EAC3B,WAAgC;QAHhC,QAAG,GAAH,GAAG,CAAK;QACR,UAAK,GAAL,KAAK,CAAS;QACd,WAAM,GAAN,MAAM,CAAqB;QAC3B,gBAAW,GAAX,WAAW,CAAqB;IACxC,CAAC;IAEG,MAAM;QACX,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC;IACJ,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,SAAS,CAAC;YACpB,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAA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AAyB,EAAE;QAC/D,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACrC,OAAO,KAAK,CAAC;SACd;QACD,MAAM,GAAG,GAAG,IAAqB,CAAC;QAClC,OAAO,CACL,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ;YAC9B,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ;YACjC,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ;YAC5B,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ;YAC7B,OAAO,GAAG,CAAC,QAAQ,KAAK,QAAQ,CACjC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,EAzEgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAyE3C"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
|
-
export interface ThrottleOptions {
|
|
3
|
-
leading?: boolean;
|
|
4
|
-
trailing?: boolean;
|
|
5
|
-
}
|
|
6
|
-
type noop = (...args: any[]) => any;
|
|
7
|
-
declare function useThrottleFn<T extends noop>(fn: T, wait: number, options?: ThrottleOptions): {
|
|
8
|
-
run: import("lodash").DebouncedFunc<(...args: Parameters<T>) => ReturnType<T>>;
|
|
9
|
-
cancel: () => void;
|
|
10
|
-
flush: () => ReturnType<T> | undefined;
|
|
11
|
-
};
|
|
12
|
-
export default useThrottleFn;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react-hooks/useThrottleFn/index.ts"],"names":[],"mappings":";AAGA,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAEpC,iBAAS,aAAa,CAAC,CAAC,SAAS,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe;kDAKxD,WAAW,CAAC,CAAC,KAAG,WAAW,CAAC,CAAC;;;EAgBzD;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
function useThrottleFn(fn, wait, options) {
|
|
7
|
-
const fnRef = (0, react_1.useRef)(fn);
|
|
8
|
-
fnRef.current = fn;
|
|
9
|
-
const throttled = (0, react_1.useMemo)(() => (0, throttle_1.default)((...args) => fnRef.current(...args), wait, options), []);
|
|
10
|
-
(0, react_1.useEffect)(() => () => {
|
|
11
|
-
throttled.cancel();
|
|
12
|
-
}, []);
|
|
13
|
-
return {
|
|
14
|
-
run: throttled,
|
|
15
|
-
cancel: throttled.cancel,
|
|
16
|
-
flush: throttled.flush,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
exports.default = useThrottleFn;
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react-hooks/useThrottleFn/index.ts"],"names":[],"mappings":";;;AAAA,uEAAuC;AACvC,iCAAmD;AASnD,SAAS,aAAa,CAAiB,EAAK,EAAE,IAAY,EAAE,OAAyB;IACnF,MAAM,KAAK,GAAG,IAAA,cAAM,EAAC,EAAE,CAAC,CAAC;IACzB,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;IAEnB,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE,CAAC,IAAA,kBAAQ,EAAC,CAAC,GAAG,IAAmB,EAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,EAChG,EAAE,CACH,CAAC;IAEF,IAAA,iBAAS,EACP,GAAG,EAAE,CAAC,GAAG,EAAE;QACT,SAAS,CAAC,MAAM,EAAE,CAAC;IACrB,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO;QACL,GAAG,EAAE,SAAS;QACd,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,KAAK,EAAE,SAAS,CAAC,KAAK;KACvB,CAAC;AACJ,CAAC;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Injectable, Autowired } from '@opensumi/di';
|
|
2
|
-
import { Deferred, IEventBus, BasicEvent } from '@opensumi/ide-core-common';
|
|
3
|
-
|
|
4
|
-
// 状态本身不带有顺序,以 `reachedState` 时生成 promise,以赋值时 resolve 掉 promise
|
|
5
|
-
export type ClientAppState =
|
|
6
|
-
| 'init'
|
|
7
|
-
| 'client_connected'
|
|
8
|
-
// contribution initialized 及命令、菜单、快捷键三个核心模块都初始化结束后
|
|
9
|
-
| 'core_module_initialized'
|
|
10
|
-
| 'started_contributions'
|
|
11
|
-
| 'ready'
|
|
12
|
-
| 'electron_asking_close'
|
|
13
|
-
| 'electron_confirmed_close'
|
|
14
|
-
| 'electron_closing'
|
|
15
|
-
| 'closing_window';
|
|
16
|
-
|
|
17
|
-
export class ClientAppStateEvent extends BasicEvent<ClientAppState> {}
|
|
18
|
-
|
|
19
|
-
@Injectable()
|
|
20
|
-
export class ClientAppStateService {
|
|
21
|
-
private _state: ClientAppState = 'init';
|
|
22
|
-
|
|
23
|
-
protected deferred: { [state: string]: Deferred<void> } = {};
|
|
24
|
-
|
|
25
|
-
@Autowired(IEventBus)
|
|
26
|
-
private eventBus: IEventBus;
|
|
27
|
-
|
|
28
|
-
get state(): ClientAppState {
|
|
29
|
-
return this._state;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
set state(state: ClientAppState) {
|
|
33
|
-
if (state !== this._state) {
|
|
34
|
-
this.deferred[this._state] = new Deferred();
|
|
35
|
-
this._state = state;
|
|
36
|
-
if (this.deferred[state] === undefined) {
|
|
37
|
-
this.deferred[state] = new Deferred();
|
|
38
|
-
}
|
|
39
|
-
this.deferred[state].resolve();
|
|
40
|
-
this.eventBus.fire(new ClientAppStateEvent(state));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
public reachedState(state: ClientAppState): Promise<void> {
|
|
45
|
-
if (this.deferred[state] === undefined) {
|
|
46
|
-
this.deferred[state] = new Deferred();
|
|
47
|
-
}
|
|
48
|
-
return this.deferred[state].promise;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
public reachedAnyState(...states: ClientAppState[]): Promise<void> {
|
|
52
|
-
return Promise.race(states.map((s) => this.reachedState(s)));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Injectable, Autowired } from '@opensumi/di';
|
|
2
|
-
import {
|
|
3
|
-
OS,
|
|
4
|
-
OperatingSystem,
|
|
5
|
-
IApplicationService,
|
|
6
|
-
CommonServerPath,
|
|
7
|
-
ICommonServer,
|
|
8
|
-
Deferred,
|
|
9
|
-
} from '@opensumi/ide-core-common';
|
|
10
|
-
|
|
11
|
-
import { AppConfig } from '../react-providers/config-provider';
|
|
12
|
-
|
|
13
|
-
@Injectable()
|
|
14
|
-
export class ApplicationService implements IApplicationService {
|
|
15
|
-
@Autowired(CommonServerPath)
|
|
16
|
-
protected readonly commonServer: ICommonServer;
|
|
17
|
-
|
|
18
|
-
@Autowired(AppConfig)
|
|
19
|
-
private readonly appConfig: AppConfig;
|
|
20
|
-
|
|
21
|
-
private _backendOS: OperatingSystem;
|
|
22
|
-
|
|
23
|
-
private _initialized = new Deferred<void>();
|
|
24
|
-
|
|
25
|
-
async initializeData() {
|
|
26
|
-
this._backendOS = await this.commonServer.getBackendOS();
|
|
27
|
-
this._initialized.resolve();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
get frontendOS() {
|
|
31
|
-
return OS.type();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
get backendOS() {
|
|
35
|
-
if (this._backendOS) {
|
|
36
|
-
return this._backendOS;
|
|
37
|
-
}
|
|
38
|
-
// electron 作为 backend,可直接使用 frontend 的 os
|
|
39
|
-
if (this.appConfig.isElectronRenderer) {
|
|
40
|
-
return this.frontendOS;
|
|
41
|
-
}
|
|
42
|
-
throw new Error(
|
|
43
|
-
"Can't get backend os type before initialize, if you want wait to get backend os, please use async method: getBackendOS",
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
async getBackendOS() {
|
|
48
|
-
await this._initialized.promise;
|
|
49
|
-
return this.backendOS;
|
|
50
|
-
}
|
|
51
|
-
}
|
package/src/application/index.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Autowired } from '@opensumi/di';
|
|
2
|
-
import {
|
|
3
|
-
Domain,
|
|
4
|
-
IAuthenticationService,
|
|
5
|
-
CommandContribution,
|
|
6
|
-
CommandRegistry,
|
|
7
|
-
noAccountsId,
|
|
8
|
-
} from '@opensumi/ide-core-common';
|
|
9
|
-
|
|
10
|
-
import { ClientAppContribution } from '../common/common.define';
|
|
11
|
-
|
|
12
|
-
@Domain(ClientAppContribution, CommandContribution)
|
|
13
|
-
export class AuthenticationContribution implements ClientAppContribution, CommandContribution {
|
|
14
|
-
@Autowired(IAuthenticationService)
|
|
15
|
-
protected readonly authenticationService: IAuthenticationService;
|
|
16
|
-
|
|
17
|
-
onStart() {
|
|
18
|
-
this.authenticationService.initialize();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
registerCommands(commands: CommandRegistry) {
|
|
22
|
-
commands.registerCommand(
|
|
23
|
-
{
|
|
24
|
-
id: noAccountsId,
|
|
25
|
-
label: '%authentication.noAccounts%',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
execute: () => {
|
|
29
|
-
// noop
|
|
30
|
-
// 点击菜单时空实现
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
}
|