@opensumi/ide-core-browser 2.21.4-rc-1668395886.0 → 2.21.4
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/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/package.json +6 -7
- 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.ts +0 -745
- 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 -977
- 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 -502
- 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 -26
- 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 -296
- 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 -16
- package/src/components/progressbar/styles.module.less +0 -31
- package/src/components/recycle-tree/index.ts +0 -1
- package/src/components/recycle-tree/recycle-tree.view.tsx +0 -368
- package/src/components/resize/resize.module.less +0 -78
- package/src/components/resize/resize.tsx +0 -663
- package/src/components/scroll/index.tsx +0 -386
- package/src/components/scroll/scroll.module.less +0 -108
- package/src/components/scrollbar/index.ts +0 -1
- package/src/components/scrollbar/scrollbar.less +0 -36
- package/src/components/scrollbar/scrollbar.view.ts +0 -8
- package/src/components/select/index.tsx +0 -12
- package/src/components/select/styles.less +0 -6
- package/src/components/tree/index.ts +0 -3
- package/src/components/tree/tree-node.view.tsx +0 -546
- package/src/components/tree/tree.module.less +0 -296
- package/src/components/tree/tree.view.tsx +0 -486
- 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/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/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 -62
- 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 -78
- 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 -201
- package/src/menu/next/toolbar-action.service.ts +0 -132
- package/src/monaco/index.ts +0 -128
- 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 -401
- package/src/preferences/preference-provider.ts +0 -414
- package/src/preferences/preference-proxy.ts +0 -292
- package/src/preferences/preference-scope.ts +0 -3
- package/src/preferences/preference-service.ts +0 -571
- package/src/preferences/settings.ts +0 -53
- package/src/preferences/types.ts +0 -111
- package/src/progress/index.ts +0 -58
- package/src/progress/progress-bar.tsx +0 -22
- 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-providers/config-provider.tsx +0 -259
- 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 -97
- 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 -192
- 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 -543
- package/src/style/icon/ide-iconfont.ts +0 -13
- package/src/style/icon/index.less +0 -54
- 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/tree/index.ts +0 -3
- package/src/tree/tree-expansion.ts +0 -25
- package/src/tree/tree-selection.ts +0 -89
- package/src/tree/tree.ts +0 -294
- 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 -27
- package/src/utils/parse.ts +0 -72
- 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
|
@@ -5,5 +5,4 @@ export declare const TestingHasAnyResults: RawContextKey<false>;
|
|
|
5
5
|
export declare const TestingIsRunning: RawContextKey<false>;
|
|
6
6
|
export declare const TestingIsInPeek: RawContextKey<true>;
|
|
7
7
|
export declare const TestingIsPeekVisible: RawContextKey<false>;
|
|
8
|
-
export declare const TestingCanRefreshTests: RawContextKey<false>;
|
|
9
8
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/contextkey/testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,2BAA2B,kBAAwD,CAAC;AACjG,eAAO,MAAM,qCAAqC,sBAAmE,CAAC;AACtH,eAAO,MAAM,oBAAoB,sBAAoD,CAAC;AACtF,eAAO,MAAM,gBAAgB,sBAAgD,CAAC;AAC9E,eAAO,MAAM,eAAe,qBAA8C,CAAC;AAC3E,eAAO,MAAM,oBAAoB,sBAAoD,CAAC
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/contextkey/testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,eAAO,MAAM,2BAA2B,kBAAwD,CAAC;AACjG,eAAO,MAAM,qCAAqC,sBAAmE,CAAC;AACtH,eAAO,MAAM,oBAAoB,sBAAoD,CAAC;AACtF,eAAO,MAAM,gBAAgB,sBAAgD,CAAC;AAC9E,eAAO,MAAM,eAAe,qBAA8C,CAAC;AAC3E,eAAO,MAAM,oBAAoB,sBAAoD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TestingIsPeekVisible = exports.TestingIsInPeek = exports.TestingIsRunning = exports.TestingHasAnyResults = exports.TestingServiceHasDebuggableContextKey = exports.TestingServiceProviderCount = void 0;
|
|
4
4
|
const raw_context_key_1 = require("../raw-context-key");
|
|
5
5
|
exports.TestingServiceProviderCount = new raw_context_key_1.RawContextKey('service.testing.providerCount', 0);
|
|
6
6
|
exports.TestingServiceHasDebuggableContextKey = new raw_context_key_1.RawContextKey('service.testing.hasDebuggableContext', false);
|
|
@@ -8,5 +8,4 @@ exports.TestingHasAnyResults = new raw_context_key_1.RawContextKey('testing.hasA
|
|
|
8
8
|
exports.TestingIsRunning = new raw_context_key_1.RawContextKey('testing.isRunning', false);
|
|
9
9
|
exports.TestingIsInPeek = new raw_context_key_1.RawContextKey('testing.isInPeek', true);
|
|
10
10
|
exports.TestingIsPeekVisible = new raw_context_key_1.RawContextKey('testing.isPeekVisible', false);
|
|
11
|
-
exports.TestingCanRefreshTests = new raw_context_key_1.RawContextKey('testing.canRefresh', false);
|
|
12
11
|
//# sourceMappingURL=testing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../src/contextkey/testing.ts"],"names":[],"mappings":";;;AAAA,wDAAmD;AAEtC,QAAA,2BAA2B,GAAG,IAAI,+BAAa,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;AACpF,QAAA,qCAAqC,GAAG,IAAI,+BAAa,CAAC,sCAAsC,EAAE,KAAK,CAAC,CAAC;AACzG,QAAA,oBAAoB,GAAG,IAAI,+BAAa,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACzE,QAAA,gBAAgB,GAAG,IAAI,+BAAa,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;AACjE,QAAA,eAAe,GAAG,IAAI,+BAAa,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;AAC9D,QAAA,oBAAoB,GAAG,IAAI,+BAAa,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../src/contextkey/testing.ts"],"names":[],"mappings":";;;AAAA,wDAAmD;AAEtC,QAAA,2BAA2B,GAAG,IAAI,+BAAa,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;AACpF,QAAA,qCAAqC,GAAG,IAAI,+BAAa,CAAC,sCAAsC,EAAE,KAAK,CAAC,CAAC;AACzG,QAAA,oBAAoB,GAAG,IAAI,+BAAa,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;AACzE,QAAA,gBAAgB,GAAG,IAAI,+BAAa,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;AACjE,QAAA,eAAe,GAAG,IAAI,+BAAa,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;AAC9D,QAAA,oBAAoB,GAAG,IAAI,+BAAa,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-core-browser",
|
|
3
|
-
"version": "2.21.4
|
|
3
|
+
"version": "2.21.4",
|
|
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",
|
|
@@ -18,9 +17,9 @@
|
|
|
18
17
|
"build": "tsc --build ../../configs/ts/references/tsconfig.core-browser.json"
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
21
|
-
"@opensumi/ide-components": "2.21.4
|
|
22
|
-
"@opensumi/ide-connection": "2.21.4
|
|
23
|
-
"@opensumi/ide-core-common": "2.21.4
|
|
20
|
+
"@opensumi/ide-components": "2.21.4",
|
|
21
|
+
"@opensumi/ide-connection": "2.21.4",
|
|
22
|
+
"@opensumi/ide-core-common": "2.21.4",
|
|
24
23
|
"@opensumi/vscode-debugprotocol": "1.49.0-beta.1",
|
|
25
24
|
"@vscode/codicons": "0.0.27",
|
|
26
25
|
"ajv": "^6.10.0",
|
|
@@ -48,5 +47,5 @@
|
|
|
48
47
|
"vscode-languageserver-protocol": "3.16.0",
|
|
49
48
|
"vscode-textmate": "7.0.1"
|
|
50
49
|
},
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "d6077dd539ffbb19593e695f0adeae87644085c4"
|
|
52
51
|
}
|
|
@@ -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
|
-
}
|