@theia/plugin-ext-headless 1.77.0-next.95 → 1.77.0
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/common/headless-plugin-container.js +1 -4
- package/lib/common/headless-plugin-container.js.map +1 -1
- package/lib/common/headless-plugin-protocol.js +2 -6
- package/lib/common/headless-plugin-protocol.js.map +1 -1
- package/lib/common/headless-plugin-rpc.d.ts +1 -1
- package/lib/common/headless-plugin-rpc.d.ts.map +1 -1
- package/lib/common/headless-plugin-rpc.js +10 -13
- package/lib/common/headless-plugin-rpc.js.map +1 -1
- package/lib/common/index.d.ts +4 -4
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +4 -11
- package/lib/common/index.js.map +1 -1
- package/lib/common/plugin-ext-headless-api-contribution.js +1 -4
- package/lib/common/plugin-ext-headless-api-contribution.js.map +1 -1
- package/lib/hosted/node/headless-hosted-plugin.d.ts +2 -2
- package/lib/hosted/node/headless-hosted-plugin.d.ts.map +1 -1
- package/lib/hosted/node/headless-hosted-plugin.js +51 -63
- package/lib/hosted/node/headless-hosted-plugin.js.map +1 -1
- package/lib/hosted/node/headless-plugin-service.js +7 -10
- package/lib/hosted/node/headless-plugin-service.js.map +1 -1
- package/lib/hosted/node/plugin-ext-headless-hosted-module.js +31 -36
- package/lib/hosted/node/plugin-ext-headless-hosted-module.js.map +1 -1
- package/lib/hosted/node/plugin-host-headless-module.js +32 -34
- package/lib/hosted/node/plugin-host-headless-module.js.map +1 -1
- package/lib/hosted/node/plugin-host-headless-rpc.d.ts +2 -2
- package/lib/hosted/node/plugin-host-headless-rpc.d.ts.map +1 -1
- package/lib/hosted/node/plugin-host-headless-rpc.js +17 -24
- package/lib/hosted/node/plugin-host-headless-rpc.js.map +1 -1
- package/lib/hosted/node/plugin-host-headless.js +15 -18
- package/lib/hosted/node/plugin-host-headless.js.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia-headless.js +9 -13
- package/lib/hosted/node/scanners/scanner-theia-headless.js.map +1 -1
- package/lib/hosted/node-electron/plugin-ext-headless-hosted-electron-module.js +3 -6
- package/lib/hosted/node-electron/plugin-ext-headless-hosted-electron-module.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -4
- package/lib/index.js.map +1 -1
- package/lib/main/node/handlers/plugin-theia-headless-directory-handler.js +9 -12
- package/lib/main/node/handlers/plugin-theia-headless-directory-handler.js.map +1 -1
- package/lib/main/node/headless-progress-client.js +10 -14
- package/lib/main/node/headless-progress-client.js.map +1 -1
- package/lib/main/node/main-context.js +11 -14
- package/lib/main/node/main-context.js.map +1 -1
- package/lib/main/node/plugin-ext-headless-main-module.js +12 -16
- package/lib/main/node/plugin-ext-headless-main-module.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -1
- package/lib/package.spec.js.map +1 -1
- package/lib/plugin/headless-plugin-manager.d.ts +1 -1
- package/lib/plugin/headless-plugin-manager.d.ts.map +1 -1
- package/lib/plugin/headless-plugin-manager.js +7 -10
- package/lib/plugin/headless-plugin-manager.js.map +1 -1
- package/lib/plugin-ext-headless-electron-module.js +12 -14
- package/lib/plugin-ext-headless-electron-module.js.map +1 -1
- package/lib/plugin-ext-headless-module.js +11 -13
- package/lib/plugin-ext-headless-module.js.map +1 -1
- package/package.json +16 -7
- package/src/common/headless-plugin-rpc.ts +1 -1
- package/src/common/index.ts +4 -4
- package/src/hosted/node/headless-hosted-plugin.ts +4 -4
- package/src/hosted/node/plugin-ext-headless-hosted-module.ts +6 -6
- package/src/hosted/node/plugin-host-headless-module.ts +2 -2
- package/src/hosted/node/plugin-host-headless-rpc.ts +3 -3
- package/src/hosted/node/plugin-host-headless.ts +2 -2
- package/src/hosted/node-electron/plugin-ext-headless-hosted-electron-module.ts +1 -1
- package/src/index.ts +1 -1
- package/src/main/node/main-context.ts +1 -1
- package/src/main/node/plugin-ext-headless-main-module.ts +2 -2
- package/src/plugin/headless-plugin-manager.ts +1 -1
- package/src/plugin-ext-headless-electron-module.ts +4 -4
- package/src/plugin-ext-headless-module.ts +3 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -14,24 +13,21 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const headless_progress_client_1 = require("./headless-progress-client");
|
|
24
|
-
function bindHeadlessMain(bind) {
|
|
25
|
-
bind(plugin_ext_1.PluginDeployerDirectoryHandler).to(plugin_theia_headless_directory_handler_1.PluginTheiaHeadlessDirectoryHandler).inSingletonScope();
|
|
16
|
+
import { MessageClient, MessageService, ProgressClient, ProgressService, bindRootContributionProvider } from '@theia/core';
|
|
17
|
+
import { MainPluginApiProvider, PluginDeployerDirectoryHandler } from '@theia/plugin-ext';
|
|
18
|
+
import { PluginTheiaHeadlessDirectoryHandler } from './handlers/plugin-theia-headless-directory-handler.js';
|
|
19
|
+
import { HeadlessProgressClient } from './headless-progress-client.js';
|
|
20
|
+
export function bindHeadlessMain(bind) {
|
|
21
|
+
bind(PluginDeployerDirectoryHandler).to(PluginTheiaHeadlessDirectoryHandler).inSingletonScope();
|
|
26
22
|
}
|
|
27
|
-
function bindBackendMain(bind, unbind, isBound, rebind) {
|
|
28
|
-
|
|
23
|
+
export function bindBackendMain(bind, unbind, isBound, rebind) {
|
|
24
|
+
bindRootContributionProvider(bind, MainPluginApiProvider);
|
|
29
25
|
//
|
|
30
26
|
// Main API dependencies
|
|
31
27
|
//
|
|
32
|
-
bind(
|
|
33
|
-
bind(
|
|
34
|
-
bind(
|
|
35
|
-
bind(
|
|
28
|
+
bind(MessageService).toSelf().inSingletonScope();
|
|
29
|
+
bind(MessageClient).toSelf().inSingletonScope(); // Just logs to console
|
|
30
|
+
bind(ProgressService).toSelf().inSingletonScope();
|
|
31
|
+
bind(ProgressClient).to(HeadlessProgressClient).inSingletonScope();
|
|
36
32
|
}
|
|
37
33
|
//# sourceMappingURL=plugin-ext-headless-main-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-ext-headless-main-module.js","sourceRoot":"","sources":["../../../src/main/node/plugin-ext-headless-main-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-ext-headless-main-module.js","sourceRoot":"","sources":["../../../src/main/node/plugin-ext-headless-main-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,gFAAgF;AAChF,gFAAgF;AAGhF,OAAO,EACH,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,eAAe,EAC/B,4BAA4B,EAC/B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,mCAAmC,EAAE,MAAM,uDAAuD,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,UAAU,gBAAgB,CAAC,IAAqB;IAClD,IAAI,CAAC,8BAA8B,CAAC,CAAC,EAAE,CAAC,mCAAmC,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACpG,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAqB,EAAE,MAAyB,EAAE,OAA2B,EAAE,MAAyB;IACpI,4BAA4B,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IAE1D,EAAE;IACF,wBAAwB;IACxB,EAAE;IAEF,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACjD,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC,CAAC,uBAAuB;IACxE,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAClD,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACvE,CAAC"}
|
package/lib/package.spec.d.ts
CHANGED
package/lib/package.spec.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -22,4 +21,5 @@
|
|
|
22
21
|
describe('plugin-ext-headless package', () => {
|
|
23
22
|
it('placeholder to enable mocha', () => true);
|
|
24
23
|
});
|
|
24
|
+
export {};
|
|
25
25
|
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.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,gFAAgF;AAChF,gFAAgF;AAEhF;;;;GAIG;AAEH,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IACzC,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbstractPluginManagerExtImpl } from '@theia/plugin-ext/lib/plugin/plugin-manager';
|
|
2
|
-
import { HeadlessPluginManagerExt, HeadlessPluginManagerInitializeParams } from '../common/headless-plugin-rpc';
|
|
2
|
+
import { HeadlessPluginManagerExt, HeadlessPluginManagerInitializeParams } from '../common/headless-plugin-rpc.js';
|
|
3
3
|
import { Plugin } from '@theia/plugin-ext';
|
|
4
4
|
export declare class HeadlessPluginManagerExtImpl extends AbstractPluginManagerExtImpl<HeadlessPluginManagerInitializeParams> implements HeadlessPluginManagerExt {
|
|
5
5
|
private readonly supportedActivationEvents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-plugin-manager.d.ts","sourceRoot":"","sources":["../../src/plugin/headless-plugin-manager.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,qCAAqC,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"headless-plugin-manager.d.ts","sourceRoot":"","sources":["../../src/plugin/headless-plugin-manager.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAC;AACnH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,qBACa,4BAA6B,SAAQ,4BAA4B,CAAC,qCAAqC,CAAE,YAAW,wBAAwB;IAErJ,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAqB;IAEzD,KAAK,CAAC,MAAM,EAAE,qCAAqC,GAAG,OAAO,CAAC,IAAI,CAAC;cActD,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAK5E,SAAS,CAAC,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO;CAIzE"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -14,12 +13,10 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const plugin_manager_1 = require("@theia/plugin-ext/lib/plugin/plugin-manager");
|
|
22
|
-
let HeadlessPluginManagerExtImpl = class HeadlessPluginManagerExtImpl extends plugin_manager_1.AbstractPluginManagerExtImpl {
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { AbstractPluginManagerExtImpl } from '@theia/plugin-ext/lib/plugin/plugin-manager';
|
|
19
|
+
let HeadlessPluginManagerExtImpl = class HeadlessPluginManagerExtImpl extends AbstractPluginManagerExtImpl {
|
|
23
20
|
constructor() {
|
|
24
21
|
super(...arguments);
|
|
25
22
|
this.supportedActivationEvents = new Set();
|
|
@@ -42,8 +39,8 @@ let HeadlessPluginManagerExtImpl = class HeadlessPluginManagerExtImpl extends pl
|
|
|
42
39
|
return this.supportedActivationEvents.has(activationEvent.split(':')[0]);
|
|
43
40
|
}
|
|
44
41
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
(0, inversify_1.injectable)()
|
|
42
|
+
HeadlessPluginManagerExtImpl = __decorate([
|
|
43
|
+
injectable()
|
|
48
44
|
], HeadlessPluginManagerExtImpl);
|
|
45
|
+
export { HeadlessPluginManagerExtImpl };
|
|
49
46
|
//# sourceMappingURL=headless-plugin-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-plugin-manager.js","sourceRoot":"","sources":["../../src/plugin/headless-plugin-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"headless-plugin-manager.js","sourceRoot":"","sources":["../../src/plugin/headless-plugin-manager.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,gFAAgF;AAChF,gFAAgF;;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAKpF,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,4BAAmE;IAA9G;;QAEc,8BAAyB,GAAG,IAAI,GAAG,EAAU,CAAC;IAyBnE,CAAC;IAvBG,KAAK,CAAC,KAAK,CAAC,MAA6C;QACrD,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;QAErF,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAE1C,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACnD,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAE3C,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;IAEkB,mBAAmB,CAAC,MAAc;QACjD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,CAAC;QAC3D,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IACtD,CAAC;IAES,0BAA0B,CAAC,eAAuB;QACxD,OAAO,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,CAAC;CAEJ,CAAA;AA3BY,4BAA4B;IADxC,UAAU,EAAE;GACA,4BAA4B,CA2BxC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -14,19 +13,18 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
(
|
|
25
|
-
(0, plugin_ext_headless_hosted_electron_module_1.bindElectronBackend)(bind);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { HeadlessPluginContainerModule } from './common/headless-plugin-container.js';
|
|
18
|
+
import { bindElectronBackend } from './hosted/node-electron/plugin-ext-headless-hosted-electron-module.js';
|
|
19
|
+
import { bindHeadlessMain, bindBackendMain } from './main/node/plugin-ext-headless-main-module.js';
|
|
20
|
+
import { bindHeadlessHosted } from './hosted/node/plugin-ext-headless-hosted-module.js';
|
|
21
|
+
const backendElectronModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
22
|
+
bindBackendMain(bind, unbind, isBound, rebind);
|
|
23
|
+
bindElectronBackend(bind);
|
|
26
24
|
});
|
|
27
|
-
|
|
28
|
-
bind(
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export default new ContainerModule(bind => {
|
|
26
|
+
bind(HeadlessPluginContainerModule).toConstantValue(backendElectronModule);
|
|
27
|
+
bindHeadlessMain(bind);
|
|
28
|
+
bindHeadlessHosted(bind);
|
|
31
29
|
});
|
|
32
30
|
//# sourceMappingURL=plugin-ext-headless-electron-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-ext-headless-electron-module.js","sourceRoot":"","sources":["../src/plugin-ext-headless-electron-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-ext-headless-electron-module.js","sourceRoot":"","sources":["../src/plugin-ext-headless-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,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sEAAsE,CAAC;AAC3G,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAExF,MAAM,qBAAqB,GAAG,IAAI,eAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAChF,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,mBAAmB,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC,CAAC,CAAC;AAEH,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,6BAA6B,CAAC,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;IAC3E,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvB,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2024 EclipseSource and others.
|
|
4
3
|
//
|
|
@@ -14,18 +13,17 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
(0, plugin_ext_headless_hosted_module_1.bindCommonHostedBackend)(bind);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { HeadlessPluginContainerModule } from './common/headless-plugin-container.js';
|
|
18
|
+
import { bindHeadlessHosted, bindCommonHostedBackend } from './hosted/node/plugin-ext-headless-hosted-module.js';
|
|
19
|
+
import { bindHeadlessMain, bindBackendMain } from './main/node/plugin-ext-headless-main-module.js';
|
|
20
|
+
const backendModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
21
|
+
bindBackendMain(bind, unbind, isBound, rebind);
|
|
22
|
+
bindCommonHostedBackend(bind);
|
|
25
23
|
});
|
|
26
|
-
|
|
27
|
-
bind(
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
export default new ContainerModule(bind => {
|
|
25
|
+
bind(HeadlessPluginContainerModule).toConstantValue(backendModule);
|
|
26
|
+
bindHeadlessMain(bind);
|
|
27
|
+
bindHeadlessHosted(bind);
|
|
30
28
|
});
|
|
31
29
|
//# sourceMappingURL=plugin-ext-headless-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-ext-headless-module.js","sourceRoot":"","sources":["../src/plugin-ext-headless-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-ext-headless-module.js","sourceRoot":"","sources":["../src/plugin-ext-headless-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,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AACjH,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEnG,MAAM,aAAa,GAAG,IAAI,eAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACxE,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC;AAEH,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,6BAA6B,CAAC,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;IACnE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvB,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext-headless",
|
|
3
|
-
"version": "1.77.0
|
|
3
|
+
"version": "1.77.0",
|
|
4
4
|
"description": "Theia - Headless (Backend-only) Plugin Extension",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "lib/common/index.js",
|
|
6
7
|
"typings": "lib/common/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./lib/common/index.js",
|
|
10
|
+
"./package.json": "./package.json",
|
|
11
|
+
"./lib/common": "./lib/common/index.js",
|
|
12
|
+
"./lib/*.json": "./lib/*.json",
|
|
13
|
+
"./lib/*.js": "./lib/*.js",
|
|
14
|
+
"./lib/*": "./lib/*.js",
|
|
15
|
+
"./*": "./*"
|
|
16
|
+
},
|
|
7
17
|
"dependencies": {
|
|
8
|
-
"@theia/core": "1.77.0
|
|
9
|
-
"@theia/plugin-ext": "1.77.0
|
|
10
|
-
"@theia/terminal": "1.77.0
|
|
18
|
+
"@theia/core": "1.77.0",
|
|
19
|
+
"@theia/plugin-ext": "1.77.0",
|
|
20
|
+
"@theia/terminal": "1.77.0",
|
|
11
21
|
"tslib": "^2.8.1"
|
|
12
22
|
},
|
|
13
23
|
"publishConfig": {
|
|
@@ -44,13 +54,12 @@
|
|
|
44
54
|
"watch": "theiaext watch"
|
|
45
55
|
},
|
|
46
56
|
"devDependencies": {
|
|
47
|
-
"@theia/ext-scripts": "1.
|
|
48
|
-
"@types/decompress": "^4.2.7",
|
|
57
|
+
"@theia/ext-scripts": "1.77.0",
|
|
49
58
|
"@types/escape-html": "^0.0.20",
|
|
50
59
|
"@types/lodash.clonedeep": "^4.5.9"
|
|
51
60
|
},
|
|
52
61
|
"nyc": {
|
|
53
62
|
"extends": "../../configs/nyc.json"
|
|
54
63
|
},
|
|
55
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "9c6d81590b559ee8a78a7808203674f3127411f1"
|
|
56
65
|
}
|
|
@@ -20,7 +20,7 @@ import { KeysToKeysToAnyValue } from '@theia/plugin-ext/lib/common/types';
|
|
|
20
20
|
import {
|
|
21
21
|
MAIN_RPC_CONTEXT, PLUGIN_RPC_CONTEXT
|
|
22
22
|
} from '@theia/plugin-ext/lib/common/plugin-api-rpc';
|
|
23
|
-
import { ExtPluginApi } from './plugin-ext-headless-api-contribution';
|
|
23
|
+
import { ExtPluginApi } from './plugin-ext-headless-api-contribution.js';
|
|
24
24
|
|
|
25
25
|
export const HEADLESSPLUGIN_RPC_CONTEXT = {
|
|
26
26
|
MESSAGE_REGISTRY_MAIN: PLUGIN_RPC_CONTEXT.MESSAGE_REGISTRY_MAIN,
|
package/src/common/index.ts
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './headless-plugin-container';
|
|
17
|
+
export * from './headless-plugin-container.js';
|
|
18
18
|
export {
|
|
19
19
|
ExtPluginApi, ExtPluginHeadlessApi, ExtPluginApiProvider,
|
|
20
20
|
ExtPluginHeadlessApiProvider
|
|
21
|
-
} from './plugin-ext-headless-api-contribution';
|
|
22
|
-
export { PluginPackage, SupportedHeadlessActivationEvents } from './headless-plugin-protocol';
|
|
23
|
-
export * from './headless-plugin-rpc';
|
|
21
|
+
} from './plugin-ext-headless-api-contribution.js';
|
|
22
|
+
export { PluginPackage, SupportedHeadlessActivationEvents } from './headless-plugin-protocol.js';
|
|
23
|
+
export * from './headless-plugin-rpc.js';
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
import { generateUuid } from '@theia/core/lib/common/uuid';
|
|
23
23
|
import { injectable, inject, named } from '@theia/core/shared/inversify';
|
|
24
24
|
import { getPluginId, DeployedPlugin, HostedPluginServer, PluginDeployer } from '@theia/plugin-ext/lib/common/plugin-protocol';
|
|
25
|
-
import { setUpPluginApi } from '../../main/node/main-context';
|
|
25
|
+
import { setUpPluginApi } from '../../main/node/main-context.js';
|
|
26
26
|
import { RPCProtocol, RPCProtocolImpl } from '@theia/plugin-ext/lib/common/rpc-protocol';
|
|
27
27
|
import { ContributionProvider, Disposable, DisposableCollection, ILogger, nls } from '@theia/core';
|
|
28
28
|
import { environment } from '@theia/core/shared/@theia/application-package/lib/environment';
|
|
@@ -30,10 +30,10 @@ import { IPCChannel } from '@theia/core/lib/node';
|
|
|
30
30
|
import { BackendApplicationConfigProvider } from '@theia/core/lib/node/backend-application-config-provider';
|
|
31
31
|
import { HostedPluginProcess } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin-process';
|
|
32
32
|
import { IShellTerminalServer } from '@theia/terminal/lib/common/shell-terminal-protocol';
|
|
33
|
-
import { HeadlessPluginManagerExt, HEADLESSMAIN_RPC_CONTEXT } from '../../common/headless-plugin-rpc';
|
|
33
|
+
import { HeadlessPluginManagerExt, HEADLESSMAIN_RPC_CONTEXT } from '../../common/headless-plugin-rpc.js';
|
|
34
34
|
import { AbstractHostedPluginSupport, PluginContributions } from '@theia/plugin-ext/lib/hosted/common/hosted-plugin';
|
|
35
|
-
import { TheiaHeadlessPluginScanner } from './scanners/scanner-theia-headless';
|
|
36
|
-
import { SupportedHeadlessActivationEvents } from '../../common/headless-plugin-protocol';
|
|
35
|
+
import { TheiaHeadlessPluginScanner } from './scanners/scanner-theia-headless.js';
|
|
36
|
+
import { SupportedHeadlessActivationEvents } from '../../common/headless-plugin-protocol.js';
|
|
37
37
|
import { PluginDeployerImpl } from '@theia/plugin-ext/lib/main/node/plugin-deployer-impl';
|
|
38
38
|
|
|
39
39
|
import URI from '@theia/core/lib/common/uri';
|
|
@@ -23,11 +23,11 @@ import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-pl
|
|
|
23
23
|
import { HostedPluginProcess, HostedPluginProcessConfiguration } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin-process';
|
|
24
24
|
import { BackendPluginHostableFilter } from '@theia/plugin-ext/lib/hosted/node/plugin-service';
|
|
25
25
|
import { MaybePromise } from '@theia/core';
|
|
26
|
-
import { HeadlessPluginContainerModule } from '../../common/headless-plugin-container';
|
|
27
|
-
import { HeadlessHostedPluginSupport, isHeadlessPlugin } from './headless-hosted-plugin';
|
|
28
|
-
import { TheiaHeadlessPluginScanner } from './scanners/scanner-theia-headless';
|
|
29
|
-
import { SupportedHeadlessActivationEvents } from '../../common/headless-plugin-protocol';
|
|
30
|
-
import { HeadlessHostedPluginServerImpl } from './headless-plugin-service';
|
|
26
|
+
import { HeadlessPluginContainerModule } from '../../common/headless-plugin-container.js';
|
|
27
|
+
import { HeadlessHostedPluginSupport, isHeadlessPlugin } from './headless-hosted-plugin.js';
|
|
28
|
+
import { TheiaHeadlessPluginScanner } from './scanners/scanner-theia-headless.js';
|
|
29
|
+
import { SupportedHeadlessActivationEvents } from '../../common/headless-plugin-protocol.js';
|
|
30
|
+
import { HeadlessHostedPluginServerImpl } from './headless-plugin-service.js';
|
|
31
31
|
|
|
32
32
|
export function bindCommonHostedBackend(bind: interfaces.Bind): void {
|
|
33
33
|
bind(HostedPluginProcess).toSelf().inSingletonScope();
|
|
@@ -43,7 +43,7 @@ export function bindCommonHostedBackend(bind: interfaces.Bind): void {
|
|
|
43
43
|
bind(BackendPluginHostableFilter).toConstantValue(isHeadlessPlugin);
|
|
44
44
|
|
|
45
45
|
bind(HostedPluginProcessConfiguration).toConstantValue({
|
|
46
|
-
path: path.join(
|
|
46
|
+
path: path.join(import.meta.dirname, 'plugin-host-headless'),
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -18,8 +18,8 @@ import { ContainerModule } from '@theia/core/shared/inversify';
|
|
|
18
18
|
import { RPCProtocol, RPCProtocolImpl } from '@theia/plugin-ext/lib/common/rpc-protocol';
|
|
19
19
|
import { AbstractPluginHostRPC, PluginContainerModuleLoader } from '@theia/plugin-ext/lib/hosted/node/plugin-host-rpc';
|
|
20
20
|
import { AbstractPluginManagerExtImpl, MinimalTerminalServiceExt } from '@theia/plugin-ext/lib/plugin/plugin-manager';
|
|
21
|
-
import { HeadlessPluginHostRPC } from './plugin-host-headless-rpc';
|
|
22
|
-
import { HeadlessPluginManagerExtImpl } from '../../plugin/headless-plugin-manager';
|
|
21
|
+
import { HeadlessPluginHostRPC } from './plugin-host-headless-rpc.js';
|
|
22
|
+
import { HeadlessPluginManagerExtImpl } from '../../plugin/headless-plugin-manager.js';
|
|
23
23
|
import { IPCChannel } from '@theia/core/lib/node';
|
|
24
24
|
import { InternalPluginContainerModule } from '@theia/plugin-ext/lib/plugin/node/plugin-container-module';
|
|
25
25
|
|
|
@@ -19,11 +19,11 @@ import { ContainerModule, injectable, inject } from '@theia/core/shared/inversif
|
|
|
19
19
|
import { EnvExtImpl } from '@theia/plugin-ext/lib/plugin/env';
|
|
20
20
|
import { LocalizationExt } from '@theia/plugin-ext';
|
|
21
21
|
import { LocalizationExtImpl } from '@theia/plugin-ext/lib/plugin/localization-ext';
|
|
22
|
-
import { HEADLESSMAIN_RPC_CONTEXT } from '../../common/headless-plugin-rpc';
|
|
23
|
-
import { HeadlessPluginManagerExtImpl } from '../../plugin/headless-plugin-manager';
|
|
22
|
+
import { HEADLESSMAIN_RPC_CONTEXT } from '../../common/headless-plugin-rpc.js';
|
|
23
|
+
import { HeadlessPluginManagerExtImpl } from '../../plugin/headless-plugin-manager.js';
|
|
24
24
|
import { AbstractPluginHostRPC, ExtInterfaces } from '@theia/plugin-ext/lib/hosted/node/plugin-host-rpc';
|
|
25
25
|
import { PluginModel } from '@theia/plugin-ext/lib/common/plugin-protocol';
|
|
26
|
-
import { ExtPluginApi, ExtPluginApiHeadlessInitializationFn } from '../../common/plugin-ext-headless-api-contribution';
|
|
26
|
+
import { ExtPluginApi, ExtPluginApiHeadlessInitializationFn } from '../../common/plugin-ext-headless-api-contribution.js';
|
|
27
27
|
|
|
28
28
|
type HeadlessExtInterfaces = Pick<ExtInterfaces, 'envExt' | 'localizationExt'>;
|
|
29
29
|
|
|
@@ -18,8 +18,8 @@ import { suppressNodeNavigator } from '@theia/plugin-ext/lib/hosted/node/plugin-
|
|
|
18
18
|
import { Container } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ConnectionClosedError, RPCProtocol } from '@theia/plugin-ext/lib/common/rpc-protocol';
|
|
20
20
|
import { ProcessTerminatedMessage, ProcessTerminateMessage } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin-protocol';
|
|
21
|
-
import { HeadlessPluginHostRPC } from './plugin-host-headless-rpc';
|
|
22
|
-
import pluginHostModule from './plugin-host-headless-module';
|
|
21
|
+
import { HeadlessPluginHostRPC } from './plugin-host-headless-rpc.js';
|
|
22
|
+
import pluginHostModule from './plugin-host-headless-module.js';
|
|
23
23
|
|
|
24
24
|
// Undefine globalThis.navigator unless opted in, see https://github.com/eclipse-theia/theia/issues/16233
|
|
25
25
|
suppressNodeNavigator();
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
18
|
-
import { bindCommonHostedBackend } from '../node/plugin-ext-headless-hosted-module';
|
|
18
|
+
import { bindCommonHostedBackend } from '../node/plugin-ext-headless-hosted-module.js';
|
|
19
19
|
|
|
20
20
|
export function bindElectronBackend(bind: interfaces.Bind): void {
|
|
21
21
|
bindCommonHostedBackend(bind);
|
package/src/index.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { EnvMainImpl } from '@theia/plugin-ext/lib/main/common/env-main';
|
|
|
19
19
|
import { BasicMessageRegistryMainImpl } from '@theia/plugin-ext/lib/main/common/basic-message-registry-main';
|
|
20
20
|
import { BasicNotificationMainImpl } from '@theia/plugin-ext/lib/main/common/basic-notification-main';
|
|
21
21
|
|
|
22
|
-
import { HEADLESSMAIN_RPC_CONTEXT, HEADLESSPLUGIN_RPC_CONTEXT } from '../../common/headless-plugin-rpc';
|
|
22
|
+
import { HEADLESSMAIN_RPC_CONTEXT, HEADLESSPLUGIN_RPC_CONTEXT } from '../../common/headless-plugin-rpc.js';
|
|
23
23
|
|
|
24
24
|
// This sets up only the minimal plugin API required by the plugin manager to report
|
|
25
25
|
// messages and notifications to the main side and to initialize plugins.
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
bindRootContributionProvider
|
|
22
22
|
} from '@theia/core';
|
|
23
23
|
import { MainPluginApiProvider, PluginDeployerDirectoryHandler } from '@theia/plugin-ext';
|
|
24
|
-
import { PluginTheiaHeadlessDirectoryHandler } from './handlers/plugin-theia-headless-directory-handler';
|
|
25
|
-
import { HeadlessProgressClient } from './headless-progress-client';
|
|
24
|
+
import { PluginTheiaHeadlessDirectoryHandler } from './handlers/plugin-theia-headless-directory-handler.js';
|
|
25
|
+
import { HeadlessProgressClient } from './headless-progress-client.js';
|
|
26
26
|
|
|
27
27
|
export function bindHeadlessMain(bind: interfaces.Bind): void {
|
|
28
28
|
bind(PluginDeployerDirectoryHandler).to(PluginTheiaHeadlessDirectoryHandler).inSingletonScope();
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { AbstractPluginManagerExtImpl } from '@theia/plugin-ext/lib/plugin/plugin-manager';
|
|
19
|
-
import { HeadlessPluginManagerExt, HeadlessPluginManagerInitializeParams } from '../common/headless-plugin-rpc';
|
|
19
|
+
import { HeadlessPluginManagerExt, HeadlessPluginManagerInitializeParams } from '../common/headless-plugin-rpc.js';
|
|
20
20
|
import { Plugin } from '@theia/plugin-ext';
|
|
21
21
|
|
|
22
22
|
@injectable()
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { HeadlessPluginContainerModule } from './common/headless-plugin-container';
|
|
19
|
-
import { bindElectronBackend } from './hosted/node-electron/plugin-ext-headless-hosted-electron-module';
|
|
20
|
-
import { bindHeadlessMain, bindBackendMain } from './main/node/plugin-ext-headless-main-module';
|
|
21
|
-
import { bindHeadlessHosted } from './hosted/node/plugin-ext-headless-hosted-module';
|
|
18
|
+
import { HeadlessPluginContainerModule } from './common/headless-plugin-container.js';
|
|
19
|
+
import { bindElectronBackend } from './hosted/node-electron/plugin-ext-headless-hosted-electron-module.js';
|
|
20
|
+
import { bindHeadlessMain, bindBackendMain } from './main/node/plugin-ext-headless-main-module.js';
|
|
21
|
+
import { bindHeadlessHosted } from './hosted/node/plugin-ext-headless-hosted-module.js';
|
|
22
22
|
|
|
23
23
|
const backendElectronModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
24
24
|
bindBackendMain(bind, unbind, isBound, rebind);
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { HeadlessPluginContainerModule } from './common/headless-plugin-container';
|
|
19
|
-
import { bindHeadlessHosted, bindCommonHostedBackend } from './hosted/node/plugin-ext-headless-hosted-module';
|
|
20
|
-
import { bindHeadlessMain, bindBackendMain } from './main/node/plugin-ext-headless-main-module';
|
|
18
|
+
import { HeadlessPluginContainerModule } from './common/headless-plugin-container.js';
|
|
19
|
+
import { bindHeadlessHosted, bindCommonHostedBackend } from './hosted/node/plugin-ext-headless-hosted-module.js';
|
|
20
|
+
import { bindHeadlessMain, bindBackendMain } from './main/node/plugin-ext-headless-main-module.js';
|
|
21
21
|
|
|
22
22
|
const backendModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
23
23
|
bindBackendMain(bind, unbind, isBound, rebind);
|