@theia/plugin-ext-headless 1.52.0 → 1.53.0-next.5
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/hosted/node/headless-plugin-service.d.ts +5 -0
- package/lib/hosted/node/headless-plugin-service.d.ts.map +1 -0
- package/lib/hosted/node/headless-plugin-service.js +31 -0
- package/lib/hosted/node/headless-plugin-service.js.map +1 -0
- package/lib/hosted/node/plugin-ext-headless-hosted-module.d.ts.map +1 -1
- package/lib/hosted/node/plugin-ext-headless-hosted-module.js +3 -2
- package/lib/hosted/node/plugin-ext-headless-hosted-module.js.map +1 -1
- package/package.json +5 -5
- package/src/hosted/node/headless-plugin-service.ts +25 -0
- package/src/hosted/node/plugin-ext-headless-hosted-module.ts +4 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HostedPluginServerImpl } from '@theia/plugin-ext/lib/hosted/node/plugin-service';
|
|
2
|
+
export declare class HeadlessHostedPluginServerImpl extends HostedPluginServerImpl {
|
|
3
|
+
protected getServerName(): string;
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=headless-plugin-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headless-plugin-service.d.ts","sourceRoot":"","sources":["../../../src/hosted/node/headless-plugin-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAE1F,qBACa,8BAA+B,SAAQ,sBAAsB;cACnD,aAAa,IAAI,MAAM;CAG7C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2024 EclipseSource 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-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.HeadlessHostedPluginServerImpl = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const plugin_service_1 = require("@theia/plugin-ext/lib/hosted/node/plugin-service");
|
|
22
|
+
let HeadlessHostedPluginServerImpl = class HeadlessHostedPluginServerImpl extends plugin_service_1.HostedPluginServerImpl {
|
|
23
|
+
getServerName() {
|
|
24
|
+
return 'headless-hosted-plugin';
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.HeadlessHostedPluginServerImpl = HeadlessHostedPluginServerImpl;
|
|
28
|
+
exports.HeadlessHostedPluginServerImpl = HeadlessHostedPluginServerImpl = tslib_1.__decorate([
|
|
29
|
+
(0, inversify_1.injectable)()
|
|
30
|
+
], HeadlessHostedPluginServerImpl);
|
|
31
|
+
//# sourceMappingURL=headless-plugin-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headless-plugin-service.js","sourceRoot":"","sources":["../../../src/hosted/node/headless-plugin-service.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,4DAA0D;AAC1D,qFAA0F;AAGnF,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,uCAAsB;IACnD,aAAa;QAC5B,OAAO,wBAAwB,CAAC;IACpC,CAAC;CACJ,CAAA;AAJY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CAI1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-ext-headless-hosted-module.d.ts","sourceRoot":"","sources":["../../../src/hosted/node/plugin-ext-headless-hosted-module.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAmB,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin-ext-headless-hosted-module.d.ts","sourceRoot":"","sources":["../../../src/hosted/node/plugin-ext-headless-hosted-module.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAmB,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAY3E,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAgBnE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CA0B9D"}
|
|
@@ -27,14 +27,15 @@ const headless_plugin_container_1 = require("../../common/headless-plugin-contai
|
|
|
27
27
|
const headless_hosted_plugin_1 = require("./headless-hosted-plugin");
|
|
28
28
|
const scanner_theia_headless_1 = require("./scanners/scanner-theia-headless");
|
|
29
29
|
const headless_plugin_protocol_1 = require("../../common/headless-plugin-protocol");
|
|
30
|
+
const headless_plugin_service_1 = require("./headless-plugin-service");
|
|
30
31
|
function bindCommonHostedBackend(bind) {
|
|
31
32
|
bind(hosted_plugin_process_1.HostedPluginProcess).toSelf().inSingletonScope();
|
|
32
33
|
bind(hosted_plugin_1.HostedPluginSupport).toSelf().inSingletonScope();
|
|
33
34
|
(0, contribution_provider_1.bindContributionProvider)(bind, Symbol.for(plugin_ext_1.ExtPluginApiProvider));
|
|
34
35
|
(0, contribution_provider_1.bindContributionProvider)(bind, plugin_ext_1.PluginHostEnvironmentVariable);
|
|
35
36
|
(0, contribution_provider_1.bindContributionProvider)(bind, headless_plugin_protocol_1.SupportedHeadlessActivationEvents);
|
|
36
|
-
bind(
|
|
37
|
-
bind(plugin_ext_1.HostedPluginServer).toService(
|
|
37
|
+
bind(headless_plugin_service_1.HeadlessHostedPluginServerImpl).toSelf().inSingletonScope();
|
|
38
|
+
bind(plugin_ext_1.HostedPluginServer).toService(headless_plugin_service_1.HeadlessHostedPluginServerImpl);
|
|
38
39
|
bind(headless_hosted_plugin_1.HeadlessHostedPluginSupport).toSelf().inSingletonScope();
|
|
39
40
|
bind(plugin_service_1.BackendPluginHostableFilter).toConstantValue(headless_hosted_plugin_1.isHeadlessPlugin);
|
|
40
41
|
bind(hosted_plugin_process_1.HostedPluginProcessConfiguration).toConstantValue({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-ext-headless-hosted-module.js","sourceRoot":"","sources":["../../../src/hosted/node/plugin-ext-headless-hosted-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,6BAA6B;AAC7B,wFAAwF;AACxF,+CAAsE;AAEtE,kDAA2H;AAC3H,mFAAsF;AACtF,mGAAgI;AAChI,
|
|
1
|
+
{"version":3,"file":"plugin-ext-headless-hosted-module.js","sourceRoot":"","sources":["../../../src/hosted/node/plugin-ext-headless-hosted-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC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,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,0BAAa,CAAC,CAAC,SAAS,CAAC,mDAA0B,CAAC,CAAC;IAC1D,IAAI,CAAC,4DAAiC,CAAC,CAAC,eAAe,CAAC,CAAC,GAAG,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAEpF,IAAI,CAAC,qCAA8B,CAAC,CAAC,cAAc,CAAC,CAAC,EAAC,SAAS,EAAC,EAAE,EAAE;QAChE,IAAI,mBAA4D,CAAC;QAEjE,OAAO;YACH,OAAO;gBACH,wEAAwE;gBACxE,+DAA+D;gBAC/D,2DAA2D;gBAC3D,MAAM,wBAAwB,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;gBACzD,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,CAAkB,yDAA6B,CAAC,CAAC;gBACjF,wBAAwB,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;gBAE1C,mBAAmB,GAAG,wBAAwB,CAAC,GAAG,CAAC,oDAA2B,CAAC,CAAC;gBAChF,mBAAmB,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;YAC1D,CAAC;YAED,MAAM;gBACF,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,QAAQ,EAAE,CAAC;YACpC,CAAC;SACJ,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AA1BD,gDA0BC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext-headless",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.0-next.5+1e5fb536d",
|
|
4
4
|
"description": "Theia - Headless (Backend-only) Plugin Extension",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@theia/core": "1.
|
|
9
|
-
"@theia/plugin-ext": "1.
|
|
10
|
-
"@theia/terminal": "1.
|
|
8
|
+
"@theia/core": "1.53.0-next.5+1e5fb536d",
|
|
9
|
+
"@theia/plugin-ext": "1.53.0-next.5+1e5fb536d",
|
|
10
|
+
"@theia/terminal": "1.53.0-next.5+1e5fb536d",
|
|
11
11
|
"tslib": "^2.6.2"
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"nyc": {
|
|
54
54
|
"extends": "../../configs/nyc.json"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "1e5fb536d65550ad8fa0fefcec731645b2afc74a"
|
|
57
57
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2024 EclipseSource 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-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { HostedPluginServerImpl } from '@theia/plugin-ext/lib/hosted/node/plugin-service';
|
|
19
|
+
|
|
20
|
+
@injectable()
|
|
21
|
+
export class HeadlessHostedPluginServerImpl extends HostedPluginServerImpl {
|
|
22
|
+
protected override getServerName(): string {
|
|
23
|
+
return 'headless-hosted-plugin';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -21,12 +21,13 @@ import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
|
|
|
21
21
|
import { ExtPluginApiProvider, HostedPluginServer, PluginHostEnvironmentVariable, PluginScanner } from '@theia/plugin-ext';
|
|
22
22
|
import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin';
|
|
23
23
|
import { HostedPluginProcess, HostedPluginProcessConfiguration } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin-process';
|
|
24
|
-
import { BackendPluginHostableFilter
|
|
24
|
+
import { BackendPluginHostableFilter } from '@theia/plugin-ext/lib/hosted/node/plugin-service';
|
|
25
25
|
import { MaybePromise } from '@theia/core';
|
|
26
26
|
import { HeadlessPluginContainerModule } from '../../common/headless-plugin-container';
|
|
27
27
|
import { HeadlessHostedPluginSupport, isHeadlessPlugin } from './headless-hosted-plugin';
|
|
28
28
|
import { TheiaHeadlessPluginScanner } from './scanners/scanner-theia-headless';
|
|
29
29
|
import { SupportedHeadlessActivationEvents } from '../../common/headless-plugin-protocol';
|
|
30
|
+
import { HeadlessHostedPluginServerImpl } from './headless-plugin-service';
|
|
30
31
|
|
|
31
32
|
export function bindCommonHostedBackend(bind: interfaces.Bind): void {
|
|
32
33
|
bind(HostedPluginProcess).toSelf().inSingletonScope();
|
|
@@ -36,8 +37,8 @@ export function bindCommonHostedBackend(bind: interfaces.Bind): void {
|
|
|
36
37
|
bindContributionProvider(bind, PluginHostEnvironmentVariable);
|
|
37
38
|
bindContributionProvider(bind, SupportedHeadlessActivationEvents);
|
|
38
39
|
|
|
39
|
-
bind(
|
|
40
|
-
bind(HostedPluginServer).toService(
|
|
40
|
+
bind(HeadlessHostedPluginServerImpl).toSelf().inSingletonScope();
|
|
41
|
+
bind(HostedPluginServer).toService(HeadlessHostedPluginServerImpl);
|
|
41
42
|
bind(HeadlessHostedPluginSupport).toSelf().inSingletonScope();
|
|
42
43
|
bind(BackendPluginHostableFilter).toConstantValue(isHeadlessPlugin);
|
|
43
44
|
|