@theia/plugin-dev 1.67.0-next.3 → 1.67.0-next.56

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 (70) hide show
  1. package/README.md +1 -1
  2. package/package.json +8 -8
  3. package/lib/browser/hosted-plugin-controller.d.ts +0 -75
  4. package/lib/browser/hosted-plugin-controller.d.ts.map +0 -1
  5. package/lib/browser/hosted-plugin-controller.js +0 -345
  6. package/lib/browser/hosted-plugin-controller.js.map +0 -1
  7. package/lib/browser/hosted-plugin-frontend-contribution.d.ts +0 -7
  8. package/lib/browser/hosted-plugin-frontend-contribution.d.ts.map +0 -1
  9. package/lib/browser/hosted-plugin-frontend-contribution.js +0 -49
  10. package/lib/browser/hosted-plugin-frontend-contribution.js.map +0 -1
  11. package/lib/browser/hosted-plugin-informer.d.ts +0 -26
  12. package/lib/browser/hosted-plugin-informer.d.ts.map +0 -1
  13. package/lib/browser/hosted-plugin-informer.js +0 -95
  14. package/lib/browser/hosted-plugin-informer.js.map +0 -1
  15. package/lib/browser/hosted-plugin-log-viewer.d.ts +0 -15
  16. package/lib/browser/hosted-plugin-log-viewer.d.ts.map +0 -1
  17. package/lib/browser/hosted-plugin-log-viewer.js +0 -62
  18. package/lib/browser/hosted-plugin-log-viewer.js.map +0 -1
  19. package/lib/browser/hosted-plugin-manager-client.d.ts +0 -81
  20. package/lib/browser/hosted-plugin-manager-client.d.ts.map +0 -1
  21. package/lib/browser/hosted-plugin-manager-client.js +0 -407
  22. package/lib/browser/hosted-plugin-manager-client.js.map +0 -1
  23. package/lib/browser/plugin-dev-frontend-module.d.ts +0 -4
  24. package/lib/browser/plugin-dev-frontend-module.d.ts.map +0 -1
  25. package/lib/browser/plugin-dev-frontend-module.js +0 -43
  26. package/lib/browser/plugin-dev-frontend-module.js.map +0 -1
  27. package/lib/common/hosted-plugin-preferences.d.ts +0 -16
  28. package/lib/common/hosted-plugin-preferences.d.ts.map +0 -1
  29. package/lib/common/hosted-plugin-preferences.js +0 -81
  30. package/lib/common/hosted-plugin-preferences.js.map +0 -1
  31. package/lib/common/index.d.ts +0 -3
  32. package/lib/common/index.d.ts.map +0 -1
  33. package/lib/common/index.js +0 -23
  34. package/lib/common/index.js.map +0 -1
  35. package/lib/common/plugin-dev-protocol.d.ts +0 -29
  36. package/lib/common/plugin-dev-protocol.d.ts.map +0 -1
  37. package/lib/common/plugin-dev-protocol.js +0 -21
  38. package/lib/common/plugin-dev-protocol.js.map +0 -1
  39. package/lib/node/hosted-instance-manager.d.ts +0 -105
  40. package/lib/node/hosted-instance-manager.d.ts.map +0 -1
  41. package/lib/node/hosted-instance-manager.js +0 -329
  42. package/lib/node/hosted-instance-manager.js.map +0 -1
  43. package/lib/node/hosted-plugin-reader.d.ts +0 -11
  44. package/lib/node/hosted-plugin-reader.d.ts.map +0 -1
  45. package/lib/node/hosted-plugin-reader.js +0 -61
  46. package/lib/node/hosted-plugin-reader.js.map +0 -1
  47. package/lib/node/hosted-plugin-uri-postprocessor.d.ts +0 -7
  48. package/lib/node/hosted-plugin-uri-postprocessor.d.ts.map +0 -1
  49. package/lib/node/hosted-plugin-uri-postprocessor.js +0 -28
  50. package/lib/node/hosted-plugin-uri-postprocessor.js.map +0 -1
  51. package/lib/node/hosted-plugins-manager.d.ts +0 -44
  52. package/lib/node/hosted-plugins-manager.d.ts.map +0 -1
  53. package/lib/node/hosted-plugins-manager.js +0 -111
  54. package/lib/node/hosted-plugins-manager.js.map +0 -1
  55. package/lib/node/plugin-dev-backend-module.d.ts +0 -5
  56. package/lib/node/plugin-dev-backend-module.d.ts.map +0 -1
  57. package/lib/node/plugin-dev-backend-module.js +0 -56
  58. package/lib/node/plugin-dev-backend-module.js.map +0 -1
  59. package/lib/node/plugin-dev-service.d.ts +0 -26
  60. package/lib/node/plugin-dev-service.d.ts.map +0 -1
  61. package/lib/node/plugin-dev-service.js +0 -101
  62. package/lib/node/plugin-dev-service.js.map +0 -1
  63. package/lib/node-electron/plugin-dev-electron-backend-module.d.ts +0 -4
  64. package/lib/node-electron/plugin-dev-electron-backend-module.d.ts.map +0 -1
  65. package/lib/node-electron/plugin-dev-electron-backend-module.js +0 -29
  66. package/lib/node-electron/plugin-dev-electron-backend-module.js.map +0 -1
  67. package/lib/package.spec.d.ts +0 -1
  68. package/lib/package.spec.d.ts.map +0 -1
  69. package/lib/package.spec.js +0 -26
  70. package/lib/package.spec.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"hosted-plugin-uri-postprocessor.js","sourceRoot":"","sources":["../../src/node/hosted-plugin-uri-postprocessor.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;;;AAIhF,iFAAiF;AACjF,iEAAiE;AACjE,gFAAgF;AAChF,6CAA6C;AAC7C,wGAAwG;AACxG,MAAM;AACN,8EAA8E;AAC9E,MAAM;AACO,QAAA,sCAAsC,GAAG,8BAA8B,CAAC"}
@@ -1,44 +0,0 @@
1
- /// <reference types="node" />
2
- import * as cp from 'child_process';
3
- import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin';
4
- import { ProcessUtils } from '@theia/core/lib/node/process-utils';
5
- export declare const HostedPluginsManager: unique symbol;
6
- export interface HostedPluginsManager {
7
- /**
8
- * Runs watcher script to recompile plugin on any changes along given path.
9
- *
10
- * @param uri uri to plugin root folder.
11
- */
12
- runWatchCompilation(uri: string): Promise<void>;
13
- /**
14
- * Stops watcher script.
15
- *
16
- * @param uri uri to plugin root folder.
17
- */
18
- stopWatchCompilation(uri: string): Promise<void>;
19
- /**
20
- * Checks if watcher script to recompile plugin is running.
21
- *
22
- * @param uri uri to plugin root folder.
23
- */
24
- isWatchCompilationRunning(uri: string): Promise<boolean>;
25
- }
26
- export declare class HostedPluginsManagerImpl implements HostedPluginsManager {
27
- protected readonly hostedPluginSupport: HostedPluginSupport;
28
- protected readonly processUtils: ProcessUtils;
29
- protected watchCompilationRegistry: Map<string, cp.ChildProcess>;
30
- constructor();
31
- runWatchCompilation(uri: string): Promise<void>;
32
- private killProcessTree;
33
- stopWatchCompilation(uri: string): Promise<void>;
34
- isWatchCompilationRunning(uri: string): Promise<boolean>;
35
- protected runWatchScript(pluginRootPath: string): Promise<void>;
36
- protected unregisterWatchScript(pluginRootPath: string): void;
37
- /**
38
- * Checks whether watch script is present into package.json by given parent folder.
39
- *
40
- * @param pluginPath path to plugin's root directory
41
- */
42
- protected checkWatchScript(pluginPath: string): Promise<boolean>;
43
- }
44
- //# sourceMappingURL=hosted-plugins-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hosted-plugins-manager.d.ts","sourceRoot":"","sources":["../../src/node/hosted-plugins-manager.ts"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AAIpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAEtF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,eAAO,MAAM,oBAAoB,eAAiC,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IAEjC;;;;OAIG;IACH,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD;;;;OAIG;IACH,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjD;;;;OAIG;IACH,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED,qBACa,wBAAyB,YAAW,oBAAoB;IAGjE,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAG5D,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAE9C,SAAS,CAAC,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC;;IAMjE,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkB/C,OAAO,CAAC,eAAe;IAIvB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYhD,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMxD,SAAS,CAAC,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAY/D,SAAS,CAAC,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI;IAQ7D;;;;OAIG;cACa,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAYzE"}
@@ -1,111 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 Red Hat, Inc. 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.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');
29
- let HostedPluginsManagerImpl = class HostedPluginsManagerImpl {
30
- constructor() {
31
- this.watchCompilationRegistry = new Map();
32
- }
33
- runWatchCompilation(uri) {
34
- const pluginRootPath = node_1.FileUri.fsPath(uri);
35
- if (this.watchCompilationRegistry.has(pluginRootPath)) {
36
- throw new Error('Watcher is already running in ' + pluginRootPath);
37
- }
38
- if (!this.checkWatchScript(pluginRootPath)) {
39
- this.hostedPluginSupport.sendLog({
40
- data: 'Plugin in ' + uri + ' doesn\'t have watch script',
41
- type: types_1.LogType.Error
42
- });
43
- throw new Error('Watch script doesn\'t exist in ' + pluginRootPath + 'package.json');
44
- }
45
- return this.runWatchScript(pluginRootPath);
46
- }
47
- killProcessTree(parentPid) {
48
- this.processUtils.terminateProcessTree(parentPid);
49
- }
50
- stopWatchCompilation(uri) {
51
- const pluginPath = node_1.FileUri.fsPath(uri);
52
- const watchProcess = this.watchCompilationRegistry.get(pluginPath);
53
- if (!watchProcess) {
54
- throw new Error('Watcher is not running in ' + pluginPath);
55
- }
56
- this.killProcessTree(watchProcess.pid);
57
- return Promise.resolve();
58
- }
59
- isWatchCompilationRunning(uri) {
60
- const pluginPath = node_1.FileUri.fsPath(uri);
61
- return new Promise(resolve => resolve(this.watchCompilationRegistry.has(pluginPath)));
62
- }
63
- runWatchScript(pluginRootPath) {
64
- const watchProcess = cp.spawn('npm', ['run', 'watch'], { cwd: pluginRootPath, shell: true });
65
- watchProcess.on('exit', () => this.unregisterWatchScript(pluginRootPath));
66
- this.watchCompilationRegistry.set(pluginRootPath, watchProcess);
67
- this.hostedPluginSupport.sendLog({
68
- data: 'Compilation watcher has been started in ' + pluginRootPath,
69
- type: types_1.LogType.Info
70
- });
71
- return Promise.resolve();
72
- }
73
- unregisterWatchScript(pluginRootPath) {
74
- this.watchCompilationRegistry.delete(pluginRootPath);
75
- this.hostedPluginSupport.sendLog({
76
- data: 'Compilation watcher has been stopped in ' + pluginRootPath,
77
- type: types_1.LogType.Info
78
- });
79
- }
80
- /**
81
- * Checks whether watch script is present into package.json by given parent folder.
82
- *
83
- * @param pluginPath path to plugin's root directory
84
- */
85
- async checkWatchScript(pluginPath) {
86
- const pluginPackageJsonPath = path.join(pluginPath, 'package.json');
87
- try {
88
- const packageJson = await fs.readJSON(pluginPackageJsonPath);
89
- const scripts = packageJson['scripts'];
90
- if (scripts && scripts['watch']) {
91
- return true;
92
- }
93
- }
94
- catch { }
95
- return false;
96
- }
97
- };
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)
102
- ], 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)
106
- ], HostedPluginsManagerImpl.prototype, "processUtils", void 0);
107
- exports.HostedPluginsManagerImpl = HostedPluginsManagerImpl = tslib_1.__decorate([
108
- (0, inversify_1.injectable)(),
109
- tslib_1.__metadata("design:paramtypes", [])
110
- ], HostedPluginsManagerImpl);
111
- //# sourceMappingURL=hosted-plugins-manager.js.map
@@ -1 +0,0 @@
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;AAC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rB,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;AA3FY,4DAAwB;AAGd;IADlB,IAAA,kBAAM,EAAC,mCAAmB,CAAC;sCACY,mCAAmB;qEAAC;AAGzC;IADlB,IAAA,kBAAM,EAAC,4BAAY,CAAC;sCACY,4BAAY;8DAAC;mCANrC,wBAAwB;IADpC,IAAA,sBAAU,GAAE;;GACA,wBAAwB,CA2FpC"}
@@ -1,5 +0,0 @@
1
- import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
2
- export declare function bindCommonHostedBackend(bind: interfaces.Bind): void;
3
- declare const _default: ContainerModule;
4
- export default _default;
5
- //# sourceMappingURL=plugin-dev-backend-module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-dev-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/plugin-dev-backend-module.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAqB3E,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAInE;;AAOD,wBAIG"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2019 Red Hat, Inc. 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.bindCommonHostedBackend = void 0;
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) => {
36
- server.setClient(client);
37
- client.onDidCloseConnection(() => server.dispose());
38
- return server;
39
- });
40
- });
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);
45
- }
46
- exports.bindCommonHostedBackend = bindCommonHostedBackend;
47
- const hostedBackendConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind }) => {
48
- (0, contribution_provider_1.bindContributionProvider)(bind, Symbol.for(hosted_plugin_uri_postprocessor_1.HostedPluginUriPostProcessorSymbolName));
49
- bind(hosted_instance_manager_1.HostedInstanceManager).to(hosted_instance_manager_1.NodeHostedPluginRunner).inSingletonScope();
50
- });
51
- exports.default = new inversify_1.ContainerModule(bind => {
52
- (0, hosted_plugin_preferences_1.bindHostedPluginPreferences)(bind);
53
- bindCommonHostedBackend(bind);
54
- bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(hostedBackendConnectionModule);
55
- });
56
- //# sourceMappingURL=plugin-dev-backend-module.js.map
@@ -1 +0,0 @@
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,uEAA0F;AAC1F,uFAA2F;AAC3F,qEAA0F;AAC1F,4DAA2E;AAC3E,4GAAuG;AACvG,wFAAwF;AACxF,6DAA2D;AAC3D,uEAAuG;AACvG,iEAA4D;AAC5D,kFAA0F;AAC1F,mFAAkF;AAElF,MAAM,4BAA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AAC,CAAC,CAAC;AAEH,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,uDAA2B,EAAC,IAAI,CAAC,CAAC;IAClC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,CAAC,uDAAyB,CAAC,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACnF,CAAC,CAAC,CAAC"}
@@ -1,26 +0,0 @@
1
- import { PluginDebugConfiguration, PluginDevServer, PluginDevClient } from '../common/plugin-dev-protocol';
2
- import { HostedInstanceManager } from './hosted-instance-manager';
3
- import { PluginMetadata } from '@theia/plugin-ext/lib/common/plugin-protocol';
4
- import URI from '@theia/core/lib/common/uri';
5
- import { HostedPluginsManager } from './hosted-plugins-manager';
6
- export declare class PluginDevServerImpl implements PluginDevServer {
7
- protected readonly hostedPluginsManager: HostedPluginsManager;
8
- protected readonly hostedInstanceManager: HostedInstanceManager;
9
- private readonly reader;
10
- private readonly hostedPlugin;
11
- dispose(): void;
12
- setClient(client: PluginDevClient): void;
13
- getHostedPlugin(): Promise<PluginMetadata | undefined>;
14
- isPluginValid(uri: string): Promise<boolean>;
15
- runHostedPluginInstance(uri: string): Promise<string>;
16
- runDebugHostedPluginInstance(uri: string, debugConfig: PluginDebugConfiguration): Promise<string>;
17
- terminateHostedPluginInstance(): Promise<void>;
18
- isHostedPluginInstanceRunning(): Promise<boolean>;
19
- getHostedPluginInstanceURI(): Promise<string>;
20
- getHostedPluginURI(): Promise<string>;
21
- protected uriToStrPromise(promise: Promise<URI>): Promise<string>;
22
- runWatchCompilation(path: string): Promise<void>;
23
- stopWatchCompilation(path: string): Promise<void>;
24
- isWatchCompilationRunning(path: string): Promise<boolean>;
25
- }
26
- //# sourceMappingURL=plugin-dev-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-dev-service.d.ts","sourceRoot":"","sources":["../../src/node/plugin-dev-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,E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AAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjD,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAG5D"}
@@ -1,101 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2019 Red Hat, Inc. 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.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");
26
- let PluginDevServerImpl = class PluginDevServerImpl {
27
- dispose() {
28
- // Terminate the hosted instance if it is currently running.
29
- if (this.hostedInstanceManager.isRunning()) {
30
- this.hostedInstanceManager.terminate();
31
- }
32
- }
33
- setClient(client) {
34
- }
35
- async getHostedPlugin() {
36
- const pluginMetadata = await this.reader.getPlugin();
37
- if (pluginMetadata) {
38
- this.hostedPlugin.runPlugin(pluginMetadata.model);
39
- }
40
- return Promise.resolve(this.reader.getPlugin());
41
- }
42
- isPluginValid(uri) {
43
- return Promise.resolve(this.hostedInstanceManager.isPluginValid(new uri_1.default(uri)));
44
- }
45
- runHostedPluginInstance(uri) {
46
- return this.uriToStrPromise(this.hostedInstanceManager.run(new uri_1.default(uri)));
47
- }
48
- runDebugHostedPluginInstance(uri, debugConfig) {
49
- return this.uriToStrPromise(this.hostedInstanceManager.debug(new uri_1.default(uri), debugConfig));
50
- }
51
- terminateHostedPluginInstance() {
52
- this.hostedInstanceManager.terminate();
53
- return Promise.resolve();
54
- }
55
- isHostedPluginInstanceRunning() {
56
- return Promise.resolve(this.hostedInstanceManager.isRunning());
57
- }
58
- getHostedPluginInstanceURI() {
59
- return Promise.resolve(this.hostedInstanceManager.getInstanceURI().toString());
60
- }
61
- getHostedPluginURI() {
62
- return Promise.resolve(this.hostedInstanceManager.getPluginURI().toString());
63
- }
64
- uriToStrPromise(promise) {
65
- return new Promise((resolve, reject) => {
66
- promise.then((uri) => {
67
- resolve(uri.toString());
68
- }).catch(error => reject(error));
69
- });
70
- }
71
- runWatchCompilation(path) {
72
- return this.hostedPluginsManager.runWatchCompilation(path);
73
- }
74
- stopWatchCompilation(path) {
75
- return this.hostedPluginsManager.stopWatchCompilation(path);
76
- }
77
- isWatchCompilationRunning(path) {
78
- return this.hostedPluginsManager.isWatchCompilationRunning(path);
79
- }
80
- };
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)
85
- ], 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)
89
- ], 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)
93
- ], 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)
97
- ], PluginDevServerImpl.prototype, "hostedPlugin", void 0);
98
- exports.PluginDevServerImpl = PluginDevServerImpl = tslib_1.__decorate([
99
- (0, inversify_1.injectable)()
100
- ], PluginDevServerImpl);
101
- //# sourceMappingURL=plugin-dev-service.js.map
@@ -1 +0,0 @@
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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AAC,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;AAhFY,kDAAmB;AAGT;IADlB,IAAA,kBAAM,EAAC,6CAAoB,CAAC;;iEACiC;AAG3C;IADlB,IAAA,kBAAM,EAAC,+CAAqB,CAAC;;kEACkC;AAG/C;IADhB,IAAA,kBAAM,EAAC,yCAAkB,CAAC;sCACF,yCAAkB;mDAAC;AAG3B;IADhB,IAAA,kBAAM,EAAC,mCAAmB,CAAC;sCACG,mCAAmB;yDAAC;8BAZ1C,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;GACA,mBAAmB,CAgF/B"}
@@ -1,4 +0,0 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
4
- //# sourceMappingURL=plugin-dev-electron-backend-module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-dev-electron-backend-module.d.ts","sourceRoot":"","sources":["../../src/node-electron/plugin-dev-electron-backend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAQ/D,wBAGG"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2019 Red Hat, Inc. 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
- 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);
24
- });
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);
28
- });
29
- //# sourceMappingURL=plugin-dev-electron-backend-module.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- //# sourceMappingURL=package.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
@@ -1,26 +0,0 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2019 Red Hat, Inc. 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
- /* note: this bogus test file is required so that
17
- we are able to run mocha unit tests on this
18
- package, without having any actual unit tests in it.
19
- This way a coverage report will be generated,
20
- showing 0% coverage, instead of no report.
21
- This file can be removed once we have real unit
22
- tests in place. */
23
- describe('plugin-dev package', () => {
24
- it('support code coverage statistics', () => true);
25
- });
26
- //# sourceMappingURL=package.spec.js.map
@@ -1 +0,0 @@
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;;;;;;qBAMqB;AAErB,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAEhC,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}