@opensumi/ide-core-browser 2.12.1-next-079c1930
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 +16 -0
- package/lib/application/application-state-service.d.ts +16 -0
- package/lib/application/application-state-service.d.ts.map +1 -0
- package/lib/application/application-state-service.js +47 -0
- package/lib/application/application-state-service.js.map +1 -0
- package/lib/application/application.service.d.ts +11 -0
- package/lib/application/application.service.d.ts.map +1 -0
- package/lib/application/application.service.js +41 -0
- package/lib/application/application.service.js.map +1 -0
- package/lib/application/index.d.ts +3 -0
- package/lib/application/index.d.ts.map +1 -0
- package/lib/application/index.js +6 -0
- package/lib/application/index.js.map +1 -0
- package/lib/authentication/authentication.contribution.d.ts +8 -0
- package/lib/authentication/authentication.contribution.d.ts.map +1 -0
- package/lib/authentication/authentication.contribution.js +32 -0
- package/lib/authentication/authentication.contribution.js.map +1 -0
- package/lib/authentication/authentication.service.d.ts +54 -0
- package/lib/authentication/authentication.service.d.ts.map +1 -0
- package/lib/authentication/authentication.service.js +413 -0
- package/lib/authentication/authentication.service.js.map +1 -0
- package/lib/bootstrap/app.d.ts +142 -0
- package/lib/bootstrap/app.d.ts.map +1 -0
- package/lib/bootstrap/app.js +516 -0
- package/lib/bootstrap/app.js.map +1 -0
- package/lib/bootstrap/app.view.d.ts +11 -0
- package/lib/bootstrap/app.view.d.ts.map +1 -0
- package/lib/bootstrap/app.view.js +72 -0
- package/lib/bootstrap/app.view.js.map +1 -0
- package/lib/bootstrap/connection.d.ts +7 -0
- package/lib/bootstrap/connection.d.ts.map +1 -0
- package/lib/bootstrap/connection.js +78 -0
- package/lib/bootstrap/connection.js.map +1 -0
- package/lib/bootstrap/index.d.ts +4 -0
- package/lib/bootstrap/index.d.ts.map +1 -0
- package/lib/bootstrap/index.js +7 -0
- package/lib/bootstrap/index.js.map +1 -0
- package/lib/bootstrap/inner-providers.d.ts +3 -0
- package/lib/bootstrap/inner-providers.d.ts.map +1 -0
- package/lib/bootstrap/inner-providers.js +231 -0
- package/lib/bootstrap/inner-providers.js.map +1 -0
- package/lib/browser-module.d.ts +20 -0
- package/lib/browser-module.d.ts.map +1 -0
- package/lib/browser-module.js +15 -0
- package/lib/browser-module.js.map +1 -0
- package/lib/common/common.command.d.ts +156 -0
- package/lib/common/common.command.d.ts.map +1 -0
- package/lib/common/common.command.js +611 -0
- package/lib/common/common.command.js.map +1 -0
- package/lib/common/common.contribution.d.ts +22 -0
- package/lib/common/common.contribution.d.ts.map +1 -0
- package/lib/common/common.contribution.js +241 -0
- package/lib/common/common.contribution.js.map +1 -0
- package/lib/common/common.define.d.ts +47 -0
- package/lib/common/common.define.d.ts.map +1 -0
- package/lib/common/common.define.js +5 -0
- package/lib/common/common.define.js.map +1 -0
- package/lib/common/common.module.d.ts +13 -0
- package/lib/common/common.module.d.ts.map +1 -0
- package/lib/common/common.module.js +41 -0
- package/lib/common/common.module.js.map +1 -0
- package/lib/common/common.storage.d.ts +9 -0
- package/lib/common/common.storage.d.ts.map +1 -0
- package/lib/common/common.storage.js +25 -0
- package/lib/common/common.storage.js.map +1 -0
- package/lib/common/index.d.ts +5 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +8 -0
- package/lib/common/index.js.map +1 -0
- package/lib/components/actions/index.d.ts +77 -0
- package/lib/components/actions/index.d.ts.map +1 -0
- package/lib/components/actions/index.js +201 -0
- package/lib/components/actions/index.js.map +1 -0
- package/lib/components/actions/placements.d.ts +58 -0
- package/lib/components/actions/placements.d.ts.map +1 -0
- package/lib/components/actions/placements.js +48 -0
- package/lib/components/actions/placements.js.map +1 -0
- package/lib/components/actions/styles.module.less +128 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/badge/index.d.ts.map +1 -0
- package/lib/components/badge/index.js +6 -0
- package/lib/components/badge/index.js.map +1 -0
- package/lib/components/click-outside/index.d.ts +6 -0
- package/lib/components/click-outside/index.d.ts.map +1 -0
- package/lib/components/click-outside/index.js +27 -0
- package/lib/components/click-outside/index.js.map +1 -0
- package/lib/components/index.d.ts +25 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +30 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/layout/box-panel.d.ts +18 -0
- package/lib/components/layout/box-panel.d.ts.map +1 -0
- package/lib/components/layout/box-panel.js +20 -0
- package/lib/components/layout/box-panel.js.map +1 -0
- package/lib/components/layout/default-layout.d.ts +15 -0
- package/lib/components/layout/default-layout.d.ts.map +1 -0
- package/lib/components/layout/default-layout.js +39 -0
- package/lib/components/layout/default-layout.js.map +1 -0
- package/lib/components/layout/index.d.ts +5 -0
- package/lib/components/layout/index.d.ts.map +1 -0
- package/lib/components/layout/index.js +8 -0
- package/lib/components/layout/index.js.map +1 -0
- package/lib/components/layout/layout.d.ts +13 -0
- package/lib/components/layout/layout.d.ts.map +1 -0
- package/lib/components/layout/layout.js +72 -0
- package/lib/components/layout/layout.js.map +1 -0
- package/lib/components/layout/split-panel.d.ts +38 -0
- package/lib/components/layout/split-panel.d.ts.map +1 -0
- package/lib/components/layout/split-panel.js +182 -0
- package/lib/components/layout/split-panel.js.map +1 -0
- package/lib/components/layout/split-panel.service.d.ts +16 -0
- package/lib/components/layout/split-panel.service.d.ts.map +1 -0
- package/lib/components/layout/split-panel.service.js +69 -0
- package/lib/components/layout/split-panel.service.js.map +1 -0
- package/lib/components/layout/styles.module.less +119 -0
- package/lib/components/loading/index.d.ts +2 -0
- package/lib/components/loading/index.d.ts.map +1 -0
- package/lib/components/loading/index.js +5 -0
- package/lib/components/loading/index.js.map +1 -0
- package/lib/components/loading/loading.less +14 -0
- package/lib/components/loading/loading.view.d.ts +4 -0
- package/lib/components/loading/loading.view.d.ts.map +1 -0
- package/lib/components/loading/loading.view.js +12 -0
- package/lib/components/loading/loading.view.js.map +1 -0
- package/lib/components/loading/media/loading-dark.svg +52 -0
- package/lib/components/loading/media/loading-hc.svg +52 -0
- package/lib/components/loading/media/loading.svg +52 -0
- package/lib/components/popover/styles.module.less +81 -0
- package/lib/components/portal/index.d.ts +6 -0
- package/lib/components/portal/index.d.ts.map +1 -0
- package/lib/components/portal/index.js +11 -0
- package/lib/components/portal/index.js.map +1 -0
- package/lib/components/progressbar/index.d.ts +5 -0
- package/lib/components/progressbar/index.d.ts.map +1 -0
- package/lib/components/progressbar/index.js +15 -0
- package/lib/components/progressbar/index.js.map +1 -0
- 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 +192 -0
- package/lib/components/recycle-tree/recycle-tree.view.js.map +1 -0
- package/lib/components/resize/resize.d.ts +39 -0
- package/lib/components/resize/resize.d.ts.map +1 -0
- package/lib/components/resize/resize.js +609 -0
- package/lib/components/resize/resize.js.map +1 -0
- package/lib/components/resize/resize.module.less +78 -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/select/index.d.ts +4 -0
- package/lib/components/select/index.d.ts.map +1 -0
- package/lib/components/select/index.js +14 -0
- package/lib/components/select/index.js.map +1 -0
- package/lib/components/select/styles.less +8 -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 +346 -0
- package/lib/components/tree/tree-node.view.js.map +1 -0
- package/lib/components/tree/tree.module.less +295 -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 +246 -0
- package/lib/components/tree/tree.view.js.map +1 -0
- package/lib/context-key.d.ts +32 -0
- package/lib/context-key.d.ts.map +1 -0
- package/lib/context-key.js +9 -0
- package/lib/context-key.js.map +1 -0
- package/lib/contextkey/explorer.d.ts +16 -0
- package/lib/contextkey/explorer.d.ts.map +1 -0
- package/lib/contextkey/explorer.js +20 -0
- package/lib/contextkey/explorer.js.map +1 -0
- package/lib/contextkey/index.d.ts +6 -0
- package/lib/contextkey/index.d.ts.map +1 -0
- package/lib/contextkey/index.js +9 -0
- package/lib/contextkey/index.js.map +1 -0
- package/lib/contextkey/outline.d.ts +4 -0
- package/lib/contextkey/outline.d.ts.map +1 -0
- package/lib/contextkey/outline.js +7 -0
- package/lib/contextkey/outline.js.map +1 -0
- package/lib/contextkey/resource.d.ts +17 -0
- package/lib/contextkey/resource.d.ts.map +1 -0
- package/lib/contextkey/resource.js +45 -0
- package/lib/contextkey/resource.js.map +1 -0
- package/lib/contextkey/terminal.d.ts +7 -0
- package/lib/contextkey/terminal.d.ts.map +1 -0
- package/lib/contextkey/terminal.js +10 -0
- package/lib/contextkey/terminal.js.map +1 -0
- package/lib/contextkey/workspace.d.ts +7 -0
- package/lib/contextkey/workspace.d.ts.map +1 -0
- package/lib/contextkey/workspace.js +10 -0
- package/lib/contextkey/workspace.js.map +1 -0
- package/lib/core-preferences.d.ts +57 -0
- package/lib/core-preferences.d.ts.map +1 -0
- package/lib/core-preferences.js +328 -0
- package/lib/core-preferences.js.map +1 -0
- package/lib/dom/index.d.ts +68 -0
- package/lib/dom/index.d.ts.map +1 -0
- package/lib/dom/index.js +126 -0
- package/lib/dom/index.js.map +1 -0
- package/lib/encoding-registry.d.ts +31 -0
- package/lib/encoding-registry.d.ts.map +1 -0
- package/lib/encoding-registry.js +85 -0
- package/lib/encoding-registry.js.map +1 -0
- package/lib/fs/index.d.ts +12 -0
- package/lib/fs/index.d.ts.map +1 -0
- package/lib/fs/index.js +9 -0
- package/lib/fs/index.js.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.d.ts +6 -0
- package/lib/hash-calculate/hash-calculate.contribution.d.ts.map +1 -0
- package/lib/hash-calculate/hash-calculate.contribution.js +27 -0
- package/lib/hash-calculate/hash-calculate.contribution.js.map +1 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +34 -0
- package/lib/index.js.map +1 -0
- package/lib/keybinding/index.d.ts +2 -0
- package/lib/keybinding/index.d.ts.map +1 -0
- package/lib/keybinding/index.js +5 -0
- package/lib/keybinding/index.js.map +1 -0
- package/lib/keybinding/keybinding.d.ts +340 -0
- package/lib/keybinding/keybinding.d.ts.map +1 -0
- package/lib/keybinding/keybinding.js +720 -0
- package/lib/keybinding/keybinding.js.map +1 -0
- package/lib/keyboard/index.d.ts +4 -0
- package/lib/keyboard/index.d.ts.map +1 -0
- package/lib/keyboard/index.js +7 -0
- package/lib/keyboard/index.js.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts +92 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.js +344 -0
- package/lib/keyboard/keyboard-layout-provider.js.map +1 -0
- package/lib/keyboard/keyboard-layout-service.d.ts +65 -0
- package/lib/keyboard/keyboard-layout-service.d.ts.map +1 -0
- package/lib/keyboard/keyboard-layout-service.js +415 -0
- package/lib/keyboard/keyboard-layout-service.js.map +1 -0
- package/lib/keyboard/keys.d.ts +294 -0
- package/lib/keyboard/keys.d.ts.map +1 -0
- package/lib/keyboard/keys.js +699 -0
- package/lib/keyboard/keys.js.map +1 -0
- package/lib/keyboard/layouts/_.contribution.d.ts +9 -0
- package/lib/keyboard/layouts/_.contribution.d.ts.map +1 -0
- package/lib/keyboard/layouts/_.contribution.js +21 -0
- package/lib/keyboard/layouts/_.contribution.js.map +1 -0
- package/lib/keyboard/layouts/cz.win.d.ts +2 -0
- package/lib/keyboard/layouts/cz.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/cz.win.js +169 -0
- package/lib/keyboard/layouts/cz.win.js.map +1 -0
- package/lib/keyboard/layouts/de-swiss.win.d.ts +2 -0
- package/lib/keyboard/layouts/de-swiss.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/de-swiss.win.js +169 -0
- package/lib/keyboard/layouts/de-swiss.win.js.map +1 -0
- package/lib/keyboard/layouts/de.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/de.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.darwin.js +132 -0
- package/lib/keyboard/layouts/de.darwin.js.map +1 -0
- package/lib/keyboard/layouts/de.linux.d.ts +2 -0
- package/lib/keyboard/layouts/de.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.linux.js +187 -0
- package/lib/keyboard/layouts/de.linux.js.map +1 -0
- package/lib/keyboard/layouts/de.win.d.ts +2 -0
- package/lib/keyboard/layouts/de.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/de.win.js +169 -0
- package/lib/keyboard/layouts/de.win.js.map +1 -0
- package/lib/keyboard/layouts/dk.win.d.ts +2 -0
- package/lib/keyboard/layouts/dk.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/dk.win.js +169 -0
- package/lib/keyboard/layouts/dk.win.js.map +1 -0
- package/lib/keyboard/layouts/dvorak.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/dvorak.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/dvorak.darwin.js +132 -0
- package/lib/keyboard/layouts/dvorak.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-belgian.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-belgian.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-belgian.win.js +169 -0
- package/lib/keyboard/layouts/en-belgian.win.js.map +1 -0
- package/lib/keyboard/layouts/en-ext.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-ext.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-ext.darwin.js +132 -0
- package/lib/keyboard/layouts/en-ext.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-in.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-in.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-in.win.js +169 -0
- package/lib/keyboard/layouts/en-in.win.js.map +1 -0
- package/lib/keyboard/layouts/en-intl.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-intl.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-intl.darwin.js +132 -0
- package/lib/keyboard/layouts/en-intl.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-intl.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-intl.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-intl.win.js +169 -0
- package/lib/keyboard/layouts/en-intl.win.js.map +1 -0
- package/lib/keyboard/layouts/en-uk.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en-uk.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-uk.darwin.js +132 -0
- package/lib/keyboard/layouts/en-uk.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en-uk.win.d.ts +2 -0
- package/lib/keyboard/layouts/en-uk.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en-uk.win.js +169 -0
- package/lib/keyboard/layouts/en-uk.win.js.map +1 -0
- package/lib/keyboard/layouts/en.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/en.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.darwin.js +140 -0
- package/lib/keyboard/layouts/en.darwin.js.map +1 -0
- package/lib/keyboard/layouts/en.linux.d.ts +2 -0
- package/lib/keyboard/layouts/en.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.linux.js +189 -0
- package/lib/keyboard/layouts/en.linux.js.map +1 -0
- package/lib/keyboard/layouts/en.win.d.ts +2 -0
- package/lib/keyboard/layouts/en.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/en.win.js +174 -0
- package/lib/keyboard/layouts/en.win.js.map +1 -0
- package/lib/keyboard/layouts/es-latin.win.d.ts +2 -0
- package/lib/keyboard/layouts/es-latin.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/es-latin.win.js +169 -0
- package/lib/keyboard/layouts/es-latin.win.js.map +1 -0
- package/lib/keyboard/layouts/es.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/es.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.darwin.js +132 -0
- package/lib/keyboard/layouts/es.darwin.js.map +1 -0
- package/lib/keyboard/layouts/es.linux.d.ts +2 -0
- package/lib/keyboard/layouts/es.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.linux.js +187 -0
- package/lib/keyboard/layouts/es.linux.js.map +1 -0
- package/lib/keyboard/layouts/es.win.d.ts +2 -0
- package/lib/keyboard/layouts/es.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/es.win.js +169 -0
- package/lib/keyboard/layouts/es.win.js.map +1 -0
- package/lib/keyboard/layouts/fr.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/fr.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.darwin.js +132 -0
- package/lib/keyboard/layouts/fr.darwin.js.map +1 -0
- package/lib/keyboard/layouts/fr.linux.d.ts +2 -0
- package/lib/keyboard/layouts/fr.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.linux.js +187 -0
- package/lib/keyboard/layouts/fr.linux.js.map +1 -0
- package/lib/keyboard/layouts/fr.win.d.ts +2 -0
- package/lib/keyboard/layouts/fr.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/fr.win.js +169 -0
- package/lib/keyboard/layouts/fr.win.js.map +1 -0
- package/lib/keyboard/layouts/hu.win.d.ts +2 -0
- package/lib/keyboard/layouts/hu.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/hu.win.js +169 -0
- package/lib/keyboard/layouts/hu.win.js.map +1 -0
- package/lib/keyboard/layouts/it.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/it.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/it.darwin.js +132 -0
- package/lib/keyboard/layouts/it.darwin.js.map +1 -0
- package/lib/keyboard/layouts/it.win.d.ts +2 -0
- package/lib/keyboard/layouts/it.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/it.win.js +169 -0
- package/lib/keyboard/layouts/it.win.js.map +1 -0
- package/lib/keyboard/layouts/jp-roman.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/jp-roman.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/jp-roman.darwin.js +132 -0
- package/lib/keyboard/layouts/jp-roman.darwin.js.map +1 -0
- package/lib/keyboard/layouts/jp.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/jp.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/jp.darwin.js +132 -0
- package/lib/keyboard/layouts/jp.darwin.js.map +1 -0
- package/lib/keyboard/layouts/ko.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/ko.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/ko.darwin.js +132 -0
- package/lib/keyboard/layouts/ko.darwin.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.d.ts +3 -0
- package/lib/keyboard/layouts/layout.contribution.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.js +27 -0
- package/lib/keyboard/layouts/layout.contribution.darwin.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.js +11 -0
- package/lib/keyboard/layouts/layout.contribution.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.linux.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.linux.js +16 -0
- package/lib/keyboard/layouts/layout.contribution.linux.js.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.win.d.ts +2 -0
- package/lib/keyboard/layouts/layout.contribution.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/layout.contribution.win.js +33 -0
- package/lib/keyboard/layouts/layout.contribution.win.js.map +1 -0
- package/lib/keyboard/layouts/no.win.d.ts +2 -0
- package/lib/keyboard/layouts/no.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/no.win.js +169 -0
- package/lib/keyboard/layouts/no.win.js.map +1 -0
- package/lib/keyboard/layouts/pl.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/pl.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/pl.darwin.js +132 -0
- package/lib/keyboard/layouts/pl.darwin.js.map +1 -0
- package/lib/keyboard/layouts/pl.win.d.ts +2 -0
- package/lib/keyboard/layouts/pl.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pl.win.js +169 -0
- package/lib/keyboard/layouts/pl.win.js.map +1 -0
- package/lib/keyboard/layouts/pt-br.win.d.ts +2 -0
- package/lib/keyboard/layouts/pt-br.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt-br.win.js +169 -0
- package/lib/keyboard/layouts/pt-br.win.js.map +1 -0
- package/lib/keyboard/layouts/pt.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/pt.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt.darwin.js +132 -0
- package/lib/keyboard/layouts/pt.darwin.js.map +1 -0
- package/lib/keyboard/layouts/pt.win.d.ts +2 -0
- package/lib/keyboard/layouts/pt.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/pt.win.js +169 -0
- package/lib/keyboard/layouts/pt.win.js.map +1 -0
- package/lib/keyboard/layouts/ru.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/ru.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.darwin.js +132 -0
- package/lib/keyboard/layouts/ru.darwin.js.map +1 -0
- package/lib/keyboard/layouts/ru.linux.d.ts +2 -0
- package/lib/keyboard/layouts/ru.linux.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.linux.js +187 -0
- package/lib/keyboard/layouts/ru.linux.js.map +1 -0
- package/lib/keyboard/layouts/ru.win.d.ts +2 -0
- package/lib/keyboard/layouts/ru.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/ru.win.js +169 -0
- package/lib/keyboard/layouts/ru.win.js.map +1 -0
- package/lib/keyboard/layouts/sv.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/sv.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/sv.darwin.js +132 -0
- package/lib/keyboard/layouts/sv.darwin.js.map +1 -0
- package/lib/keyboard/layouts/sv.win.d.ts +2 -0
- package/lib/keyboard/layouts/sv.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/sv.win.js +171 -0
- package/lib/keyboard/layouts/sv.win.js.map +1 -0
- package/lib/keyboard/layouts/thai.win.d.ts +2 -0
- package/lib/keyboard/layouts/thai.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/thai.win.js +169 -0
- package/lib/keyboard/layouts/thai.win.js.map +1 -0
- package/lib/keyboard/layouts/tr.win.d.ts +2 -0
- package/lib/keyboard/layouts/tr.win.d.ts.map +1 -0
- package/lib/keyboard/layouts/tr.win.js +169 -0
- package/lib/keyboard/layouts/tr.win.js.map +1 -0
- package/lib/keyboard/layouts/zh-hans.darwin.d.ts +2 -0
- package/lib/keyboard/layouts/zh-hans.darwin.d.ts.map +1 -0
- package/lib/keyboard/layouts/zh-hans.darwin.js +132 -0
- package/lib/keyboard/layouts/zh-hans.darwin.js.map +1 -0
- package/lib/layout/accordion/tab-bar-toolbar.d.ts +25 -0
- package/lib/layout/accordion/tab-bar-toolbar.d.ts.map +1 -0
- package/lib/layout/accordion/tab-bar-toolbar.js +37 -0
- package/lib/layout/accordion/tab-bar-toolbar.js.map +1 -0
- package/lib/layout/accordion/view-context-key.registry.d.ts +9 -0
- package/lib/layout/accordion/view-context-key.registry.d.ts.map +1 -0
- package/lib/layout/accordion/view-context-key.registry.js +38 -0
- package/lib/layout/accordion/view-context-key.registry.js.map +1 -0
- package/lib/layout/index.d.ts +103 -0
- package/lib/layout/index.d.ts.map +1 -0
- package/lib/layout/index.js +143 -0
- package/lib/layout/index.js.map +1 -0
- package/lib/layout/layout-state.d.ts +24 -0
- package/lib/layout/layout-state.d.ts.map +1 -0
- package/lib/layout/layout-state.js +99 -0
- package/lib/layout/layout-state.js.map +1 -0
- package/lib/logger/browser-logger.d.ts +17 -0
- package/lib/logger/browser-logger.d.ts.map +1 -0
- package/lib/logger/browser-logger.js +50 -0
- package/lib/logger/browser-logger.js.map +1 -0
- package/lib/logger/index.d.ts +2 -0
- package/lib/logger/index.d.ts.map +1 -0
- package/lib/logger/index.js +5 -0
- package/lib/logger/index.js.map +1 -0
- package/lib/menu/next/base.d.ts +242 -0
- package/lib/menu/next/base.d.ts.map +1 -0
- package/lib/menu/next/base.js +267 -0
- package/lib/menu/next/base.js.map +1 -0
- package/lib/menu/next/ctxmenu-service.d.ts +42 -0
- package/lib/menu/next/ctxmenu-service.d.ts.map +1 -0
- package/lib/menu/next/ctxmenu-service.js +151 -0
- package/lib/menu/next/ctxmenu-service.js.map +1 -0
- package/lib/menu/next/index.d.ts +11 -0
- package/lib/menu/next/index.d.ts.map +1 -0
- package/lib/menu/next/index.js +14 -0
- package/lib/menu/next/index.js.map +1 -0
- package/lib/menu/next/menu-id.d.ts +59 -0
- package/lib/menu/next/menu-id.d.ts.map +1 -0
- package/lib/menu/next/menu-id.js +73 -0
- package/lib/menu/next/menu-id.js.map +1 -0
- package/lib/menu/next/menu-service.d.ts +9 -0
- package/lib/menu/next/menu-service.d.ts.map +1 -0
- package/lib/menu/next/menu-service.js +205 -0
- package/lib/menu/next/menu-service.js.map +1 -0
- package/lib/menu/next/menu-util.d.ts +18 -0
- package/lib/menu/next/menu-util.d.ts.map +1 -0
- package/lib/menu/next/menu-util.js +64 -0
- package/lib/menu/next/menu-util.js.map +1 -0
- package/lib/menu/next/menu.contrib.interface.d.ts +22 -0
- package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -0
- package/lib/menu/next/menu.contrib.interface.js +9 -0
- package/lib/menu/next/menu.contrib.interface.js.map +1 -0
- package/lib/menu/next/menu.interface.d.ts +100 -0
- package/lib/menu/next/menu.interface.d.ts.map +1 -0
- package/lib/menu/next/menu.interface.js +192 -0
- package/lib/menu/next/menu.interface.js.map +1 -0
- package/lib/menu/next/menubar-service.d.ts +53 -0
- package/lib/menu/next/menubar-service.d.ts.map +1 -0
- package/lib/menu/next/menubar-service.js +178 -0
- package/lib/menu/next/menubar-service.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/base.d.ts +19 -0
- package/lib/menu/next/renderer/ctxmenu/base.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/base.js +7 -0
- package/lib/menu/next/renderer/ctxmenu/base.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/browser.d.ts +19 -0
- package/lib/menu/next/renderer/ctxmenu/browser.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/browser.js +40 -0
- package/lib/menu/next/renderer/ctxmenu/browser.js.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/electron.d.ts +34 -0
- package/lib/menu/next/renderer/ctxmenu/electron.d.ts.map +1 -0
- package/lib/menu/next/renderer/ctxmenu/electron.js +198 -0
- package/lib/menu/next/renderer/ctxmenu/electron.js.map +1 -0
- package/lib/menu/next/toolbar-action.service.d.ts +50 -0
- package/lib/menu/next/toolbar-action.service.d.ts.map +1 -0
- package/lib/menu/next/toolbar-action.service.js +93 -0
- package/lib/menu/next/toolbar-action.service.js.map +1 -0
- package/lib/monaco/index.d.ts +99 -0
- package/lib/monaco/index.d.ts.map +1 -0
- package/lib/monaco/index.js +32 -0
- package/lib/monaco/index.js.map +1 -0
- package/lib/opener/command-opener.d.ts +12 -0
- package/lib/opener/command-opener.d.ts.map +1 -0
- package/lib/opener/command-opener.js +49 -0
- package/lib/opener/command-opener.js.map +1 -0
- package/lib/opener/default-opener.d.ts +8 -0
- package/lib/opener/default-opener.d.ts.map +1 -0
- package/lib/opener/default-opener.js +32 -0
- package/lib/opener/default-opener.js.map +1 -0
- package/lib/opener/http-opener.d.ts +9 -0
- package/lib/opener/http-opener.d.ts.map +1 -0
- package/lib/opener/http-opener.js +33 -0
- package/lib/opener/http-opener.js.map +1 -0
- package/lib/opener/index.d.ts +16 -0
- package/lib/opener/index.d.ts.map +1 -0
- package/lib/opener/index.js +6 -0
- package/lib/opener/index.js.map +1 -0
- package/lib/opener/opener.contribution.d.ts +14 -0
- package/lib/opener/opener.contribution.d.ts.map +1 -0
- package/lib/opener/opener.contribution.js +63 -0
- package/lib/opener/opener.contribution.js.map +1 -0
- package/lib/opener/opener.service.d.ts +14 -0
- package/lib/opener/opener.service.d.ts.map +1 -0
- package/lib/opener/opener.service.js +67 -0
- package/lib/opener/opener.service.js.map +1 -0
- package/lib/preferences/early-preferences.d.ts +24 -0
- package/lib/preferences/early-preferences.d.ts.map +1 -0
- package/lib/preferences/early-preferences.js +96 -0
- package/lib/preferences/early-preferences.js.map +1 -0
- package/lib/preferences/index.d.ts +9 -0
- package/lib/preferences/index.d.ts.map +1 -0
- package/lib/preferences/index.js +12 -0
- package/lib/preferences/index.js.map +1 -0
- package/lib/preferences/preference-configurations.d.ts +22 -0
- package/lib/preferences/preference-configurations.d.ts.map +1 -0
- package/lib/preferences/preference-configurations.js +68 -0
- package/lib/preferences/preference-configurations.js.map +1 -0
- package/lib/preferences/preference-contribution.d.ts +82 -0
- package/lib/preferences/preference-contribution.d.ts.map +1 -0
- package/lib/preferences/preference-contribution.js +325 -0
- package/lib/preferences/preference-contribution.js.map +1 -0
- package/lib/preferences/preference-provider.d.ts +117 -0
- package/lib/preferences/preference-provider.d.ts.map +1 -0
- package/lib/preferences/preference-provider.js +275 -0
- package/lib/preferences/preference-provider.js.map +1 -0
- package/lib/preferences/preference-proxy.d.ts +45 -0
- package/lib/preferences/preference-proxy.d.ts.map +1 -0
- package/lib/preferences/preference-proxy.js +195 -0
- package/lib/preferences/preference-proxy.js.map +1 -0
- package/lib/preferences/preference-scope.d.ts +3 -0
- package/lib/preferences/preference-scope.d.ts.map +1 -0
- package/lib/preferences/preference-scope.js +6 -0
- package/lib/preferences/preference-scope.js.map +1 -0
- package/lib/preferences/preference-service.d.ts +194 -0
- package/lib/preferences/preference-service.d.ts.map +1 -0
- package/lib/preferences/preference-service.js +425 -0
- package/lib/preferences/preference-service.js.map +1 -0
- package/lib/preferences/settings.d.ts +41 -0
- package/lib/preferences/settings.d.ts.map +1 -0
- package/lib/preferences/settings.js +5 -0
- package/lib/preferences/settings.js.map +1 -0
- package/lib/progress/index.d.ts +36 -0
- package/lib/progress/index.d.ts.map +1 -0
- package/lib/progress/index.js +10 -0
- package/lib/progress/index.js.map +1 -0
- package/lib/progress/progress-bar.d.ts +7 -0
- package/lib/progress/progress-bar.d.ts.map +1 -0
- package/lib/progress/progress-bar.js +14 -0
- package/lib/progress/progress-bar.js.map +1 -0
- package/lib/progress/progress-indicator.d.ts +12 -0
- package/lib/progress/progress-indicator.d.ts.map +1 -0
- package/lib/progress/progress-indicator.js +106 -0
- package/lib/progress/progress-indicator.js.map +1 -0
- package/lib/progress/progress.module.less +40 -0
- package/lib/progress/progress.service.d.ts +19 -0
- package/lib/progress/progress.service.d.ts.map +1 -0
- package/lib/progress/progress.service.js +343 -0
- package/lib/progress/progress.service.js.map +1 -0
- package/lib/quick-open/index.d.ts +467 -0
- package/lib/quick-open/index.d.ts.map +1 -0
- package/lib/quick-open/index.js +145 -0
- package/lib/quick-open/index.js.map +1 -0
- package/lib/quick-open/recent-files.d.ts +11 -0
- package/lib/quick-open/recent-files.d.ts.map +1 -0
- package/lib/quick-open/recent-files.js +73 -0
- package/lib/quick-open/recent-files.js.map +1 -0
- package/lib/raw-context-key.d.ts +57 -0
- package/lib/raw-context-key.d.ts.map +1 -0
- package/lib/raw-context-key.js +96 -0
- package/lib/raw-context-key.js.map +1 -0
- package/lib/react-hooks/event.d.ts +11 -0
- package/lib/react-hooks/event.d.ts.map +1 -0
- package/lib/react-hooks/event.js +64 -0
- package/lib/react-hooks/event.js.map +1 -0
- package/lib/react-hooks/hot-key.d.ts +5 -0
- package/lib/react-hooks/hot-key.d.ts.map +1 -0
- package/lib/react-hooks/hot-key.js +48 -0
- package/lib/react-hooks/hot-key.js.map +1 -0
- package/lib/react-hooks/index.d.ts +4 -0
- package/lib/react-hooks/index.d.ts.map +1 -0
- package/lib/react-hooks/index.js +7 -0
- package/lib/react-hooks/index.js.map +1 -0
- package/lib/react-hooks/injectable-hooks.d.ts +3 -0
- package/lib/react-hooks/injectable-hooks.d.ts.map +1 -0
- package/lib/react-hooks/injectable-hooks.js +33 -0
- package/lib/react-hooks/injectable-hooks.js.map +1 -0
- package/lib/react-hooks/portal-hooks.d.ts +2 -0
- package/lib/react-hooks/portal-hooks.d.ts.map +1 -0
- package/lib/react-hooks/portal-hooks.js +36 -0
- package/lib/react-hooks/portal-hooks.js.map +1 -0
- package/lib/react-providers/config-provider.d.ts +182 -0
- package/lib/react-providers/config-provider.d.ts.map +1 -0
- package/lib/react-providers/config-provider.js +24 -0
- package/lib/react-providers/config-provider.js.map +1 -0
- package/lib/react-providers/index.d.ts +3 -0
- package/lib/react-providers/index.d.ts.map +1 -0
- package/lib/react-providers/index.js +6 -0
- package/lib/react-providers/index.js.map +1 -0
- package/lib/react-providers/slot.d.ts +73 -0
- package/lib/react-providers/slot.d.ts.map +1 -0
- package/lib/react-providers/slot.js +184 -0
- package/lib/react-providers/slot.js.map +1 -0
- package/lib/services/clipboard.service.d.ts +17 -0
- package/lib/services/clipboard.service.d.ts.map +1 -0
- package/lib/services/clipboard.service.js +57 -0
- package/lib/services/clipboard.service.js.map +1 -0
- package/lib/services/credentials-service.d.ts +36 -0
- package/lib/services/credentials-service.d.ts.map +1 -0
- package/lib/services/credentials-service.js +62 -0
- package/lib/services/credentials-service.js.map +1 -0
- package/lib/services/cryptr-service.d.ts +11 -0
- package/lib/services/cryptr-service.d.ts.map +1 -0
- package/lib/services/cryptr-service.js +24 -0
- package/lib/services/cryptr-service.js.map +1 -0
- package/lib/services/external-uri.service.d.ts +28 -0
- package/lib/services/external-uri.service.d.ts.map +1 -0
- package/lib/services/external-uri.service.js +58 -0
- package/lib/services/external-uri.service.js.map +1 -0
- package/lib/services/index.d.ts +8 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +11 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/label-service.d.ts +74 -0
- package/lib/services/label-service.d.ts.map +1 -0
- package/lib/services/label-service.js +306 -0
- package/lib/services/label-service.js.map +1 -0
- package/lib/services/status-bar-service.d.ts +86 -0
- package/lib/services/status-bar-service.d.ts.map +1 -0
- package/lib/services/status-bar-service.js +25 -0
- package/lib/services/status-bar-service.js.map +1 -0
- package/lib/services/storage-service.d.ts +72 -0
- package/lib/services/storage-service.d.ts.map +1 -0
- package/lib/services/storage-service.js +128 -0
- package/lib/services/storage-service.js.map +1 -0
- package/lib/style/codicons/README.md +32 -0
- package/lib/style/codicons/codicon-animations.css +15 -0
- package/lib/style/entry.less +25 -0
- package/lib/style/icon/fileicons/file-default.svg +1 -0
- package/lib/style/icon/fileicons/folder-default.svg +1 -0
- package/lib/style/icon/fileicons.less +9 -0
- package/lib/style/icon/icon.d.ts +19 -0
- package/lib/style/icon/icon.d.ts.map +1 -0
- package/lib/style/icon/icon.js +64 -0
- package/lib/style/icon/icon.js.map +1 -0
- package/lib/style/icon/ide-iconfont.d.ts +5 -0
- package/lib/style/icon/ide-iconfont.d.ts.map +1 -0
- package/lib/style/icon/ide-iconfont.js +10 -0
- package/lib/style/icon/ide-iconfont.js.map +1 -0
- package/lib/style/icon/index.less +54 -0
- package/lib/style/icon/seti.woff +0 -0
- package/lib/style/icon/symbol-icons/boolean-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/boolean-light.svg +3 -0
- package/lib/style/icon/symbol-icons/class-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/class-light.svg +3 -0
- package/lib/style/icon/symbol-icons/constant-dark.svg +4 -0
- package/lib/style/icon/symbol-icons/constant-light.svg +4 -0
- package/lib/style/icon/symbol-icons/enumerator-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-item-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-item-light.svg +3 -0
- package/lib/style/icon/symbol-icons/enumerator-light.svg +3 -0
- package/lib/style/icon/symbol-icons/event-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/event-light.svg +3 -0
- package/lib/style/icon/symbol-icons/field-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/field-light.svg +3 -0
- package/lib/style/icon/symbol-icons/file-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/file-light.svg +3 -0
- package/lib/style/icon/symbol-icons/indexer-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/indexer-light.svg +3 -0
- package/lib/style/icon/symbol-icons/interface-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/interface-light.svg +3 -0
- package/lib/style/icon/symbol-icons/keyword-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/keyword-light.svg +3 -0
- package/lib/style/icon/symbol-icons/method-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/method-light.svg +3 -0
- package/lib/style/icon/symbol-icons/namespace-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/namespace-light.svg +3 -0
- package/lib/style/icon/symbol-icons/numeric-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/numeric-light.svg +3 -0
- package/lib/style/icon/symbol-icons/operator-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/operator-light.svg +3 -0
- package/lib/style/icon/symbol-icons/property-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/property-light.svg +3 -0
- package/lib/style/icon/symbol-icons/snippet-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/snippet-light.svg +3 -0
- package/lib/style/icon/symbol-icons/string-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/string-light.svg +3 -0
- package/lib/style/icon/symbol-icons/structure-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/structure-light.svg +3 -0
- package/lib/style/icon/symbol-icons/symbol-icons.css +284 -0
- package/lib/style/icon/symbol-icons/template-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/template-light.svg +3 -0
- package/lib/style/icon/symbol-icons/variable-dark.svg +3 -0
- package/lib/style/icon/symbol-icons/variable-light.svg +3 -0
- package/lib/style/icon.less +8 -0
- package/lib/style/index.less +14 -0
- package/lib/style/monaco-override.less +86 -0
- package/lib/style/normalize.less +89 -0
- package/lib/style/octicons/octicons-cdn.css +269 -0
- package/lib/style/octicons/octicons.css +263 -0
- package/lib/style/octicons/octicons.html +1882 -0
- package/lib/style/octicons/octicons.svg +582 -0
- package/lib/style/octicons/octicons.ttf +0 -0
- package/lib/style/override.less +80 -0
- package/lib/style/toolbar.less +193 -0
- package/lib/style/utilities.less +18 -0
- package/lib/style/variable.less +16 -0
- package/lib/toolbar/components/auto-complete.d.ts +1 -0
- package/lib/toolbar/components/auto-complete.d.ts.map +1 -0
- package/lib/toolbar/components/auto-complete.js +2 -0
- package/lib/toolbar/components/auto-complete.js.map +1 -0
- package/lib/toolbar/components/button.d.ts +11 -0
- package/lib/toolbar/components/button.d.ts.map +1 -0
- package/lib/toolbar/components/button.js +324 -0
- package/lib/toolbar/components/button.js.map +1 -0
- package/lib/toolbar/components/index.d.ts +3 -0
- package/lib/toolbar/components/index.d.ts.map +1 -0
- package/lib/toolbar/components/index.js +6 -0
- package/lib/toolbar/components/index.js.map +1 -0
- package/lib/toolbar/components/select.d.ts +5 -0
- package/lib/toolbar/components/select.d.ts.map +1 -0
- package/lib/toolbar/components/select.js +161 -0
- package/lib/toolbar/components/select.js.map +1 -0
- package/lib/toolbar/index.d.ts +4 -0
- package/lib/toolbar/index.d.ts.map +1 -0
- package/lib/toolbar/index.js +9 -0
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/toolbar.d.ts +17 -0
- package/lib/toolbar/toolbar.d.ts.map +1 -0
- package/lib/toolbar/toolbar.js +508 -0
- package/lib/toolbar/toolbar.js.map +1 -0
- package/lib/toolbar/toolbar.popover.registry.d.ts +11 -0
- package/lib/toolbar/toolbar.popover.registry.d.ts.map +1 -0
- package/lib/toolbar/toolbar.popover.registry.js +36 -0
- package/lib/toolbar/toolbar.popover.registry.js.map +1 -0
- package/lib/toolbar/toolbar.registry.d.ts +46 -0
- package/lib/toolbar/toolbar.registry.d.ts.map +1 -0
- package/lib/toolbar/toolbar.registry.js +283 -0
- package/lib/toolbar/toolbar.registry.js.map +1 -0
- package/lib/toolbar/types.d.ts +286 -0
- package/lib/toolbar/types.d.ts.map +1 -0
- package/lib/toolbar/types.js +18 -0
- package/lib/toolbar/types.js.map +1 -0
- 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/create-overlay.d.ts +8 -0
- package/lib/utils/create-overlay.d.ts.map +1 -0
- package/lib/utils/create-overlay.js +50 -0
- package/lib/utils/create-overlay.js.map +1 -0
- package/lib/utils/electron.d.ts +23 -0
- package/lib/utils/electron.d.ts.map +1 -0
- package/lib/utils/electron.js +56 -0
- package/lib/utils/electron.js.map +1 -0
- package/lib/utils/env.d.ts +4 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/env.js +31 -0
- package/lib/utils/env.js.map +1 -0
- package/lib/utils/icon.d.ts +7 -0
- package/lib/utils/icon.d.ts.map +1 -0
- package/lib/utils/icon.js +18 -0
- package/lib/utils/icon.js.map +1 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +9 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/parse.d.ts +25 -0
- package/lib/utils/parse.d.ts.map +1 -0
- package/lib/utils/parse.js +72 -0
- package/lib/utils/parse.js.map +1 -0
- package/lib/utils/react-hooks.d.ts +12 -0
- package/lib/utils/react-hooks.d.ts.map +1 -0
- package/lib/utils/react-hooks.js +84 -0
- package/lib/utils/react-hooks.js.map +1 -0
- package/lib/variable/index.d.ts +2 -0
- package/lib/variable/index.d.ts.map +1 -0
- package/lib/variable/index.js +5 -0
- package/lib/variable/index.js.map +1 -0
- package/lib/variable/variable.d.ts +49 -0
- package/lib/variable/variable.d.ts.map +1 -0
- package/lib/variable/variable.js +56 -0
- package/lib/variable/variable.js.map +1 -0
- package/lib/window/index.d.ts +25 -0
- package/lib/window/index.d.ts.map +1 -0
- package/lib/window/index.js +5 -0
- package/lib/window/index.js.map +1 -0
- package/lib/window/window.service.d.ts +14 -0
- package/lib/window/window.service.d.ts.map +1 -0
- package/lib/window/window.service.js +103 -0
- package/lib/window/window.service.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientApp = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/**
|
|
6
|
+
* editor.main 包含了所有 monaco 自带的编辑器相关核心功能以及 contributes
|
|
7
|
+
* 并且 editor.main 也包含对 editor.all 的导入
|
|
8
|
+
*/
|
|
9
|
+
require("@opensumi/monaco-editor-core/esm/vs/editor/editor.main");
|
|
10
|
+
const di_1 = require("@opensumi/di");
|
|
11
|
+
const browser_module_1 = require("../browser-module");
|
|
12
|
+
const react_providers_1 = require("../react-providers");
|
|
13
|
+
const inner_providers_1 = require("./inner-providers");
|
|
14
|
+
const keybinding_1 = require("../keybinding");
|
|
15
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
16
|
+
const application_1 = require("../application");
|
|
17
|
+
const common_1 = require("../common");
|
|
18
|
+
const connection_1 = require("./connection");
|
|
19
|
+
const ide_connection_1 = require("@opensumi/ide-connection");
|
|
20
|
+
const preferences_1 = require("../preferences");
|
|
21
|
+
const core_preferences_1 = require("../core-preferences");
|
|
22
|
+
const core_preferences_2 = require("../core-preferences");
|
|
23
|
+
const app_view_1 = require("./app.view");
|
|
24
|
+
const electron_1 = require("@opensumi/ide-core-common/lib/electron");
|
|
25
|
+
const application_2 = require("@opensumi/ide-core-common/lib/const/application");
|
|
26
|
+
const utils_1 = require("../utils");
|
|
27
|
+
const next_1 = require("../menu/next");
|
|
28
|
+
const icon_1 = require("../style/icon/icon");
|
|
29
|
+
const resize_observer_polyfill_1 = (0, tslib_1.__importDefault)(require("resize-observer-polyfill"));
|
|
30
|
+
const layout_1 = require("../layout");
|
|
31
|
+
// 添加resize observer polyfill
|
|
32
|
+
if (typeof window.ResizeObserver === 'undefined') {
|
|
33
|
+
window.ResizeObserver = resize_observer_polyfill_1.default;
|
|
34
|
+
}
|
|
35
|
+
class ClientApp {
|
|
36
|
+
constructor(opts) {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
/**
|
|
39
|
+
* 应用是否完成初始化
|
|
40
|
+
*/
|
|
41
|
+
this.appInitialized = new ide_core_common_1.Deferred();
|
|
42
|
+
this.browserModules = [];
|
|
43
|
+
this._inComposition = false;
|
|
44
|
+
this._handleBeforeUpload = (event) => {
|
|
45
|
+
// 浏览器关闭事件前
|
|
46
|
+
if ((0, ide_core_common_1.isElectronRenderer)()) {
|
|
47
|
+
if (this.stateService.state === 'electron_confirmed_close') {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
// 在electron上,先直接prevent, 然后进入ask环节
|
|
51
|
+
event.returnValue = '';
|
|
52
|
+
event.preventDefault();
|
|
53
|
+
if (this.stateService.state !== 'electron_asking_close') {
|
|
54
|
+
this.stateService.state = 'electron_asking_close';
|
|
55
|
+
this.preventStopElectron().then((res) => {
|
|
56
|
+
if (res) {
|
|
57
|
+
this.stateService.state = 'ready';
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return this.stopContributionsElectron().then(() => {
|
|
61
|
+
this.stateService.state = 'electron_confirmed_close';
|
|
62
|
+
const electronLifeCycle = this.injector.get(electron_1.IElectronMainLifeCycleService);
|
|
63
|
+
// 在下一个 event loop 执行,否则可能导致第一次无法关闭。
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
electronLifeCycle.closeWindow(utils_1.electronEnv.currentWindowId);
|
|
66
|
+
}, 0);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
// 为了避免不必要的弹窗,如果页面并没有发生交互浏览器可能不会展示在 beforeunload 事件中引发的弹框,甚至可能即使发生交互了也直接不显示。
|
|
74
|
+
if (this.preventStop()) {
|
|
75
|
+
(event || window.event).returnValue = true;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
this._handleUnload = () => {
|
|
81
|
+
// 浏览器关闭事件
|
|
82
|
+
this.stateService.state = 'closing_window';
|
|
83
|
+
if (!(0, ide_core_common_1.isElectronRenderer)()) {
|
|
84
|
+
this.disposeSideEffect();
|
|
85
|
+
this.stopContributions();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
this._handleResize = () => {
|
|
89
|
+
// 浏览器resize事件
|
|
90
|
+
};
|
|
91
|
+
this._handleKeydown = (event) => {
|
|
92
|
+
if (event && event.target.name !== keybinding_1.NO_KEYBINDING_NAME && !this._inComposition) {
|
|
93
|
+
this.keybindingService.run(event);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
this._handleKeyup = (event) => {
|
|
97
|
+
this.keybindingService.resolveModifierKey(event);
|
|
98
|
+
};
|
|
99
|
+
this._handleCompositionstart = () => {
|
|
100
|
+
this._inComposition = true;
|
|
101
|
+
};
|
|
102
|
+
this._handleCompositionend = () => {
|
|
103
|
+
this._inComposition = false;
|
|
104
|
+
};
|
|
105
|
+
this._handleWheel = () => {
|
|
106
|
+
// 屏蔽在OSX系统浏览器中由于滚动导致的前进后退事件
|
|
107
|
+
};
|
|
108
|
+
const { modules, contributions, modulesInstances, connectionPath, connectionProtocols, iconStyleSheets, useCdnIcon, editorBackgroundImage, defaultPreferences, allowSetDocumentTitleFollowWorkspaceDir = true } = opts, restOpts = (0, tslib_1.__rest)(opts, ["modules", "contributions", "modulesInstances", "connectionPath", "connectionProtocols", "iconStyleSheets", "useCdnIcon", "editorBackgroundImage", "defaultPreferences", "allowSetDocumentTitleFollowWorkspaceDir"]) // rest part 为 AppConfig
|
|
109
|
+
;
|
|
110
|
+
this.initEarlyPreference(opts.workspaceDir || '');
|
|
111
|
+
(0, ide_core_common_1.setLanguageId)((0, preferences_1.getPreferenceLanguageId)(defaultPreferences));
|
|
112
|
+
this.injector = opts.injector || new di_1.Injector();
|
|
113
|
+
this.modules = modules;
|
|
114
|
+
this.modules.forEach((m) => this.resolveModuleDeps(m));
|
|
115
|
+
// moduleInstance必须第一个是layout模块
|
|
116
|
+
this.browserModules = opts.modulesInstances || [];
|
|
117
|
+
this.config = Object.assign(Object.assign({ appName: application_2.DEFAULT_APPLICATION_NAME, uriScheme: application_2.DEFAULT_URI_SCHEME }, restOpts), {
|
|
118
|
+
// 一些转换和 typo 修复
|
|
119
|
+
workspaceDir: opts.workspaceDir || '', extensionDir: opts.extensionDir || ((0, ide_core_common_1.isElectronRenderer)() ? (_a = utils_1.electronEnv.metadata) === null || _a === void 0 ? void 0 : _a.extensionDir : ''), injector: this.injector, wsPath: opts.wsPath || 'ws://127.0.0.1:8000', layoutConfig: opts.layoutConfig, editorBackgroundImage: opts.editorBackgroundImage || editorBackgroundImage, allowSetDocumentTitleFollowWorkspaceDir });
|
|
120
|
+
if ((0, ide_core_common_1.isElectronEnv)() && ((_b = utils_1.electronEnv.metadata) === null || _b === void 0 ? void 0 : _b.extensionDevelopmentHost)) {
|
|
121
|
+
this.config.extensionDevelopmentHost = utils_1.electronEnv.metadata.extensionDevelopmentHost;
|
|
122
|
+
}
|
|
123
|
+
if (opts.extensionDevelopmentPath) {
|
|
124
|
+
this.config.extensionCandidate = (this.config.extensionCandidate || []).concat(Array.isArray(opts.extensionDevelopmentPath) ?
|
|
125
|
+
opts.extensionDevelopmentPath.map((e) => (0, ide_core_common_1.asExtensionCandidate)(e, true)) :
|
|
126
|
+
[(0, ide_core_common_1.asExtensionCandidate)(opts.extensionDevelopmentPath, true)]);
|
|
127
|
+
this.config.extensionDevelopmentHost = !!opts.extensionDevelopmentPath;
|
|
128
|
+
}
|
|
129
|
+
// 旧方案兼容, 把electron.metadata.extensionCandidate提前注入appConfig的对应配置中
|
|
130
|
+
if ((0, ide_core_common_1.isElectronEnv)() && ((_c = utils_1.electronEnv.metadata) === null || _c === void 0 ? void 0 : _c.extensionCandidate)) {
|
|
131
|
+
this.config.extensionCandidate = (this.config.extensionCandidate || []).concat(utils_1.electronEnv.metadata.extensionCandidate || []);
|
|
132
|
+
}
|
|
133
|
+
this.connectionPath = connectionPath || `${this.config.wsPath}/service`;
|
|
134
|
+
this.connectionProtocols = connectionProtocols;
|
|
135
|
+
this.initBaseProvider();
|
|
136
|
+
this.initFields();
|
|
137
|
+
this.appendIconStyleSheets(iconStyleSheets, useCdnIcon);
|
|
138
|
+
this.createBrowserModules(defaultPreferences);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* 将被依赖但未被加入modules的模块加入到待加载模块最后
|
|
142
|
+
*/
|
|
143
|
+
resolveModuleDeps(moduleConstructor) {
|
|
144
|
+
const dependencies = Reflect.getMetadata('dependencies', moduleConstructor);
|
|
145
|
+
if (dependencies) {
|
|
146
|
+
dependencies.forEach((dep) => {
|
|
147
|
+
if (this.modules.indexOf(dep) === -1) {
|
|
148
|
+
this.modules.push(dep);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
async start(container, type, connection) {
|
|
154
|
+
const reporterService = this.injector.get(ide_core_common_1.IReporterService);
|
|
155
|
+
const measureReporter = reporterService.time(ide_core_common_1.REPORT_NAME.MEASURE);
|
|
156
|
+
if (connection) {
|
|
157
|
+
await (0, connection_1.bindConnectionService)(this.injector, this.modules, connection);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
if (type === 'electron') {
|
|
161
|
+
const netConnection = await window.createRPCNetConnection();
|
|
162
|
+
await (0, connection_1.createNetClientConnection)(this.injector, this.modules, netConnection);
|
|
163
|
+
}
|
|
164
|
+
else if (type === 'web') {
|
|
165
|
+
await (0, connection_1.createClientConnection2)(this.injector, this.modules, this.connectionPath, () => {
|
|
166
|
+
this.onReconnectContributions();
|
|
167
|
+
}, this.connectionProtocols, this.config.clientId);
|
|
168
|
+
this.logger = this.getLogger();
|
|
169
|
+
// 回写需要用到打点的 Logger 的地方
|
|
170
|
+
this.injector.get(ide_connection_1.WSChannelHandler).replaceLogger(this.logger);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
measureReporter.timeEnd('ClientApp.createConnection');
|
|
174
|
+
this.logger = this.getLogger();
|
|
175
|
+
this.stateService.state = 'client_connected';
|
|
176
|
+
this.registerEventListeners();
|
|
177
|
+
// 在 connect 之后立即初始化数据,保证其它 module 能同步获取数据
|
|
178
|
+
await this.injector.get(ide_core_common_1.IApplicationService).initializeData();
|
|
179
|
+
// 在 contributions 执行完 onStart 上报一次耗时
|
|
180
|
+
await this.measure('Contributions.start', () => this.startContributions(container));
|
|
181
|
+
this.stateService.state = 'started_contributions';
|
|
182
|
+
this.stateService.state = 'ready';
|
|
183
|
+
measureReporter.timeEnd('Framework.ready');
|
|
184
|
+
}
|
|
185
|
+
getLogger() {
|
|
186
|
+
if (this.logger) {
|
|
187
|
+
return this.logger;
|
|
188
|
+
}
|
|
189
|
+
this.logger = this.injector.get(ide_core_common_1.ILoggerManagerClient).getLogger(ide_core_common_1.SupportLogNamespace.Browser);
|
|
190
|
+
return this.logger;
|
|
191
|
+
}
|
|
192
|
+
onReconnectContributions() {
|
|
193
|
+
const contributions = this.contributions;
|
|
194
|
+
for (const contribution of contributions) {
|
|
195
|
+
if (contribution.onReconnect) {
|
|
196
|
+
contribution.onReconnect(this);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* 给 injector 初始化默认的 Providers
|
|
202
|
+
*/
|
|
203
|
+
initBaseProvider() {
|
|
204
|
+
this.injector.addProviders({ token: browser_module_1.IClientApp, useValue: this });
|
|
205
|
+
this.injector.addProviders({ token: react_providers_1.AppConfig, useValue: this.config });
|
|
206
|
+
(0, inner_providers_1.injectInnerProviders)(this.injector);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* 从 injector 里获得实例
|
|
210
|
+
*/
|
|
211
|
+
initFields() {
|
|
212
|
+
this.contributionsProvider = this.injector.get(common_1.ClientAppContribution);
|
|
213
|
+
this.commandRegistry = this.injector.get(ide_core_common_1.CommandRegistry);
|
|
214
|
+
this.keybindingRegistry = this.injector.get(keybinding_1.KeybindingRegistry);
|
|
215
|
+
this.keybindingService = this.injector.get(keybinding_1.KeybindingService);
|
|
216
|
+
this.stateService = this.injector.get(application_1.ClientAppStateService);
|
|
217
|
+
this.nextMenuRegistry = this.injector.get(next_1.IMenuRegistry);
|
|
218
|
+
}
|
|
219
|
+
createBrowserModules(defaultPreferences) {
|
|
220
|
+
const injector = this.injector;
|
|
221
|
+
for (const Constructor of this.modules) {
|
|
222
|
+
const instance = injector.get(Constructor);
|
|
223
|
+
this.browserModules.push(instance);
|
|
224
|
+
if (instance.providers) {
|
|
225
|
+
this.injector.addProviders(...instance.providers);
|
|
226
|
+
}
|
|
227
|
+
if (instance.preferences) {
|
|
228
|
+
instance.preferences(this.injector);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
(0, core_preferences_1.injectCorePreferences)(this.injector);
|
|
232
|
+
// 注册PreferenceService
|
|
233
|
+
this.injectPreferenceService(this.injector, defaultPreferences);
|
|
234
|
+
// 注册存储服务
|
|
235
|
+
this.injectStorageProvider(this.injector);
|
|
236
|
+
for (const instance of this.browserModules) {
|
|
237
|
+
if (instance.contributionProvider) {
|
|
238
|
+
if (Array.isArray(instance.contributionProvider)) {
|
|
239
|
+
for (const contributionProvider of instance.contributionProvider) {
|
|
240
|
+
(0, ide_core_common_1.createContributionProvider)(this.injector, contributionProvider);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
(0, ide_core_common_1.createContributionProvider)(this.injector, instance.contributionProvider);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
get contributions() {
|
|
250
|
+
return this.contributionsProvider.getContributions();
|
|
251
|
+
}
|
|
252
|
+
async startContributions(container) {
|
|
253
|
+
// 先渲染 layout,模块视图的时序由layout控制
|
|
254
|
+
await this.measure('RenderApp.render', () => this.renderApp(container));
|
|
255
|
+
await this.measure('Contributions.initialize', () => this.initializeContributions());
|
|
256
|
+
// 初始化命令、快捷键与菜单
|
|
257
|
+
await this.initializeCoreRegistry();
|
|
258
|
+
// 核心模块初始化完毕
|
|
259
|
+
this.stateService.state = 'core_module_initialized';
|
|
260
|
+
await this.measure('Contributions.onStart', () => this.onStartContributions());
|
|
261
|
+
await this.runContributionsPhase(this.contributions, 'onDidStart');
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* 初始化核心模板
|
|
265
|
+
*/
|
|
266
|
+
async initializeCoreRegistry() {
|
|
267
|
+
this.commandRegistry.initialize();
|
|
268
|
+
await this.keybindingRegistry.initialize();
|
|
269
|
+
this.nextMenuRegistry.initialize();
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* run contribution#initialize
|
|
273
|
+
*/
|
|
274
|
+
async initializeContributions() {
|
|
275
|
+
this.logger.verbose('startContributions clientAppContributions', this.contributions);
|
|
276
|
+
await this.runContributionsPhase(this.contributions, 'initialize');
|
|
277
|
+
this.appInitialized.resolve();
|
|
278
|
+
this.logger.verbose('contributions.initialize done');
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* run contribution#onStart
|
|
282
|
+
*/
|
|
283
|
+
async onStartContributions() {
|
|
284
|
+
await this.runContributionsPhase(this.contributions, 'onStart');
|
|
285
|
+
}
|
|
286
|
+
async runContributionsPhase(contributions, phaseName) {
|
|
287
|
+
return await Promise.all(contributions.map((contribution) => {
|
|
288
|
+
return this.contributionPhaseRunner(contribution, phaseName);
|
|
289
|
+
}));
|
|
290
|
+
}
|
|
291
|
+
async contributionPhaseRunner(contribution, phaseName) {
|
|
292
|
+
const phase = contribution[phaseName];
|
|
293
|
+
if (typeof phase === 'function') {
|
|
294
|
+
try {
|
|
295
|
+
const uid = contribution.constructor.name + '.' + phaseName;
|
|
296
|
+
return await this.measure(uid, () => phase.call(contribution, this));
|
|
297
|
+
}
|
|
298
|
+
catch (error) {
|
|
299
|
+
this.logger.error(`Could not run contribution#${phaseName}`, error);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
async renderApp(container) {
|
|
304
|
+
await (0, app_view_1.renderClientApp)(this, container);
|
|
305
|
+
const eventBus = this.injector.get(ide_core_common_1.IEventBus);
|
|
306
|
+
eventBus.fire(new layout_1.RenderedEvent());
|
|
307
|
+
}
|
|
308
|
+
async measure(name, fn) {
|
|
309
|
+
const reporterService = this.injector.get(ide_core_common_1.IReporterService);
|
|
310
|
+
const measureReporter = reporterService.time(ide_core_common_1.REPORT_NAME.MEASURE);
|
|
311
|
+
const result = await fn();
|
|
312
|
+
measureReporter.timeEnd(name);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* `beforeunload` listener implementation
|
|
317
|
+
*/
|
|
318
|
+
preventStop() {
|
|
319
|
+
// 获取corePreferences配置判断是否弹出确认框
|
|
320
|
+
const corePreferences = this.injector.get(core_preferences_2.CorePreferences);
|
|
321
|
+
const confirmExit = corePreferences['application.confirmExit'];
|
|
322
|
+
if (confirmExit === 'never') {
|
|
323
|
+
return false;
|
|
324
|
+
}
|
|
325
|
+
for (const contribution of this.contributions) {
|
|
326
|
+
if (contribution.onWillStop) {
|
|
327
|
+
try {
|
|
328
|
+
const res = contribution.onWillStop(this);
|
|
329
|
+
if (!!res) {
|
|
330
|
+
return true;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
catch (e) {
|
|
334
|
+
(0, ide_core_common_1.getDebugLogger)().error(e);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return confirmExit === 'always';
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* electron 退出询问
|
|
342
|
+
*/
|
|
343
|
+
async preventStopElectron() {
|
|
344
|
+
// 获取corePreferences配置判断是否弹出确认框
|
|
345
|
+
const corePreferences = this.injector.get(core_preferences_2.CorePreferences);
|
|
346
|
+
const confirmExit = corePreferences['application.confirmExit'];
|
|
347
|
+
if (confirmExit === 'never') {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
for (const contribution of this.contributions) {
|
|
351
|
+
if (contribution.onWillStop) {
|
|
352
|
+
try {
|
|
353
|
+
const res = await contribution.onWillStop(this);
|
|
354
|
+
if (!!res) {
|
|
355
|
+
return true;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
catch (e) {
|
|
359
|
+
(0, ide_core_common_1.getDebugLogger)().error(e);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return false;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Stop the frontend application contributions. This is called when the window is unloaded.
|
|
367
|
+
*/
|
|
368
|
+
stopContributions() {
|
|
369
|
+
for (const contribution of this.contributions) {
|
|
370
|
+
if (contribution.onStop) {
|
|
371
|
+
try {
|
|
372
|
+
contribution.onStop(this);
|
|
373
|
+
}
|
|
374
|
+
catch (error) {
|
|
375
|
+
this.logger.error('Could not stop contribution', error);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
async stopContributionsElectron() {
|
|
381
|
+
const promises = [];
|
|
382
|
+
for (const contribution of this.contributions) {
|
|
383
|
+
if (contribution.onStop) {
|
|
384
|
+
promises.push((async () => {
|
|
385
|
+
try {
|
|
386
|
+
await contribution.onStop(this);
|
|
387
|
+
}
|
|
388
|
+
catch (error) {
|
|
389
|
+
this.logger.error('Could not stop contribution', error);
|
|
390
|
+
}
|
|
391
|
+
})());
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
await Promise.all(promises);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* 注册全局事件监听
|
|
398
|
+
*/
|
|
399
|
+
registerEventListeners() {
|
|
400
|
+
window.addEventListener('beforeunload', this._handleBeforeUpload);
|
|
401
|
+
window.addEventListener('unload', this._handleUnload);
|
|
402
|
+
window.addEventListener('resize', this._handleResize);
|
|
403
|
+
// 处理中文输入回退时可能出现多个光标问题
|
|
404
|
+
// https://github.com/eclipse-theia/theia/pull/6673
|
|
405
|
+
window.addEventListener('compositionstart', this._handleCompositionstart);
|
|
406
|
+
window.addEventListener('compositionend', this._handleCompositionend);
|
|
407
|
+
window.addEventListener('keydown', this._handleKeydown, true);
|
|
408
|
+
window.addEventListener('keyup', this._handleKeyup, true);
|
|
409
|
+
if (ide_core_common_1.isOSX) {
|
|
410
|
+
document.body.addEventListener('wheel', this._handleWheel, { passive: false });
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
injectPreferenceService(injector, defaultPreferences) {
|
|
414
|
+
const preferencesProviderFactory = () => {
|
|
415
|
+
return (scope) => {
|
|
416
|
+
const provider = injector.get(preferences_1.PreferenceProvider, { tag: scope });
|
|
417
|
+
provider.asScope(scope);
|
|
418
|
+
return provider;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
(0, preferences_1.injectPreferenceConfigurations)(injector);
|
|
422
|
+
(0, preferences_1.injectPreferenceSchemaProvider)(injector);
|
|
423
|
+
// 用于获取不同scope下的PreferenceProvider
|
|
424
|
+
injector.addProviders({
|
|
425
|
+
token: preferences_1.PreferenceProviderProvider,
|
|
426
|
+
useFactory: preferencesProviderFactory,
|
|
427
|
+
}, {
|
|
428
|
+
token: preferences_1.PreferenceService,
|
|
429
|
+
useClass: preferences_1.PreferenceServiceImpl,
|
|
430
|
+
});
|
|
431
|
+
// 设置默认配置
|
|
432
|
+
if (defaultPreferences) {
|
|
433
|
+
const providerFactory = injector.get(preferences_1.PreferenceProviderProvider);
|
|
434
|
+
const defaultPreference = providerFactory(preferences_1.PreferenceScope.Default);
|
|
435
|
+
for (const key of Object.keys(defaultPreferences)) {
|
|
436
|
+
defaultPreference.setPreference(key, defaultPreferences[key]);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
injectStorageProvider(injector) {
|
|
441
|
+
injector.addProviders({
|
|
442
|
+
token: ide_core_common_1.DefaultStorageProvider,
|
|
443
|
+
useClass: ide_core_common_1.DefaultStorageProvider,
|
|
444
|
+
});
|
|
445
|
+
injector.addProviders({
|
|
446
|
+
token: ide_core_common_1.StorageProvider,
|
|
447
|
+
useFactory: () => {
|
|
448
|
+
return (storageId) => {
|
|
449
|
+
return injector.get(ide_core_common_1.DefaultStorageProvider).get(storageId);
|
|
450
|
+
};
|
|
451
|
+
},
|
|
452
|
+
});
|
|
453
|
+
(0, ide_core_common_1.createContributionProvider)(injector, ide_core_common_1.StorageResolverContribution);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 通知上层需要刷新浏览器
|
|
457
|
+
* @param forcedReload 当取值为 true 时,将强制浏览器从服务器重新获取当前页面资源,而不是从浏览器的缓存中读取,如果取值为 false 或不传该参数时,浏览器则可能会从缓存中读取当前页面。
|
|
458
|
+
*/
|
|
459
|
+
fireOnReload(forcedReload = false) {
|
|
460
|
+
// 默认调用 location reload
|
|
461
|
+
// @ts-ignore
|
|
462
|
+
window.location.reload(forcedReload);
|
|
463
|
+
}
|
|
464
|
+
appendIconStyleSheets(iconInfos, useCdnIcon) {
|
|
465
|
+
const iconPaths = useCdnIcon ? [icon_1.DEFAULT_CDN_ICON, icon_1.IDE_OCTICONS_CN_CSS, icon_1.IDE_CODICONS_CN_CSS] : [];
|
|
466
|
+
if (iconInfos && iconInfos.length) {
|
|
467
|
+
iconInfos.forEach((info) => {
|
|
468
|
+
this.updateIconMap(info.prefix, info.iconMap);
|
|
469
|
+
iconPaths.push(info.cssPath);
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
for (const path of iconPaths) {
|
|
473
|
+
const link = document.createElement('link');
|
|
474
|
+
link.setAttribute('rel', 'stylesheet');
|
|
475
|
+
link.setAttribute('href', path);
|
|
476
|
+
document.getElementsByTagName('head')[0].appendChild(link);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
updateIconMap(prefix, iconMap) {
|
|
480
|
+
if (prefix === 'kaitian-icon kticon-') {
|
|
481
|
+
this.logger.error('icon prefix与内置图标冲突,请检查图标配置!');
|
|
482
|
+
}
|
|
483
|
+
(0, icon_1.updateIconMap)(prefix, iconMap);
|
|
484
|
+
}
|
|
485
|
+
initEarlyPreference(workspaceDir) {
|
|
486
|
+
(0, preferences_1.registerLocalStorageProvider)('general.theme', workspaceDir);
|
|
487
|
+
(0, preferences_1.registerLocalStorageProvider)('general.icon', workspaceDir);
|
|
488
|
+
(0, preferences_1.registerLocalStorageProvider)('general.language', workspaceDir);
|
|
489
|
+
}
|
|
490
|
+
async dispose() {
|
|
491
|
+
window.removeEventListener('beforeunload', this._handleBeforeUpload);
|
|
492
|
+
window.removeEventListener('unload', this._handleUnload);
|
|
493
|
+
window.removeEventListener('resize', this._handleResize);
|
|
494
|
+
window.removeEventListener('compositionstart', this._handleCompositionstart);
|
|
495
|
+
window.removeEventListener('compositionend', this._handleCompositionend);
|
|
496
|
+
window.removeEventListener('keydown', this._handleKeydown, true);
|
|
497
|
+
if (ide_core_common_1.isOSX) {
|
|
498
|
+
document.body.removeEventListener('wheel', this._handleWheel);
|
|
499
|
+
}
|
|
500
|
+
this.disposeSideEffect();
|
|
501
|
+
}
|
|
502
|
+
disposeSideEffect() {
|
|
503
|
+
for (const contribution of this.contributions) {
|
|
504
|
+
if (contribution.onDisposeSideEffects) {
|
|
505
|
+
try {
|
|
506
|
+
contribution.onDisposeSideEffects(this);
|
|
507
|
+
}
|
|
508
|
+
catch (error) {
|
|
509
|
+
this.logger.error('Could not dispose contribution', error);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
exports.ClientApp = ClientApp;
|
|
516
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/bootstrap/app.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,kEAAgE;AAChE,qCAAuD;AACvD,sDAA8D;AAC9D,wDAA+C;AAC/C,uDAAyD;AACzD,8CAA0F;AAC1F,+DAsBmC;AACnC,gDAAuD;AACvD,sCAAkD;AAClD,6CAAyG;AACzG,6DAAkF;AAClF,gDAEwB;AACxB,0DAA4D;AAC5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,kBAAkB,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC7E,MAAM,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACzE,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACjE,IAAI,uBAAK,EAAE;YACT,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/D;QAED,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC3B,CAAC;IAEO,iBAAiB;QACvB,KAAK,MAAM,YAAY,IAAI,IAAI,CAAC,aAAa,EAAE;YAC7C,IAAI,YAAY,CAAC,oBAAoB,EAAE;gBACrC,IAAI;oBACF,YAAY,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;iBACzC;gBAAC,OAAO,KAAK,EAAE;oBACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;iBAC5D;aACF;SACF;IACH,CAAC;CAuEF;AA3kBD,8BA2kBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IClientApp } from '../browser-module';
|
|
3
|
+
export interface AppProps {
|
|
4
|
+
app: IClientApp;
|
|
5
|
+
main: React.ComponentType;
|
|
6
|
+
overlays?: React.ComponentType[];
|
|
7
|
+
}
|
|
8
|
+
export declare function App(props: AppProps): JSX.Element;
|
|
9
|
+
export declare type IAppRenderer = (app: React.ReactElement) => Promise<void>;
|
|
10
|
+
export declare function renderClientApp(app: IClientApp, container: HTMLElement | IAppRenderer): Promise<void>;
|
|
11
|
+
//# sourceMappingURL=app.view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.view.d.ts","sourceRoot":"","sources":["../../src/bootstrap/app.view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAO/C,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC;CAClC;AAED,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,eA+BlC;AAED,oBAAY,YAAY,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAetE,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,iBAiBrF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderClientApp = exports.App = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const react_dom_1 = (0, tslib_1.__importDefault)(require("react-dom"));
|
|
7
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
8
|
+
const ide_components_1 = require("@opensumi/ide-components");
|
|
9
|
+
const layout_1 = require("../layout");
|
|
10
|
+
const icon_1 = require("../style/icon/icon");
|
|
11
|
+
const default_layout_1 = require("../components/layout/default-layout");
|
|
12
|
+
const react_providers_1 = require("../react-providers");
|
|
13
|
+
const ide_core_common_2 = require("@opensumi/ide-core-common");
|
|
14
|
+
const services_1 = require("../services");
|
|
15
|
+
function App(props) {
|
|
16
|
+
const injector = props.app.injector;
|
|
17
|
+
const eventBus = injector.get(ide_core_common_1.IEventBus);
|
|
18
|
+
const labelService = injector.get(services_1.LabelService);
|
|
19
|
+
const getResourceIcon = react_1.default.useCallback((uri, options) => {
|
|
20
|
+
return labelService.getIcon(ide_core_common_1.URI.parse(uri), options);
|
|
21
|
+
}, []);
|
|
22
|
+
react_1.default.useEffect(() => {
|
|
23
|
+
let lastFrame;
|
|
24
|
+
const handle = () => {
|
|
25
|
+
if (lastFrame) {
|
|
26
|
+
window.cancelAnimationFrame(lastFrame);
|
|
27
|
+
}
|
|
28
|
+
lastFrame = window.requestAnimationFrame(() => {
|
|
29
|
+
lastFrame = null;
|
|
30
|
+
react_providers_1.allSlot.forEach((item) => {
|
|
31
|
+
eventBus.fire(new layout_1.ResizeEvent({ slotLocation: item.slot }));
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
window.addEventListener('resize', handle);
|
|
36
|
+
return () => { window.removeEventListener('resize', handle); };
|
|
37
|
+
}, []);
|
|
38
|
+
return (react_1.default.createElement(ide_components_1.ComponentContextProvider, { value: { getIcon: icon_1.getIcon, localize: ide_core_common_2.localize, getResourceIcon } },
|
|
39
|
+
react_1.default.createElement(react_providers_1.ConfigProvider, { value: props.app.config },
|
|
40
|
+
react_1.default.createElement(props.main, null),
|
|
41
|
+
props.overlays && props.overlays.map((Component, index) => react_1.default.createElement(Component, { key: index })))));
|
|
42
|
+
}
|
|
43
|
+
exports.App = App;
|
|
44
|
+
const defaultAppRender = (dom, onDidRendered) => {
|
|
45
|
+
return (app) => {
|
|
46
|
+
return new Promise((resolve) => {
|
|
47
|
+
react_dom_1.default.render(app, dom, () => {
|
|
48
|
+
if (onDidRendered && typeof onDidRendered === 'function') {
|
|
49
|
+
onDidRendered();
|
|
50
|
+
}
|
|
51
|
+
resolve();
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
function renderClientApp(app, container) {
|
|
57
|
+
const Layout = app.config.layoutComponent || default_layout_1.DefaultLayout;
|
|
58
|
+
const overlayComponents = app.browserModules.filter((module) => module.isOverlay).map((module) => {
|
|
59
|
+
if (!module.component) {
|
|
60
|
+
(0, ide_core_common_1.getDebugLogger)().warn('检测到空的overlay模块', module);
|
|
61
|
+
return () => react_1.default.createElement(react_1.default.Fragment, null);
|
|
62
|
+
}
|
|
63
|
+
return module.component;
|
|
64
|
+
});
|
|
65
|
+
const IdeApp = react_1.default.createElement(App, { app: app, main: Layout, overlays: overlayComponents });
|
|
66
|
+
const render = typeof container === 'function'
|
|
67
|
+
? container
|
|
68
|
+
: defaultAppRender(container, app.config.didRendered);
|
|
69
|
+
return render(IdeApp);
|
|
70
|
+
}
|
|
71
|
+
exports.renderClientApp = renderClientApp;
|
|
72
|
+
//# sourceMappingURL=app.view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.view.js","sourceRoot":"","sources":["../../src/bootstrap/app.view.tsx"],"names":[],"mappings":";;;;AAAA,+DAA0B;AAC1B,uEAAiC;AACjC,+DAA2E;AAC3E,6DAA0F;AAE1F,sCAAwC;AAExC,6CAA6C;AAC7C,wEAAoE;AACpE,wDAA6D;AAC7D,+DAAqD;AACrD,0CAA2C;AAQ3C,SAAgB,GAAG,CAAC,KAAe;IACjC,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC;IACpC,MAAM,QAAQ,GAAc,QAAQ,CAAC,GAAG,CAAC,2BAAS,CAAC,CAAC;IACpD,MAAM,YAAY,GAAiB,QAAQ,CAAC,GAAG,CAAC,uBAAY,CAAC,CAAC;IAC9D,MAAM,eAAe,GAAG,eAAK,CAAC,WAAW,CAAC,CAAC,GAAW,EAAE,OAA6B,EAAE,EAAE;QACvF,OAAO,YAAY,CAAC,OAAO,CAAC,qBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,SAAwB,CAAC;QAC7B,MAAM,MAAM,GAAG,GAAG,EAAE;YAClB,IAAI,SAAS,EAAE;gBACb,MAAM,CAAC,oBAAoB,CAAC,SAAS,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,OAAO,aAAa,KAAK,UAAU,EAAE;oBACxD,aAAa,EAAE,CAAC;iBACjB;gBACD,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,SAAgB,eAAe,CAAC,GAAe,EAAE,SAAqC;IACpF,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,eAAe,IAAI,8BAAa,CAAC;IAC3D,MAAM,iBAAiB,GAAG,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC/F,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;YACrB,IAAA,gCAAc,GAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;YAChD,OAAO,GAAG,EAAE,CAAC,6DAAK,CAAC;SACpB;QACD,OAAO,MAAM,CAAC,SAAS,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,8BAAC,GAAG,IAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAI,CAAC;IAE5E,MAAM,MAAM,GAAG,OAAO,SAAS,KAAK,UAAU;QAC5C,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,gBAAgB,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAExD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAjBD,0CAiBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RPCMessageConnection } from '@opensumi/ide-connection';
|
|
2
|
+
import { Injector } from '@opensumi/di';
|
|
3
|
+
import { ModuleConstructor } from './app';
|
|
4
|
+
export declare function createClientConnection2(injector: Injector, modules: ModuleConstructor[], wsPath: string, onReconnect: () => void, protocols?: string[], clientId?: string): Promise<void>;
|
|
5
|
+
export declare function createNetClientConnection(injector: Injector, modules: ModuleConstructor[], connection: any): Promise<void>;
|
|
6
|
+
export declare function bindConnectionService(injector: Injector, modules: ModuleConstructor[], connection: RPCMessageConnection): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=connection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/bootstrap/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,oBAAoB,EACpB,MAAM,0BAA0B,CAAC;AAEnC,OAAO,EAAE,QAAQ,EAAY,MAAM,cAAc,CAAC;AAIlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,iBAAiB,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,IAAI,EACvB,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,QAAQ,CAAC,EAAE,MAAM,iBA+BlB;AAED,wBAAsB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,GAAG,iBAEhH;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,oBAAoB,iBA+C7H"}
|