@theia/plugin-dev 1.77.0-next.1 → 1.77.0-next.101
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/browser/hosted-plugin-controller.d.ts +4 -4
- package/lib/browser/hosted-plugin-controller.d.ts.map +1 -1
- package/lib/browser/hosted-plugin-controller.js +83 -96
- package/lib/browser/hosted-plugin-controller.js.map +1 -1
- package/lib/browser/hosted-plugin-frontend-contribution.d.ts +1 -1
- package/lib/browser/hosted-plugin-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/hosted-plugin-frontend-contribution.js +13 -17
- package/lib/browser/hosted-plugin-frontend-contribution.js.map +1 -1
- package/lib/browser/hosted-plugin-informer.d.ts +1 -1
- package/lib/browser/hosted-plugin-informer.d.ts.map +1 -1
- package/lib/browser/hosted-plugin-informer.js +29 -38
- package/lib/browser/hosted-plugin-informer.js.map +1 -1
- package/lib/browser/hosted-plugin-log-viewer.js +16 -25
- package/lib/browser/hosted-plugin-log-viewer.js.map +1 -1
- package/lib/browser/hosted-plugin-manager-client.d.ts +2 -2
- package/lib/browser/hosted-plugin-manager-client.d.ts.map +1 -1
- package/lib/browser/hosted-plugin-manager-client.js +74 -90
- package/lib/browser/hosted-plugin-manager-client.js.map +1 -1
- package/lib/browser/plugin-dev-frontend-module.js +23 -25
- package/lib/browser/plugin-dev-frontend-module.js.map +1 -1
- package/lib/common/hosted-plugin-preferences.d.ts +1 -1
- package/lib/common/hosted-plugin-preferences.d.ts.map +1 -1
- package/lib/common/hosted-plugin-preferences.js +19 -24
- package/lib/common/hosted-plugin-preferences.js.map +1 -1
- package/lib/common/index.d.ts +2 -2
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +2 -5
- package/lib/common/index.js.map +1 -1
- package/lib/common/plugin-dev-protocol.js +2 -5
- package/lib/common/plugin-dev-protocol.js.map +1 -1
- package/lib/node/hosted-instance-manager.d.ts +2 -2
- package/lib/node/hosted-instance-manager.d.ts.map +1 -1
- package/lib/node/hosted-instance-manager.js +55 -65
- package/lib/node/hosted-instance-manager.js.map +1 -1
- package/lib/node/hosted-plugin-reader.js +15 -20
- package/lib/node/hosted-plugin-reader.js.map +1 -1
- package/lib/node/hosted-plugin-uri-postprocessor.js +1 -4
- package/lib/node/hosted-plugin-uri-postprocessor.js.map +1 -1
- package/lib/node/hosted-plugins-manager.js +23 -29
- package/lib/node/hosted-plugins-manager.js.map +1 -1
- package/lib/node/plugin-dev-backend-module.js +27 -30
- package/lib/node/plugin-dev-backend-module.js.map +1 -1
- package/lib/node/plugin-dev-service.d.ts +3 -3
- package/lib/node/plugin-dev-service.d.ts.map +1 -1
- package/lib/node/plugin-dev-service.js +21 -28
- package/lib/node/plugin-dev-service.js.map +1 -1
- package/lib/node-electron/plugin-dev-electron-backend-module.js +9 -11
- package/lib/node-electron/plugin-dev-electron-backend-module.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -0
- package/package.json +18 -8
- package/src/browser/hosted-plugin-controller.ts +4 -4
- package/src/browser/hosted-plugin-frontend-contribution.ts +1 -1
- package/src/browser/hosted-plugin-informer.ts +1 -1
- package/src/browser/hosted-plugin-manager-client.ts +2 -2
- package/src/browser/plugin-dev-frontend-module.ts +7 -7
- package/src/common/hosted-plugin-preferences.ts +1 -1
- package/src/common/index.ts +2 -2
- package/src/node/hosted-instance-manager.ts +2 -2
- package/src/node/plugin-dev-backend-module.ts +7 -7
- package/src/node/plugin-dev-service.ts +4 -4
- package/src/node-electron/plugin-dev-electron-backend-module.ts +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
3
|
//
|
|
@@ -14,31 +13,29 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
const process_utils_1 = require("@theia/core/lib/node/process-utils");
|
|
28
|
-
exports.HostedPluginsManager = Symbol('HostedPluginsManager');
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import * as cp from 'child_process';
|
|
19
|
+
import * as fs from '@theia/core/shared/fs-extra';
|
|
20
|
+
import * as path from 'path';
|
|
21
|
+
import { FileUri } from '@theia/core/lib/node';
|
|
22
|
+
import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin';
|
|
23
|
+
import { LogType } from '@theia/plugin-ext/lib/common/types';
|
|
24
|
+
import { ProcessUtils } from '@theia/core/lib/node/process-utils';
|
|
25
|
+
export const HostedPluginsManager = Symbol('HostedPluginsManager');
|
|
29
26
|
let HostedPluginsManagerImpl = class HostedPluginsManagerImpl {
|
|
30
27
|
constructor() {
|
|
31
28
|
this.watchCompilationRegistry = new Map();
|
|
32
29
|
}
|
|
33
30
|
runWatchCompilation(uri) {
|
|
34
|
-
const pluginRootPath =
|
|
31
|
+
const pluginRootPath = FileUri.fsPath(uri);
|
|
35
32
|
if (this.watchCompilationRegistry.has(pluginRootPath)) {
|
|
36
33
|
throw new Error('Watcher is already running in ' + pluginRootPath);
|
|
37
34
|
}
|
|
38
35
|
if (!this.checkWatchScript(pluginRootPath)) {
|
|
39
36
|
this.hostedPluginSupport.sendLog({
|
|
40
37
|
data: 'Plugin in ' + uri + ' doesn\'t have watch script',
|
|
41
|
-
type:
|
|
38
|
+
type: LogType.Error
|
|
42
39
|
});
|
|
43
40
|
throw new Error('Watch script doesn\'t exist in ' + pluginRootPath + 'package.json');
|
|
44
41
|
}
|
|
@@ -48,7 +45,7 @@ let HostedPluginsManagerImpl = class HostedPluginsManagerImpl {
|
|
|
48
45
|
this.processUtils.terminateProcessTree(parentPid);
|
|
49
46
|
}
|
|
50
47
|
stopWatchCompilation(uri) {
|
|
51
|
-
const pluginPath =
|
|
48
|
+
const pluginPath = FileUri.fsPath(uri);
|
|
52
49
|
const watchProcess = this.watchCompilationRegistry.get(pluginPath);
|
|
53
50
|
if (!watchProcess) {
|
|
54
51
|
throw new Error('Watcher is not running in ' + pluginPath);
|
|
@@ -57,7 +54,7 @@ let HostedPluginsManagerImpl = class HostedPluginsManagerImpl {
|
|
|
57
54
|
return Promise.resolve();
|
|
58
55
|
}
|
|
59
56
|
isWatchCompilationRunning(uri) {
|
|
60
|
-
const pluginPath =
|
|
57
|
+
const pluginPath = FileUri.fsPath(uri);
|
|
61
58
|
return new Promise(resolve => resolve(this.watchCompilationRegistry.has(pluginPath)));
|
|
62
59
|
}
|
|
63
60
|
runWatchScript(pluginRootPath) {
|
|
@@ -66,7 +63,7 @@ let HostedPluginsManagerImpl = class HostedPluginsManagerImpl {
|
|
|
66
63
|
this.watchCompilationRegistry.set(pluginRootPath, watchProcess);
|
|
67
64
|
this.hostedPluginSupport.sendLog({
|
|
68
65
|
data: 'Compilation watcher has been started in ' + pluginRootPath,
|
|
69
|
-
type:
|
|
66
|
+
type: LogType.Info
|
|
70
67
|
});
|
|
71
68
|
return Promise.resolve();
|
|
72
69
|
}
|
|
@@ -74,7 +71,7 @@ let HostedPluginsManagerImpl = class HostedPluginsManagerImpl {
|
|
|
74
71
|
this.watchCompilationRegistry.delete(pluginRootPath);
|
|
75
72
|
this.hostedPluginSupport.sendLog({
|
|
76
73
|
data: 'Compilation watcher has been stopped in ' + pluginRootPath,
|
|
77
|
-
type:
|
|
74
|
+
type: LogType.Info
|
|
78
75
|
});
|
|
79
76
|
}
|
|
80
77
|
/**
|
|
@@ -95,17 +92,14 @@ let HostedPluginsManagerImpl = class HostedPluginsManagerImpl {
|
|
|
95
92
|
return false;
|
|
96
93
|
}
|
|
97
94
|
};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(0, inversify_1.inject)(hosted_plugin_1.HostedPluginSupport),
|
|
101
|
-
tslib_1.__metadata("design:type", hosted_plugin_1.HostedPluginSupport)
|
|
95
|
+
__decorate([
|
|
96
|
+
inject(HostedPluginSupport)
|
|
102
97
|
], HostedPluginsManagerImpl.prototype, "hostedPluginSupport", void 0);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
tslib_1.__metadata("design:type", process_utils_1.ProcessUtils)
|
|
98
|
+
__decorate([
|
|
99
|
+
inject(ProcessUtils)
|
|
106
100
|
], HostedPluginsManagerImpl.prototype, "processUtils", void 0);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
101
|
+
HostedPluginsManagerImpl = __decorate([
|
|
102
|
+
injectable()
|
|
110
103
|
], HostedPluginsManagerImpl);
|
|
104
|
+
export { HostedPluginsManagerImpl };
|
|
111
105
|
//# sourceMappingURL=hosted-plugins-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-plugins-manager.js","sourceRoot":"","sources":["../../src/node/hosted-plugins-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hosted-plugins-manager.js","sourceRoot":"","sources":["../../src/node/hosted-plugins-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,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAClD,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;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IAAI,EAAE,0CAA0C,GAAG,cAAc;YACjE,IAAI,EAAE,OAAO,CAAC,IAAI;SACrB,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,gBAAgB,CAAC,UAAkB;QAC/C,MAAM,qBAAqB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,IAAI,CAAC;YACD,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;YAC7D,MAAM,OAAO,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;YACvC,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC9B,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;QAAC,MAAM,CAAC,CAAC,CAAC;QACX,OAAO,KAAK,CAAC;IACjB,CAAC;CAEJ,CAAA;AAxFsB;IADlB,MAAM,CAAC,mBAAmB,CAAC;qEACgC;AAGzC;IADlB,MAAM,CAAC,YAAY,CAAC;8DACyB;AANrC,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CA2FpC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2019 Red Hat, Inc. and others.
|
|
4
3
|
//
|
|
@@ -14,42 +13,40 @@
|
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
bind(
|
|
32
|
-
bind(
|
|
33
|
-
|
|
34
|
-
bind(plugin_dev_protocol_1.PluginDevServer).toService(plugin_dev_service_1.PluginDevServerImpl);
|
|
35
|
-
bindBackendService(plugin_dev_protocol_1.pluginDevServicePath, plugin_dev_protocol_1.PluginDevServer, (server, client) => {
|
|
16
|
+
import { HostedInstanceManager, NodeHostedPluginRunner } from './hosted-instance-manager.js';
|
|
17
|
+
import { HostedPluginUriPostProcessorSymbolName } from './hosted-plugin-uri-postprocessor.js';
|
|
18
|
+
import { HostedPluginsManager, HostedPluginsManagerImpl } from './hosted-plugins-manager.js';
|
|
19
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
20
|
+
import { ConnectionContainerModule } from '@theia/core/lib/node/messaging/connection-container-module';
|
|
21
|
+
import { bindContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
22
|
+
import { PluginDevServerImpl } from './plugin-dev-service.js';
|
|
23
|
+
import { PluginDevServer, pluginDevServicePath } from '../common/plugin-dev-protocol.js';
|
|
24
|
+
import { HostedPluginReader } from './hosted-plugin-reader.js';
|
|
25
|
+
import { BackendApplicationContribution } from '@theia/core/lib/node/backend-application';
|
|
26
|
+
import { bindHostedPluginPreferences } from '../common/hosted-plugin-preferences.js';
|
|
27
|
+
const commonHostedConnectionModule = ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
28
|
+
bind(HostedPluginsManagerImpl).toSelf().inSingletonScope();
|
|
29
|
+
bind(HostedPluginsManager).toService(HostedPluginsManagerImpl);
|
|
30
|
+
bind(PluginDevServerImpl).toSelf().inSingletonScope();
|
|
31
|
+
bind(PluginDevServer).toService(PluginDevServerImpl);
|
|
32
|
+
bindBackendService(pluginDevServicePath, PluginDevServer, (server, client) => {
|
|
36
33
|
server.setClient(client);
|
|
37
34
|
client.onDidCloseConnection(() => server.dispose());
|
|
38
35
|
return server;
|
|
39
36
|
});
|
|
40
37
|
});
|
|
41
|
-
function bindCommonHostedBackend(bind) {
|
|
42
|
-
bind(
|
|
43
|
-
bind(
|
|
44
|
-
bind(
|
|
38
|
+
export function bindCommonHostedBackend(bind) {
|
|
39
|
+
bind(HostedPluginReader).toSelf().inSingletonScope();
|
|
40
|
+
bind(BackendApplicationContribution).toService(HostedPluginReader);
|
|
41
|
+
bind(ConnectionContainerModule).toConstantValue(commonHostedConnectionModule);
|
|
45
42
|
}
|
|
46
|
-
const hostedBackendConnectionModule =
|
|
47
|
-
|
|
48
|
-
bind(
|
|
43
|
+
const hostedBackendConnectionModule = ConnectionContainerModule.create(({ bind }) => {
|
|
44
|
+
bindContributionProvider(bind, Symbol.for(HostedPluginUriPostProcessorSymbolName));
|
|
45
|
+
bind(HostedInstanceManager).to(NodeHostedPluginRunner).inSingletonScope();
|
|
49
46
|
});
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
export default new ContainerModule(bind => {
|
|
48
|
+
bindHostedPluginPreferences(bind);
|
|
52
49
|
bindCommonHostedBackend(bind);
|
|
53
|
-
bind(
|
|
50
|
+
bind(ConnectionContainerModule).toConstantValue(hostedBackendConnectionModule);
|
|
54
51
|
});
|
|
55
52
|
//# sourceMappingURL=plugin-dev-backend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-dev-backend-module.js","sourceRoot":"","sources":["../../src/node/plugin-dev-backend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-dev-backend-module.js","sourceRoot":"","sources":["../../src/node/plugin-dev-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,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC7F,OAAO,EAAE,sCAAsC,EAAE,MAAM,sCAAsC,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EA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AkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACrD,IAAI,CAAC,8BAA8B,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;IACnE,IAAI,CAAC,yBAAyB,CAAC,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChF,wBAAwB,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC,CAAC;IACnF,IAAI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC9E,CAAC,CAAC,CAAC;AAEH,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAClC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,CAAC,yBAAyB,CAAC,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACnF,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PluginDebugConfiguration, PluginDevServer, PluginDevClient } from '../common/plugin-dev-protocol';
|
|
2
|
-
import { HostedInstanceManager } from './hosted-instance-manager';
|
|
1
|
+
import { PluginDebugConfiguration, PluginDevServer, PluginDevClient } from '../common/plugin-dev-protocol.js';
|
|
2
|
+
import { HostedInstanceManager } from './hosted-instance-manager.js';
|
|
3
3
|
import { PluginMetadata } from '@theia/plugin-ext/lib/common/plugin-protocol';
|
|
4
4
|
import URI from '@theia/core/lib/common/uri';
|
|
5
|
-
import { HostedPluginsManager } from './hosted-plugins-manager';
|
|
5
|
+
import { HostedPluginsManager } from './hosted-plugins-manager.js';
|
|
6
6
|
export declare class PluginDevServerImpl implements PluginDevServer {
|
|
7
7
|
protected readonly hostedPluginsManager: HostedPluginsManager;
|
|
8
8
|
protected readonly hostedInstanceManager: HostedInstanceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-dev-service.d.ts","sourceRoot":"","sources":["../../src/node/plugin-dev-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"plugin-dev-service.d.ts","sourceRoot":"","sources":["../../src/node/plugin-dev-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAE9G,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,qBACa,mBAAoB,YAAW,eAAe;IAGvD,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAG9D,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAGhE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAG5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAEnD,OAAO,IAAI,IAAI;IAMf,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;IAIlC,eAAe,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAQ5D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI5C,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjG,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC;IAK9C,6BAA6B,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjD,0BAA0B,IAAI,OAAO,CAAC,MAAM,CAAC;IAI7C,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIrC,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAQjE,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjD,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAG5D"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2019 Red Hat, Inc. and others.
|
|
4
3
|
//
|
|
@@ -14,15 +13,13 @@
|
|
|
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
|
-
|
|
24
|
-
const hosted_plugins_manager_1 = require("./hosted-plugins-manager");
|
|
25
|
-
const hosted_plugin_1 = require("@theia/plugin-ext/lib/hosted/node/hosted-plugin");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
|
+
import { HostedInstanceManager } from './hosted-instance-manager.js';
|
|
19
|
+
import URI from '@theia/core/lib/common/uri';
|
|
20
|
+
import { HostedPluginReader } from './hosted-plugin-reader.js';
|
|
21
|
+
import { HostedPluginsManager } from './hosted-plugins-manager.js';
|
|
22
|
+
import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin';
|
|
26
23
|
let PluginDevServerImpl = class PluginDevServerImpl {
|
|
27
24
|
dispose() {
|
|
28
25
|
// Terminate the hosted instance if it is currently running.
|
|
@@ -40,13 +37,13 @@ let PluginDevServerImpl = class PluginDevServerImpl {
|
|
|
40
37
|
return Promise.resolve(this.reader.getPlugin());
|
|
41
38
|
}
|
|
42
39
|
isPluginValid(uri) {
|
|
43
|
-
return Promise.resolve(this.hostedInstanceManager.isPluginValid(new
|
|
40
|
+
return Promise.resolve(this.hostedInstanceManager.isPluginValid(new URI(uri)));
|
|
44
41
|
}
|
|
45
42
|
runHostedPluginInstance(uri) {
|
|
46
|
-
return this.uriToStrPromise(this.hostedInstanceManager.run(new
|
|
43
|
+
return this.uriToStrPromise(this.hostedInstanceManager.run(new URI(uri)));
|
|
47
44
|
}
|
|
48
45
|
runDebugHostedPluginInstance(uri, debugConfig) {
|
|
49
|
-
return this.uriToStrPromise(this.hostedInstanceManager.debug(new
|
|
46
|
+
return this.uriToStrPromise(this.hostedInstanceManager.debug(new URI(uri), debugConfig));
|
|
50
47
|
}
|
|
51
48
|
terminateHostedPluginInstance() {
|
|
52
49
|
this.hostedInstanceManager.terminate();
|
|
@@ -78,24 +75,20 @@ let PluginDevServerImpl = class PluginDevServerImpl {
|
|
|
78
75
|
return this.hostedPluginsManager.isWatchCompilationRunning(path);
|
|
79
76
|
}
|
|
80
77
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
(0, inversify_1.inject)(hosted_plugins_manager_1.HostedPluginsManager),
|
|
84
|
-
tslib_1.__metadata("design:type", Object)
|
|
78
|
+
__decorate([
|
|
79
|
+
inject(HostedPluginsManager)
|
|
85
80
|
], PluginDevServerImpl.prototype, "hostedPluginsManager", void 0);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
tslib_1.__metadata("design:type", Object)
|
|
81
|
+
__decorate([
|
|
82
|
+
inject(HostedInstanceManager)
|
|
89
83
|
], PluginDevServerImpl.prototype, "hostedInstanceManager", void 0);
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
tslib_1.__metadata("design:type", hosted_plugin_reader_1.HostedPluginReader)
|
|
84
|
+
__decorate([
|
|
85
|
+
inject(HostedPluginReader)
|
|
93
86
|
], PluginDevServerImpl.prototype, "reader", void 0);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
tslib_1.__metadata("design:type", hosted_plugin_1.HostedPluginSupport)
|
|
87
|
+
__decorate([
|
|
88
|
+
inject(HostedPluginSupport)
|
|
97
89
|
], PluginDevServerImpl.prototype, "hostedPlugin", void 0);
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
PluginDevServerImpl = __decorate([
|
|
91
|
+
injectable()
|
|
100
92
|
], PluginDevServerImpl);
|
|
93
|
+
export { PluginDevServerImpl };
|
|
101
94
|
//# sourceMappingURL=plugin-dev-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-dev-service.js","sourceRoot":"","sources":["../../src/node/plugin-dev-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-dev-service.js","sourceRoot":"","sources":["../../src/node/plugin-dev-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;;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,M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EAAE;GACA,mBAAmB,CAgF/B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2019 Red Hat, Inc. and others.
|
|
4
3
|
//
|
|
@@ -14,16 +13,15 @@
|
|
|
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
|
-
bind(hosted_instance_manager_1.HostedInstanceManager).to(hosted_instance_manager_1.ElectronNodeHostedPluginRunner);
|
|
16
|
+
import { HostedInstanceManager, ElectronNodeHostedPluginRunner } from '../node/hosted-instance-manager.js';
|
|
17
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
+
import { ConnectionContainerModule } from '@theia/core/lib/node/messaging/connection-container-module';
|
|
19
|
+
import { bindCommonHostedBackend } from '../node/plugin-dev-backend-module.js';
|
|
20
|
+
const hostedBackendConnectionModule = ConnectionContainerModule.create(({ bind }) => {
|
|
21
|
+
bind(HostedInstanceManager).to(ElectronNodeHostedPluginRunner);
|
|
24
22
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
bind(
|
|
23
|
+
export default new ContainerModule(bind => {
|
|
24
|
+
bindCommonHostedBackend(bind);
|
|
25
|
+
bind(ConnectionContainerModule).toConstantValue(hostedBackendConnectionModule);
|
|
28
26
|
});
|
|
29
27
|
//# sourceMappingURL=plugin-dev-electron-backend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-dev-electron-backend-module.js","sourceRoot":"","sources":["../../src/node-electron/plugin-dev-electron-backend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-dev-electron-backend-module.js","sourceRoot":"","sources":["../../src/node-electron/plugin-dev-electron-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,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChF,IAAI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,8BAA8B,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC;AAEH,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,CAAC,yBAAyB,CAAC,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACnF,CAAC,CAAC,CAAC"}
|
package/lib/package.spec.d.ts
CHANGED
package/lib/package.spec.js
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-dev",
|
|
3
|
-
"version": "1.77.0-next.
|
|
3
|
+
"version": "1.77.0-next.101+8308c936b",
|
|
4
4
|
"description": "Theia - Plugin Development 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-next.
|
|
9
|
-
"@theia/debug": "1.77.0-next.
|
|
10
|
-
"@theia/filesystem": "1.77.0-next.
|
|
11
|
-
"@theia/output": "1.77.0-next.
|
|
12
|
-
"@theia/plugin-ext": "1.77.0-next.
|
|
13
|
-
"@theia/workspace": "1.77.0-next.
|
|
18
|
+
"@theia/core": "1.77.0-next.101+8308c936b",
|
|
19
|
+
"@theia/debug": "1.77.0-next.101+8308c936b",
|
|
20
|
+
"@theia/filesystem": "1.77.0-next.101+8308c936b",
|
|
21
|
+
"@theia/output": "1.77.0-next.101+8308c936b",
|
|
22
|
+
"@theia/plugin-ext": "1.77.0-next.101+8308c936b",
|
|
23
|
+
"@theia/workspace": "1.77.0-next.101+8308c936b",
|
|
14
24
|
"tslib": "^2.8.1"
|
|
15
25
|
},
|
|
16
26
|
"publishConfig": {
|
|
@@ -53,5 +63,5 @@
|
|
|
53
63
|
"nyc": {
|
|
54
64
|
"extends": "../../configs/nyc.json"
|
|
55
65
|
},
|
|
56
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8308c936be596c357a51fc815ef30022aa62b3d5"
|
|
57
67
|
}
|
|
@@ -22,10 +22,10 @@ import { CommandRegistry } from '@theia/core/shared/@lumino/commands';
|
|
|
22
22
|
import { Menu } from '@theia/core/shared/@lumino/widgets';
|
|
23
23
|
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
|
|
24
24
|
import { ConnectionStatusService, ConnectionStatus } from '@theia/core/lib/browser/connection-status-service';
|
|
25
|
-
import { PluginDevServer } from '../common/plugin-dev-protocol';
|
|
26
|
-
import { HostedPluginManagerClient, HostedInstanceState, HostedPluginCommands, HostedInstanceData } from './hosted-plugin-manager-client';
|
|
27
|
-
import { HostedPluginLogViewer } from './hosted-plugin-log-viewer';
|
|
28
|
-
import { HostedPluginPreferences } from '../common/hosted-plugin-preferences';
|
|
25
|
+
import { PluginDevServer } from '../common/plugin-dev-protocol.js';
|
|
26
|
+
import { HostedPluginManagerClient, HostedInstanceState, HostedPluginCommands, HostedInstanceData } from './hosted-plugin-manager-client.js';
|
|
27
|
+
import { HostedPluginLogViewer } from './hosted-plugin-log-viewer.js';
|
|
28
|
+
import { HostedPluginPreferences } from '../common/hosted-plugin-preferences.js';
|
|
29
29
|
import { nls } from '@theia/core/lib/common/nls';
|
|
30
30
|
import { ILogger } from '@theia/core';
|
|
31
31
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
18
|
import { CommandRegistry, CommandContribution } from '@theia/core/lib/common';
|
|
19
|
-
import { HostedPluginManagerClient, HostedPluginCommands } from './hosted-plugin-manager-client';
|
|
19
|
+
import { HostedPluginManagerClient, HostedPluginCommands } from './hosted-plugin-manager-client.js';
|
|
20
20
|
|
|
21
21
|
@injectable()
|
|
22
22
|
export class HostedPluginFrontendContribution implements CommandContribution {
|
|
@@ -18,7 +18,7 @@ import { injectable, inject } from '@theia/core/shared/inversify';
|
|
|
18
18
|
import { StatusBar } from '@theia/core/lib/browser/status-bar/status-bar';
|
|
19
19
|
import { StatusBarAlignment, StatusBarEntry, FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
20
20
|
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
21
|
-
import { PluginDevServer } from '../common/plugin-dev-protocol';
|
|
21
|
+
import { PluginDevServer } from '../common/plugin-dev-protocol.js';
|
|
22
22
|
import { ConnectionStatusService, ConnectionStatus } from '@theia/core/lib/browser/connection-status-service';
|
|
23
23
|
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
|
|
24
24
|
import { nls } from '@theia/core/lib/common/nls';
|
|
@@ -22,10 +22,10 @@ import { LabelProvider, isNative, AbstractDialog } from '@theia/core/lib/browser
|
|
|
22
22
|
import { WindowService } from '@theia/core/lib/browser/window/window-service';
|
|
23
23
|
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
24
24
|
import { FileDialogService } from '@theia/filesystem/lib/browser';
|
|
25
|
-
import { PluginDebugConfiguration, PluginDevServer } from '../common/plugin-dev-protocol';
|
|
25
|
+
import { PluginDebugConfiguration, PluginDevServer } from '../common/plugin-dev-protocol.js';
|
|
26
26
|
import { LaunchVSCodeArgument, LaunchVSCodeRequest, LaunchVSCodeResult } from '@theia/debug/lib/browser/debug-contribution';
|
|
27
27
|
import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
|
|
28
|
-
import { HostedPluginPreferences } from '../common/hosted-plugin-preferences';
|
|
28
|
+
import { HostedPluginPreferences } from '../common/hosted-plugin-preferences.js';
|
|
29
29
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
30
30
|
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
31
31
|
import { DebugSessionConnection } from '@theia/debug/lib/browser/debug-session-connection';
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { HostedPluginLogViewer } from './hosted-plugin-log-viewer';
|
|
18
|
-
import { HostedPluginManagerClient } from './hosted-plugin-manager-client';
|
|
19
|
-
import { HostedPluginInformer } from './hosted-plugin-informer';
|
|
20
|
-
import { bindHostedPluginPreferences } from '../common/hosted-plugin-preferences';
|
|
21
|
-
import { HostedPluginController } from './hosted-plugin-controller';
|
|
17
|
+
import { HostedPluginLogViewer } from './hosted-plugin-log-viewer.js';
|
|
18
|
+
import { HostedPluginManagerClient } from './hosted-plugin-manager-client.js';
|
|
19
|
+
import { HostedPluginInformer } from './hosted-plugin-informer.js';
|
|
20
|
+
import { bindHostedPluginPreferences } from '../common/hosted-plugin-preferences.js';
|
|
21
|
+
import { HostedPluginController } from './hosted-plugin-controller.js';
|
|
22
22
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
23
23
|
import { FrontendApplicationContribution, WebSocketConnectionProvider } from '@theia/core/lib/browser';
|
|
24
|
-
import { HostedPluginFrontendContribution } from './hosted-plugin-frontend-contribution';
|
|
24
|
+
import { HostedPluginFrontendContribution } from './hosted-plugin-frontend-contribution.js';
|
|
25
25
|
import { CommandContribution } from '@theia/core/lib/common/command';
|
|
26
|
-
import { PluginDevServer, pluginDevServicePath } from '../common/plugin-dev-protocol';
|
|
26
|
+
import { PluginDevServer, pluginDevServicePath } from '../common/plugin-dev-protocol.js';
|
|
27
27
|
import { DebugContribution } from '@theia/debug/lib/browser/debug-contribution';
|
|
28
28
|
|
|
29
29
|
export default new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
18
18
|
import { createPreferenceProxy, PreferenceContribution, PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/common';
|
|
19
19
|
import { nls } from '@theia/core/lib/common/nls';
|
|
20
|
-
import { PluginDebugPort } from './plugin-dev-protocol';
|
|
20
|
+
import { PluginDebugPort } from './plugin-dev-protocol.js';
|
|
21
21
|
|
|
22
22
|
export const HostedPluginConfigSchema: PreferenceSchema = {
|
|
23
23
|
properties: {
|
package/src/common/index.ts
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
// Exports contribution point for uri postprocessor of hosted plugin manager.
|
|
18
18
|
// This could be used to alter hosted instance uri, for example, change port.
|
|
19
|
-
export * from '../node/hosted-plugin-uri-postprocessor';
|
|
19
|
+
export * from '../node/hosted-plugin-uri-postprocessor.js';
|
|
20
20
|
|
|
21
|
-
export * from './plugin-dev-protocol';
|
|
21
|
+
export * from './plugin-dev-protocol.js';
|
|
@@ -22,14 +22,14 @@ import * as net from 'net';
|
|
|
22
22
|
import * as path from 'path';
|
|
23
23
|
import URI from '@theia/core/lib/common/uri';
|
|
24
24
|
import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
25
|
-
import { HostedPluginUriPostProcessor, HostedPluginUriPostProcessorSymbolName } from './hosted-plugin-uri-postprocessor';
|
|
25
|
+
import { HostedPluginUriPostProcessor, HostedPluginUriPostProcessorSymbolName } from './hosted-plugin-uri-postprocessor.js';
|
|
26
26
|
import { environment, isWindows, ILogger } from '@theia/core';
|
|
27
27
|
import { FileUri } from '@theia/core/lib/common/file-uri';
|
|
28
28
|
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
29
29
|
import { LogType } from '@theia/plugin-ext/lib/common/types';
|
|
30
30
|
import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin';
|
|
31
31
|
import { MetadataScanner } from '@theia/plugin-ext/lib/hosted/node/metadata-scanner';
|
|
32
|
-
import { PluginDebugConfiguration } from '../common/plugin-dev-protocol';
|
|
32
|
+
import { PluginDebugConfiguration } from '../common/plugin-dev-protocol.js';
|
|
33
33
|
import { HostedPluginProcess } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin-process';
|
|
34
34
|
import { isENOENT } from '@theia/plugin-ext/lib/common/errors';
|
|
35
35
|
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { HostedInstanceManager, NodeHostedPluginRunner } from './hosted-instance-manager';
|
|
18
|
-
import { HostedPluginUriPostProcessorSymbolName } from './hosted-plugin-uri-postprocessor';
|
|
19
|
-
import { HostedPluginsManager, HostedPluginsManagerImpl } from './hosted-plugins-manager';
|
|
17
|
+
import { HostedInstanceManager, NodeHostedPluginRunner } from './hosted-instance-manager.js';
|
|
18
|
+
import { HostedPluginUriPostProcessorSymbolName } from './hosted-plugin-uri-postprocessor.js';
|
|
19
|
+
import { HostedPluginsManager, HostedPluginsManagerImpl } from './hosted-plugins-manager.js';
|
|
20
20
|
import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
|
|
21
21
|
import { ConnectionContainerModule } from '@theia/core/lib/node/messaging/connection-container-module';
|
|
22
22
|
import { bindContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
23
|
-
import { PluginDevServerImpl } from './plugin-dev-service';
|
|
24
|
-
import { PluginDevServer, PluginDevClient, pluginDevServicePath } from '../common/plugin-dev-protocol';
|
|
25
|
-
import { HostedPluginReader } from './hosted-plugin-reader';
|
|
23
|
+
import { PluginDevServerImpl } from './plugin-dev-service.js';
|
|
24
|
+
import { PluginDevServer, PluginDevClient, pluginDevServicePath } from '../common/plugin-dev-protocol.js';
|
|
25
|
+
import { HostedPluginReader } from './hosted-plugin-reader.js';
|
|
26
26
|
import { BackendApplicationContribution } from '@theia/core/lib/node/backend-application';
|
|
27
|
-
import { bindHostedPluginPreferences } from '../common/hosted-plugin-preferences';
|
|
27
|
+
import { bindHostedPluginPreferences } from '../common/hosted-plugin-preferences.js';
|
|
28
28
|
|
|
29
29
|
const commonHostedConnectionModule = ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
30
30
|
bind(HostedPluginsManagerImpl).toSelf().inSingletonScope();
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { PluginDebugConfiguration, PluginDevServer, PluginDevClient } from '../common/plugin-dev-protocol';
|
|
17
|
+
import { PluginDebugConfiguration, PluginDevServer, PluginDevClient } from '../common/plugin-dev-protocol.js';
|
|
18
18
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
19
|
-
import { HostedInstanceManager } from './hosted-instance-manager';
|
|
19
|
+
import { HostedInstanceManager } from './hosted-instance-manager.js';
|
|
20
20
|
import { PluginMetadata } from '@theia/plugin-ext/lib/common/plugin-protocol';
|
|
21
21
|
import URI from '@theia/core/lib/common/uri';
|
|
22
|
-
import { HostedPluginReader } from './hosted-plugin-reader';
|
|
23
|
-
import { HostedPluginsManager } from './hosted-plugins-manager';
|
|
22
|
+
import { HostedPluginReader } from './hosted-plugin-reader.js';
|
|
23
|
+
import { HostedPluginsManager } from './hosted-plugins-manager.js';
|
|
24
24
|
import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin';
|
|
25
25
|
|
|
26
26
|
@injectable()
|