@theia/plugin-dev 1.77.0-next.1 → 1.77.0-next.108

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.
Files changed (62) hide show
  1. package/lib/browser/hosted-plugin-controller.d.ts +4 -4
  2. package/lib/browser/hosted-plugin-controller.d.ts.map +1 -1
  3. package/lib/browser/hosted-plugin-controller.js +83 -96
  4. package/lib/browser/hosted-plugin-controller.js.map +1 -1
  5. package/lib/browser/hosted-plugin-frontend-contribution.d.ts +1 -1
  6. package/lib/browser/hosted-plugin-frontend-contribution.d.ts.map +1 -1
  7. package/lib/browser/hosted-plugin-frontend-contribution.js +13 -17
  8. package/lib/browser/hosted-plugin-frontend-contribution.js.map +1 -1
  9. package/lib/browser/hosted-plugin-informer.d.ts +1 -1
  10. package/lib/browser/hosted-plugin-informer.d.ts.map +1 -1
  11. package/lib/browser/hosted-plugin-informer.js +29 -38
  12. package/lib/browser/hosted-plugin-informer.js.map +1 -1
  13. package/lib/browser/hosted-plugin-log-viewer.js +16 -25
  14. package/lib/browser/hosted-plugin-log-viewer.js.map +1 -1
  15. package/lib/browser/hosted-plugin-manager-client.d.ts +2 -2
  16. package/lib/browser/hosted-plugin-manager-client.d.ts.map +1 -1
  17. package/lib/browser/hosted-plugin-manager-client.js +74 -90
  18. package/lib/browser/hosted-plugin-manager-client.js.map +1 -1
  19. package/lib/browser/plugin-dev-frontend-module.js +23 -25
  20. package/lib/browser/plugin-dev-frontend-module.js.map +1 -1
  21. package/lib/common/hosted-plugin-preferences.d.ts +1 -1
  22. package/lib/common/hosted-plugin-preferences.d.ts.map +1 -1
  23. package/lib/common/hosted-plugin-preferences.js +19 -24
  24. package/lib/common/hosted-plugin-preferences.js.map +1 -1
  25. package/lib/common/index.d.ts +2 -2
  26. package/lib/common/index.d.ts.map +1 -1
  27. package/lib/common/index.js +2 -5
  28. package/lib/common/index.js.map +1 -1
  29. package/lib/common/plugin-dev-protocol.js +2 -5
  30. package/lib/common/plugin-dev-protocol.js.map +1 -1
  31. package/lib/node/hosted-instance-manager.d.ts +2 -2
  32. package/lib/node/hosted-instance-manager.d.ts.map +1 -1
  33. package/lib/node/hosted-instance-manager.js +55 -65
  34. package/lib/node/hosted-instance-manager.js.map +1 -1
  35. package/lib/node/hosted-plugin-reader.js +15 -20
  36. package/lib/node/hosted-plugin-reader.js.map +1 -1
  37. package/lib/node/hosted-plugin-uri-postprocessor.js +1 -4
  38. package/lib/node/hosted-plugin-uri-postprocessor.js.map +1 -1
  39. package/lib/node/hosted-plugins-manager.js +23 -29
  40. package/lib/node/hosted-plugins-manager.js.map +1 -1
  41. package/lib/node/plugin-dev-backend-module.js +27 -30
  42. package/lib/node/plugin-dev-backend-module.js.map +1 -1
  43. package/lib/node/plugin-dev-service.d.ts +3 -3
  44. package/lib/node/plugin-dev-service.d.ts.map +1 -1
  45. package/lib/node/plugin-dev-service.js +21 -28
  46. package/lib/node/plugin-dev-service.js.map +1 -1
  47. package/lib/node-electron/plugin-dev-electron-backend-module.js +9 -11
  48. package/lib/node-electron/plugin-dev-electron-backend-module.js.map +1 -1
  49. package/lib/package.spec.d.ts +1 -0
  50. package/lib/package.spec.js +1 -0
  51. package/package.json +18 -8
  52. package/src/browser/hosted-plugin-controller.ts +4 -4
  53. package/src/browser/hosted-plugin-frontend-contribution.ts +1 -1
  54. package/src/browser/hosted-plugin-informer.ts +1 -1
  55. package/src/browser/hosted-plugin-manager-client.ts +2 -2
  56. package/src/browser/plugin-dev-frontend-module.ts +7 -7
  57. package/src/common/hosted-plugin-preferences.ts +1 -1
  58. package/src/common/index.ts +2 -2
  59. package/src/node/hosted-instance-manager.ts +2 -2
  60. package/src/node/plugin-dev-backend-module.ts +7 -7
  61. package/src/node/plugin-dev-service.ts +4 -4
  62. 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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.HostedPluginsManagerImpl = exports.HostedPluginsManager = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const cp = require("child_process");
22
- const fs = require("@theia/core/shared/fs-extra");
23
- const path = require("path");
24
- const node_1 = require("@theia/core/lib/node");
25
- const hosted_plugin_1 = require("@theia/plugin-ext/lib/hosted/node/hosted-plugin");
26
- const types_1 = require("@theia/plugin-ext/lib/common/types");
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 = node_1.FileUri.fsPath(uri);
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: types_1.LogType.Error
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 = node_1.FileUri.fsPath(uri);
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 = node_1.FileUri.fsPath(uri);
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: types_1.LogType.Info
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: types_1.LogType.Info
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
- exports.HostedPluginsManagerImpl = HostedPluginsManagerImpl;
99
- tslib_1.__decorate([
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
- tslib_1.__decorate([
104
- (0, inversify_1.inject)(process_utils_1.ProcessUtils),
105
- tslib_1.__metadata("design:type", process_utils_1.ProcessUtils)
98
+ __decorate([
99
+ inject(ProcessUtils)
106
100
  ], HostedPluginsManagerImpl.prototype, "processUtils", void 0);
107
- exports.HostedPluginsManagerImpl = HostedPluginsManagerImpl = tslib_1.__decorate([
108
- (0, inversify_1.injectable)(),
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":";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,4DAAkE;AAClE,oCAAoC;AACpC,kDAAkD;AAClD,6BAA6B;AAC7B,+CAA+C;AAC/C,mFAAsF;AACtF,8DAA6D;AAC7D,sEAAkE;AAErD,QAAA,oBAAoB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AA2B5D,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAUjC;QACI,IAAI,CAAC,wBAAwB,GAAG,IAAI,GAAG,EAAE,CAAC;IAC9C,CAAC;IAED,mBAAmB,CAAC,GAAW;QAC3B,MAAM,cAAc,GAAG,cAAO,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AC,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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.bindCommonHostedBackend = bindCommonHostedBackend;
19
- const hosted_instance_manager_1 = require("./hosted-instance-manager");
20
- const hosted_plugin_uri_postprocessor_1 = require("./hosted-plugin-uri-postprocessor");
21
- const hosted_plugins_manager_1 = require("./hosted-plugins-manager");
22
- const inversify_1 = require("@theia/core/shared/inversify");
23
- const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
24
- const contribution_provider_1 = require("@theia/core/lib/common/contribution-provider");
25
- const plugin_dev_service_1 = require("./plugin-dev-service");
26
- const plugin_dev_protocol_1 = require("../common/plugin-dev-protocol");
27
- const hosted_plugin_reader_1 = require("./hosted-plugin-reader");
28
- const backend_application_1 = require("@theia/core/lib/node/backend-application");
29
- const hosted_plugin_preferences_1 = require("../common/hosted-plugin-preferences");
30
- const commonHostedConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
31
- bind(hosted_plugins_manager_1.HostedPluginsManagerImpl).toSelf().inSingletonScope();
32
- bind(hosted_plugins_manager_1.HostedPluginsManager).toService(hosted_plugins_manager_1.HostedPluginsManagerImpl);
33
- bind(plugin_dev_service_1.PluginDevServerImpl).toSelf().inSingletonScope();
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(hosted_plugin_reader_1.HostedPluginReader).toSelf().inSingletonScope();
43
- bind(backend_application_1.BackendApplicationContribution).toService(hosted_plugin_reader_1.HostedPluginReader);
44
- bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(commonHostedConnectionModule);
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 = connection_container_module_1.ConnectionContainerModule.create(({ bind }) => {
47
- (0, contribution_provider_1.bindContributionProvider)(bind, Symbol.for(hosted_plugin_uri_postprocessor_1.HostedPluginUriPostProcessorSymbolName));
48
- bind(hosted_instance_manager_1.HostedInstanceManager).to(hosted_instance_manager_1.NodeHostedPluginRunner).inSingletonScope();
43
+ const hostedBackendConnectionModule = ConnectionContainerModule.create(({ bind }) => {
44
+ bindContributionProvider(bind, Symbol.for(HostedPluginUriPostProcessorSymbolName));
45
+ bind(HostedInstanceManager).to(NodeHostedPluginRunner).inSingletonScope();
49
46
  });
50
- exports.default = new inversify_1.ContainerModule(bind => {
51
- (0, hosted_plugin_preferences_1.bindHostedPluginPreferences)(bind);
47
+ export default new ContainerModule(bind => {
48
+ bindHostedPluginPreferences(bind);
52
49
  bindCommonHostedBackend(bind);
53
- bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(hostedBackendConnectionModule);
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":";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;;AA0BhF,0DAIC;AA5BD,uEAA0F;AAC1F,uFAA2F;AAC3F,qEAA0F;AAC1F,4DAA2E;AAC3E,4GAAuG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AsB,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,+BAA+B,CAAC;AAE3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,qBACa,mBAAoB,YAAW,eAAe;IAGvD,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CA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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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.PluginDevServerImpl = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const hosted_instance_manager_1 = require("./hosted-instance-manager");
22
- const uri_1 = require("@theia/core/lib/common/uri");
23
- const hosted_plugin_reader_1 = require("./hosted-plugin-reader");
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 uri_1.default(uri)));
40
+ return Promise.resolve(this.hostedInstanceManager.isPluginValid(new URI(uri)));
44
41
  }
45
42
  runHostedPluginInstance(uri) {
46
- return this.uriToStrPromise(this.hostedInstanceManager.run(new uri_1.default(uri)));
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 uri_1.default(uri), debugConfig));
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
- exports.PluginDevServerImpl = PluginDevServerImpl;
82
- tslib_1.__decorate([
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
- tslib_1.__decorate([
87
- (0, inversify_1.inject)(hosted_instance_manager_1.HostedInstanceManager),
88
- tslib_1.__metadata("design:type", Object)
81
+ __decorate([
82
+ inject(HostedInstanceManager)
89
83
  ], PluginDevServerImpl.prototype, "hostedInstanceManager", void 0);
90
- tslib_1.__decorate([
91
- (0, inversify_1.inject)(hosted_plugin_reader_1.HostedPluginReader),
92
- tslib_1.__metadata("design:type", hosted_plugin_reader_1.HostedPluginReader)
84
+ __decorate([
85
+ inject(HostedPluginReader)
93
86
  ], PluginDevServerImpl.prototype, "reader", void 0);
94
- tslib_1.__decorate([
95
- (0, inversify_1.inject)(hosted_plugin_1.HostedPluginSupport),
96
- tslib_1.__metadata("design:type", hosted_plugin_1.HostedPluginSupport)
87
+ __decorate([
88
+ inject(HostedPluginSupport)
97
89
  ], PluginDevServerImpl.prototype, "hostedPlugin", void 0);
98
- exports.PluginDevServerImpl = PluginDevServerImpl = tslib_1.__decorate([
99
- (0, inversify_1.injectable)()
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":";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,4DAAkE;AAClE,uEAAkE;AAElE,oDAA6C;AAC7C,iEAA4D;AAC5D,qEAAgE;AAChE,mFAAsF;AAG/E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAc5B,OAAO;QACH,4DAA4D;QAC5D,IAAI,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE,EAAE,CAAC;YACzC,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE,CAAC;QAC3C,CAAC;IACL,CAAC;IACD,SAAS,CAAC,MAAuB;IAEjC,CAAC;IAED,KAAK,CAAC,eAAe;QACjB,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QACrD,IAAI,cAAc,EAAE,CAAC;YACjB,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,aAAa,CAAC,GAAW;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,IAAI,aAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACnF,CAAC;IAED,uBAAuB,CAAC,GAAW;QAC/B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,aA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AAC,qBAAqB,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnF,CAAC;IAED,kBAAkB;QACd,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IACjF,CAAC;IAES,eAAe,CAAC,OAAqB;QAC3C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAQ,EAAE,EAAE;gBACtB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,mBAAmB,CAAC,IAAY;QAC5B,OAAO,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,oBAAoB,CAAC,IAAY;QAC7B,OAAO,IAAI,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,yBAAyB,CAAC,IAAY;QAClC,OAAO,IAAI,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AA7EsB;IADlB,MAAM,CAAC,oBAAoB,CAAC;iEACiC;AAG3C;IADlB,MAAM,CAAC,qBAAqB,CAAC;kEACkC;AAG/C;IADhB,MAAM,CAAC,kBAAkB,CAAC;mDACiB;AAG3B;IADhB,MAAM,CAAC,mBAAmB,CAAC;yDACuB;AAZ1C,mBAAmB;IAD/B,UAAU,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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const hosted_instance_manager_1 = require("../node/hosted-instance-manager");
19
- const inversify_1 = require("@theia/core/shared/inversify");
20
- const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
21
- const plugin_dev_backend_module_1 = require("../node/plugin-dev-backend-module");
22
- const hostedBackendConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind }) => {
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
- exports.default = new inversify_1.ContainerModule(bind => {
26
- (0, plugin_dev_backend_module_1.bindCommonHostedBackend)(bind);
27
- bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(hostedBackendConnectionModule);
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":";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,6EAAwG;AACxG,4DAA+D;AAC/D,4GAAuG;AACvG,iFAA4E;AAE5E,MAAM,6BAA6B,GAAG,uDAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAChF,IAAI,CAAC,+CAAqB,CAAC,CAAC,EAAE,CAAC,wDAA8B,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC;AAEH,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,mDAAuB,EAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,CAAC,uDAAyB,CAAC,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACnF,CAAC,CAAC,CAAC"}
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"}
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=package.spec.d.ts.map
@@ -23,4 +23,5 @@
23
23
  describe('plugin-dev package', () => {
24
24
  it('support code coverage statistics', () => true);
25
25
  });
26
+ export {};
26
27
  //# sourceMappingURL=package.spec.js.map
package/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "@theia/plugin-dev",
3
- "version": "1.77.0-next.1+8b94967c4",
3
+ "version": "1.77.0-next.108+30a548238",
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.1+8b94967c4",
9
- "@theia/debug": "1.77.0-next.1+8b94967c4",
10
- "@theia/filesystem": "1.77.0-next.1+8b94967c4",
11
- "@theia/output": "1.77.0-next.1+8b94967c4",
12
- "@theia/plugin-ext": "1.77.0-next.1+8b94967c4",
13
- "@theia/workspace": "1.77.0-next.1+8b94967c4",
18
+ "@theia/core": "1.77.0-next.108+30a548238",
19
+ "@theia/debug": "1.77.0-next.108+30a548238",
20
+ "@theia/filesystem": "1.77.0-next.108+30a548238",
21
+ "@theia/output": "1.77.0-next.108+30a548238",
22
+ "@theia/plugin-ext": "1.77.0-next.108+30a548238",
23
+ "@theia/workspace": "1.77.0-next.108+30a548238",
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": "8b94967c4cfa0dcf688a345d28b3ac2e0d7e298a"
66
+ "gitHead": "30a5482386400715f42b541b4b142fd399ada7f3"
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: {
@@ -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()