@theia/plugin-ext 1.29.0-next.30 → 1.29.0-next.31

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.
@@ -1,3 +1,3 @@
1
1
  import { interfaces } from '@theia/core/shared/inversify';
2
- export declare function bindMainBackend(bind: interfaces.Bind): void;
2
+ export declare function bindMainBackend(bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: interfaces.IsBound, rebind: interfaces.Rebind): void;
3
3
  //# sourceMappingURL=plugin-ext-backend-module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-ext-backend-module.d.ts","sourceRoot":"","sources":["../../../src/main/node/plugin-ext-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AA0B1D,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CA6C3D"}
1
+ {"version":3,"file":"plugin-ext-backend-module.d.ts","sourceRoot":"","sources":["../../../src/main/node/plugin-ext-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AA4B1D,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI,CAgD9I"}
@@ -37,7 +37,9 @@ const plugin_theia_environment_1 = require("../common/plugin-theia-environment")
37
37
  const plugin_theia_deployer_participant_1 = require("./plugin-theia-deployer-participant");
38
38
  const webview_backend_security_warnings_1 = require("./webview-backend-security-warnings");
39
39
  const plugin_uninstallation_manager_1 = require("./plugin-uninstallation-manager");
40
- function bindMainBackend(bind) {
40
+ const localization_backend_contribution_1 = require("@theia/core/lib/node/i18n/localization-backend-contribution");
41
+ const plugin_localization_backend_contribution_1 = require("./plugin-localization-backend-contribution");
42
+ function bindMainBackend(bind, unbind, isBound, rebind) {
41
43
  bind(plugin_service_1.PluginApiContribution).toSelf().inSingletonScope();
42
44
  bind(node_1.BackendApplicationContribution).toService(plugin_service_1.PluginApiContribution);
43
45
  bind(ws_request_validators_1.WsRequestValidatorContribution).toService(plugin_service_1.PluginApiContribution);
@@ -63,6 +65,7 @@ function bindMainBackend(bind) {
63
65
  bind(node_1.CliContribution).toService(plugin_cli_contribution_1.PluginCliContribution);
64
66
  bind(webview_backend_security_warnings_1.WebviewBackendSecurityWarnings).toSelf().inSingletonScope();
65
67
  bind(node_1.BackendApplicationContribution).toService(webview_backend_security_warnings_1.WebviewBackendSecurityWarnings);
68
+ rebind(localization_backend_contribution_1.LocalizationBackendContribution).to(plugin_localization_backend_contribution_1.PluginLocalizationBackendContribution).inSingletonScope();
66
69
  }
67
70
  exports.bindMainBackend = bindMainBackend;
68
71
  //# sourceMappingURL=plugin-ext-backend-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-ext-backend-module.js","sourceRoot":"","sources":["../../../src/main/node/plugin-ext-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;AAGhF,qDAAyD;AACzD,+CAAuF;AACvF,sFAA4F;AAC5F,2EAAqE;AACrE,iFAA4E;AAC5E,kEAGsC;AACtC,iEAA4D;AAC5D,mHAA4G;AAC5G,oFAA8E;AAC9E,8FAAwF;AACxF,qEAAwE;AACxE,iEAAoE;AACpE,sCAAoG;AACpG,2EAA6F;AAC7F,uEAAsE;AACtE,mEAA8D;AAC9D,uEAAkE;AAClE,iFAA4E;AAC5E,2FAAqF;AACrF,2FAAqF;AACrF,mFAA8E;A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uB,EAAE,GAAG,EAAE,CACvD,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,8BAAY,CAAC,CAClC,CACJ,CAAC,gBAAgB,EAAE,CAAC;IAErB,IAAI,CAAC,+CAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,sBAAe,CAAC,CAAC,SAAS,CAAC,+CAAqB,CAAC,CAAC;IAEvD,IAAI,CAAC,kEAA8B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACjE,IAAI,CAAC,qCAA8B,CAAC,CAAC,SAAS,CAAC,kEAA8B,CAAC,CAAC;IAE/E,MAAM,CAAC,mEAA+B,CAAC,CAAC,EAAE,CAAC,gFAAqC,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAEzG,CAAC;AAhDD,0CAgDC"}
@@ -0,0 +1,10 @@
1
+ import { LocalizationBackendContribution } from '@theia/core/lib/node/i18n/localization-backend-contribution';
2
+ import { PluginDeployerImpl } from './plugin-deployer-impl';
3
+ import { Deferred } from '@theia/core/lib/common/promise-util';
4
+ export declare class PluginLocalizationBackendContribution extends LocalizationBackendContribution {
5
+ protected readonly pluginDeployer: PluginDeployerImpl;
6
+ protected readonly pluginsDeployed: Deferred<void>;
7
+ initialize(): Promise<void>;
8
+ waitForInitialization(): Promise<void>;
9
+ }
10
+ //# sourceMappingURL=plugin-localization-backend-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-localization-backend-contribution.d.ts","sourceRoot":"","sources":["../../../src/main/node/plugin-localization-backend-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,+BAA+B,EAAE,MAAM,6DAA6D,CAAC;AAE9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,qBACa,qCAAsC,SAAQ,+BAA+B;IAEtF,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;IACtD,SAAS,CAAC,QAAQ,CAAC,eAAe,iBAAkB;IAErC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAO3B,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;CAMxD"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2021 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.PluginLocalizationBackendContribution = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const localization_backend_contribution_1 = require("@theia/core/lib/node/i18n/localization-backend-contribution");
30
+ const plugin_protocol_1 = require("../../common/plugin-protocol");
31
+ const plugin_deployer_impl_1 = require("./plugin-deployer-impl");
32
+ const promise_util_1 = require("@theia/core/lib/common/promise-util");
33
+ let PluginLocalizationBackendContribution = class PluginLocalizationBackendContribution extends localization_backend_contribution_1.LocalizationBackendContribution {
34
+ constructor() {
35
+ super(...arguments);
36
+ this.pluginsDeployed = new promise_util_1.Deferred();
37
+ }
38
+ async initialize() {
39
+ this.pluginDeployer.onDidDeploy(() => {
40
+ this.pluginsDeployed.resolve();
41
+ });
42
+ await super.initialize();
43
+ }
44
+ async waitForInitialization() {
45
+ await Promise.all([
46
+ super.waitForInitialization(),
47
+ this.pluginsDeployed.promise,
48
+ ]);
49
+ }
50
+ };
51
+ __decorate([
52
+ (0, inversify_1.inject)(plugin_protocol_1.PluginDeployer),
53
+ __metadata("design:type", plugin_deployer_impl_1.PluginDeployerImpl)
54
+ ], PluginLocalizationBackendContribution.prototype, "pluginDeployer", void 0);
55
+ PluginLocalizationBackendContribution = __decorate([
56
+ (0, inversify_1.injectable)()
57
+ ], PluginLocalizationBackendContribution);
58
+ exports.PluginLocalizationBackendContribution = PluginLocalizationBackendContribution;
59
+ //# sourceMappingURL=plugin-localization-backend-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-localization-backend-contribution.js","sourceRoot":"","sources":["../../../src/main/node/plugin-localization-backend-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAEhF,4DAAkE;AAClE,mHAA8G;AAC9G,kEAA8D;AAC9D,iEAA4D;AAC5D,sEAA+D;AAG/D,IAAa,qCAAqC,GAAlD,MAAa,qCAAsC,SAAQ,mEAA+B;IAA1F;;QAGuB,oBAAe,GAAG,IAAI,uBAAQ,EAAE,CAAC;IAexD,CAAC;IAbY,KAAK,CAAC,UAAU;QACrB,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,EAAE;YACjC,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;QACnC,CAAC,CAAC,CAAC;QACH,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IAEQ,KAAK,CAAC,qBAAqB;QAChC,MAAM,OAAO,CAAC,GAAG,CAAC;YACd,KAAK,CAAC,qBAAqB,EAAE;YAC7B,IAAI,CAAC,eAAe,CAAC,OAAO;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAhBG;IADC,IAAA,kBAAM,EAAC,gCAAc,CAAC;8BACY,yCAAkB;6EAAC;AAF7C,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAkBjD;AAlBY,sFAAqC"}
@@ -18,8 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const inversify_1 = require("@theia/core/shared/inversify");
19
19
  const plugin_ext_hosted_electron_backend_module_1 = require("./hosted/node-electron/plugin-ext-hosted-electron-backend-module");
20
20
  const plugin_ext_backend_module_1 = require("./main/node/plugin-ext-backend-module");
21
- exports.default = new inversify_1.ContainerModule(bind => {
22
- (0, plugin_ext_backend_module_1.bindMainBackend)(bind);
21
+ exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
22
+ (0, plugin_ext_backend_module_1.bindMainBackend)(bind, unbind, isBound, rebind);
23
23
  (0, plugin_ext_hosted_electron_backend_module_1.bindElectronBackend)(bind);
24
24
  });
25
25
  //# sourceMappingURL=plugin-ext-backend-electron-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-ext-backend-electron-module.js","sourceRoot":"","sources":["../src/plugin-ext-backend-electron-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;AAEhF,4DAA+D;AAC/D,gIAAuG;AACvG,qFAAwE;AAExE,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,2CAAe,EAAC,IAAI,CAAC,CAAC;IACtB,IAAA,+DAAmB,EAAC,IAAI,CAAC,CAAC;AAC9B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"plugin-ext-backend-electron-module.js","sourceRoot":"","sources":["../src/plugin-ext-backend-electron-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;AAEhF,4DAA+D;AAC/D,gIAAuG;AACvG,qFAAwE;AAExE,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACjE,IAAA,2CAAe,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,IAAA,+DAAmB,EAAC,IAAI,CAAC,CAAC;AAC9B,CAAC,CAAC,CAAC"}
@@ -18,8 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  const inversify_1 = require("@theia/core/shared/inversify");
19
19
  const plugin_ext_hosted_backend_module_1 = require("./hosted/node/plugin-ext-hosted-backend-module");
20
20
  const plugin_ext_backend_module_1 = require("./main/node/plugin-ext-backend-module");
21
- exports.default = new inversify_1.ContainerModule(bind => {
22
- (0, plugin_ext_backend_module_1.bindMainBackend)(bind);
21
+ exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
22
+ (0, plugin_ext_backend_module_1.bindMainBackend)(bind, unbind, isBound, rebind);
23
23
  (0, plugin_ext_hosted_backend_module_1.bindHostedBackend)(bind);
24
24
  });
25
25
  //# sourceMappingURL=plugin-ext-backend-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-ext-backend-module.js","sourceRoot":"","sources":["../src/plugin-ext-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;AAEhF,4DAA+D;AAC/D,qGAAmF;AACnF,qFAAwE;AAExE,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,2CAAe,EAAC,IAAI,CAAC,CAAC;IACtB,IAAA,oDAAiB,EAAC,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"plugin-ext-backend-module.js","sourceRoot":"","sources":["../src/plugin-ext-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;AAEhF,4DAA+D;AAC/D,qGAAmF;AACnF,qFAAwE;AAExE,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACjE,IAAA,2CAAe,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,IAAA,oDAAiB,EAAC,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
2
  "name": "@theia/plugin-ext",
3
- "version": "1.29.0-next.30+a0e7922bd76",
3
+ "version": "1.29.0-next.31+fa4a9cfb490",
4
4
  "description": "Theia - Plugin Extension",
5
5
  "main": "lib/common/index.js",
6
6
  "typings": "lib/common/index.d.ts",
7
7
  "dependencies": {
8
- "@theia/bulk-edit": "1.29.0-next.30+a0e7922bd76",
9
- "@theia/callhierarchy": "1.29.0-next.30+a0e7922bd76",
10
- "@theia/console": "1.29.0-next.30+a0e7922bd76",
11
- "@theia/core": "1.29.0-next.30+a0e7922bd76",
12
- "@theia/debug": "1.29.0-next.30+a0e7922bd76",
13
- "@theia/editor": "1.29.0-next.30+a0e7922bd76",
14
- "@theia/file-search": "1.29.0-next.30+a0e7922bd76",
15
- "@theia/filesystem": "1.29.0-next.30+a0e7922bd76",
16
- "@theia/markers": "1.29.0-next.30+a0e7922bd76",
17
- "@theia/messages": "1.29.0-next.30+a0e7922bd76",
18
- "@theia/monaco": "1.29.0-next.30+a0e7922bd76",
8
+ "@theia/bulk-edit": "1.29.0-next.31+fa4a9cfb490",
9
+ "@theia/callhierarchy": "1.29.0-next.31+fa4a9cfb490",
10
+ "@theia/console": "1.29.0-next.31+fa4a9cfb490",
11
+ "@theia/core": "1.29.0-next.31+fa4a9cfb490",
12
+ "@theia/debug": "1.29.0-next.31+fa4a9cfb490",
13
+ "@theia/editor": "1.29.0-next.31+fa4a9cfb490",
14
+ "@theia/file-search": "1.29.0-next.31+fa4a9cfb490",
15
+ "@theia/filesystem": "1.29.0-next.31+fa4a9cfb490",
16
+ "@theia/markers": "1.29.0-next.31+fa4a9cfb490",
17
+ "@theia/messages": "1.29.0-next.31+fa4a9cfb490",
18
+ "@theia/monaco": "1.29.0-next.31+fa4a9cfb490",
19
19
  "@theia/monaco-editor-core": "1.67.2",
20
- "@theia/navigator": "1.29.0-next.30+a0e7922bd76",
21
- "@theia/output": "1.29.0-next.30+a0e7922bd76",
22
- "@theia/plugin": "1.29.0-next.30+a0e7922bd76",
23
- "@theia/preferences": "1.29.0-next.30+a0e7922bd76",
24
- "@theia/scm": "1.29.0-next.30+a0e7922bd76",
25
- "@theia/search-in-workspace": "1.29.0-next.30+a0e7922bd76",
26
- "@theia/task": "1.29.0-next.30+a0e7922bd76",
27
- "@theia/terminal": "1.29.0-next.30+a0e7922bd76",
28
- "@theia/timeline": "1.29.0-next.30+a0e7922bd76",
29
- "@theia/variable-resolver": "1.29.0-next.30+a0e7922bd76",
30
- "@theia/workspace": "1.29.0-next.30+a0e7922bd76",
20
+ "@theia/navigator": "1.29.0-next.31+fa4a9cfb490",
21
+ "@theia/output": "1.29.0-next.31+fa4a9cfb490",
22
+ "@theia/plugin": "1.29.0-next.31+fa4a9cfb490",
23
+ "@theia/preferences": "1.29.0-next.31+fa4a9cfb490",
24
+ "@theia/scm": "1.29.0-next.31+fa4a9cfb490",
25
+ "@theia/search-in-workspace": "1.29.0-next.31+fa4a9cfb490",
26
+ "@theia/task": "1.29.0-next.31+fa4a9cfb490",
27
+ "@theia/terminal": "1.29.0-next.31+fa4a9cfb490",
28
+ "@theia/timeline": "1.29.0-next.31+fa4a9cfb490",
29
+ "@theia/variable-resolver": "1.29.0-next.31+fa4a9cfb490",
30
+ "@theia/workspace": "1.29.0-next.31+fa4a9cfb490",
31
31
  "@types/mime": "^2.0.1",
32
32
  "decompress": "^4.2.1",
33
33
  "escape-html": "^1.0.3",
@@ -94,5 +94,5 @@
94
94
  "nyc": {
95
95
  "extends": "../../configs/nyc.json"
96
96
  },
97
- "gitHead": "a0e7922bd76160d0d29564ec1316f82dc021af3f"
97
+ "gitHead": "fa4a9cfb4909710854f6962b64b7f3384790e856"
98
98
  }
@@ -39,8 +39,10 @@ import { PluginTheiaEnvironment } from '../common/plugin-theia-environment';
39
39
  import { PluginTheiaDeployerParticipant } from './plugin-theia-deployer-participant';
40
40
  import { WebviewBackendSecurityWarnings } from './webview-backend-security-warnings';
41
41
  import { PluginUninstallationManager } from './plugin-uninstallation-manager';
42
+ import { LocalizationBackendContribution } from '@theia/core/lib/node/i18n/localization-backend-contribution';
43
+ import { PluginLocalizationBackendContribution } from './plugin-localization-backend-contribution';
42
44
 
43
- export function bindMainBackend(bind: interfaces.Bind): void {
45
+ export function bindMainBackend(bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: interfaces.IsBound, rebind: interfaces.Rebind): void {
44
46
  bind(PluginApiContribution).toSelf().inSingletonScope();
45
47
  bind(BackendApplicationContribution).toService(PluginApiContribution);
46
48
  bind(WsRequestValidatorContribution).toService(PluginApiContribution);
@@ -85,4 +87,7 @@ export function bindMainBackend(bind: interfaces.Bind): void {
85
87
 
86
88
  bind(WebviewBackendSecurityWarnings).toSelf().inSingletonScope();
87
89
  bind(BackendApplicationContribution).toService(WebviewBackendSecurityWarnings);
90
+
91
+ rebind(LocalizationBackendContribution).to(PluginLocalizationBackendContribution).inSingletonScope();
92
+
88
93
  }
@@ -0,0 +1,42 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2021 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { inject, injectable } from '@theia/core/shared/inversify';
18
+ import { LocalizationBackendContribution } from '@theia/core/lib/node/i18n/localization-backend-contribution';
19
+ import { PluginDeployer } from '../../common/plugin-protocol';
20
+ import { PluginDeployerImpl } from './plugin-deployer-impl';
21
+ import { Deferred } from '@theia/core/lib/common/promise-util';
22
+
23
+ @injectable()
24
+ export class PluginLocalizationBackendContribution extends LocalizationBackendContribution {
25
+ @inject(PluginDeployer)
26
+ protected readonly pluginDeployer: PluginDeployerImpl;
27
+ protected readonly pluginsDeployed = new Deferred();
28
+
29
+ override async initialize(): Promise<void> {
30
+ this.pluginDeployer.onDidDeploy(() => {
31
+ this.pluginsDeployed.resolve();
32
+ });
33
+ await super.initialize();
34
+ }
35
+
36
+ override async waitForInitialization(): Promise<void> {
37
+ await Promise.all([
38
+ super.waitForInitialization(),
39
+ this.pluginsDeployed.promise,
40
+ ]);
41
+ }
42
+ }
@@ -18,7 +18,7 @@ import { ContainerModule } from '@theia/core/shared/inversify';
18
18
  import { bindElectronBackend } from './hosted/node-electron/plugin-ext-hosted-electron-backend-module';
19
19
  import { bindMainBackend } from './main/node/plugin-ext-backend-module';
20
20
 
21
- export default new ContainerModule(bind => {
22
- bindMainBackend(bind);
21
+ export default new ContainerModule((bind, unbind, isBound, rebind) => {
22
+ bindMainBackend(bind, unbind, isBound, rebind);
23
23
  bindElectronBackend(bind);
24
24
  });
@@ -18,7 +18,7 @@ import { ContainerModule } from '@theia/core/shared/inversify';
18
18
  import { bindHostedBackend } from './hosted/node/plugin-ext-hosted-backend-module';
19
19
  import { bindMainBackend } from './main/node/plugin-ext-backend-module';
20
20
 
21
- export default new ContainerModule(bind => {
22
- bindMainBackend(bind);
21
+ export default new ContainerModule((bind, unbind, isBound, rebind) => {
22
+ bindMainBackend(bind, unbind, isBound, rebind);
23
23
  bindHostedBackend(bind);
24
24
  });