@theia/plugin-dev 1.67.0-next.56 → 1.67.0-next.86
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 +75 -0
- package/lib/browser/hosted-plugin-controller.d.ts.map +1 -0
- package/lib/browser/hosted-plugin-controller.js +345 -0
- package/lib/browser/hosted-plugin-controller.js.map +1 -0
- package/lib/browser/hosted-plugin-frontend-contribution.d.ts +7 -0
- package/lib/browser/hosted-plugin-frontend-contribution.d.ts.map +1 -0
- package/lib/browser/hosted-plugin-frontend-contribution.js +49 -0
- package/lib/browser/hosted-plugin-frontend-contribution.js.map +1 -0
- package/lib/browser/hosted-plugin-informer.d.ts +26 -0
- package/lib/browser/hosted-plugin-informer.d.ts.map +1 -0
- package/lib/browser/hosted-plugin-informer.js +95 -0
- package/lib/browser/hosted-plugin-informer.js.map +1 -0
- package/lib/browser/hosted-plugin-log-viewer.d.ts +15 -0
- package/lib/browser/hosted-plugin-log-viewer.d.ts.map +1 -0
- package/lib/browser/hosted-plugin-log-viewer.js +62 -0
- package/lib/browser/hosted-plugin-log-viewer.js.map +1 -0
- package/lib/browser/hosted-plugin-manager-client.d.ts +81 -0
- package/lib/browser/hosted-plugin-manager-client.d.ts.map +1 -0
- package/lib/browser/hosted-plugin-manager-client.js +407 -0
- package/lib/browser/hosted-plugin-manager-client.js.map +1 -0
- package/lib/browser/plugin-dev-frontend-module.d.ts +4 -0
- package/lib/browser/plugin-dev-frontend-module.d.ts.map +1 -0
- package/lib/browser/plugin-dev-frontend-module.js +43 -0
- package/lib/browser/plugin-dev-frontend-module.js.map +1 -0
- package/lib/common/hosted-plugin-preferences.d.ts +16 -0
- package/lib/common/hosted-plugin-preferences.d.ts.map +1 -0
- package/lib/common/hosted-plugin-preferences.js +81 -0
- package/lib/common/hosted-plugin-preferences.js.map +1 -0
- package/lib/common/index.d.ts +3 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +23 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/plugin-dev-protocol.d.ts +29 -0
- package/lib/common/plugin-dev-protocol.d.ts.map +1 -0
- package/lib/common/plugin-dev-protocol.js +21 -0
- package/lib/common/plugin-dev-protocol.js.map +1 -0
- package/lib/node/hosted-instance-manager.d.ts +105 -0
- package/lib/node/hosted-instance-manager.d.ts.map +1 -0
- package/lib/node/hosted-instance-manager.js +329 -0
- package/lib/node/hosted-instance-manager.js.map +1 -0
- package/lib/node/hosted-plugin-reader.d.ts +11 -0
- package/lib/node/hosted-plugin-reader.d.ts.map +1 -0
- package/lib/node/hosted-plugin-reader.js +61 -0
- package/lib/node/hosted-plugin-reader.js.map +1 -0
- package/lib/node/hosted-plugin-uri-postprocessor.d.ts +7 -0
- package/lib/node/hosted-plugin-uri-postprocessor.d.ts.map +1 -0
- package/lib/node/hosted-plugin-uri-postprocessor.js +28 -0
- package/lib/node/hosted-plugin-uri-postprocessor.js.map +1 -0
- package/lib/node/hosted-plugins-manager.d.ts +44 -0
- package/lib/node/hosted-plugins-manager.d.ts.map +1 -0
- package/lib/node/hosted-plugins-manager.js +111 -0
- package/lib/node/hosted-plugins-manager.js.map +1 -0
- package/lib/node/plugin-dev-backend-module.d.ts +5 -0
- package/lib/node/plugin-dev-backend-module.d.ts.map +1 -0
- package/lib/node/plugin-dev-backend-module.js +56 -0
- package/lib/node/plugin-dev-backend-module.js.map +1 -0
- package/lib/node/plugin-dev-service.d.ts +26 -0
- package/lib/node/plugin-dev-service.d.ts.map +1 -0
- package/lib/node/plugin-dev-service.js +101 -0
- package/lib/node/plugin-dev-service.js.map +1 -0
- package/lib/node-electron/plugin-dev-electron-backend-module.d.ts +4 -0
- package/lib/node-electron/plugin-dev-electron-backend-module.d.ts.map +1 -0
- package/lib/node-electron/plugin-dev-electron-backend-module.js +29 -0
- package/lib/node-electron/plugin-dev-electron-backend-module.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +26 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
|
@@ -0,0 +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;;;AAEhF,uEAA0F;AAC1F,uFAA2F;AAC3F,qEAA0F;AAC1F,4DAA2E;AAC3E,4GAAuG;AACvG,wFAAwF;AACxF,6DAA2D;AAC3D,uEAAuG;AACvG,iEAA4D;AAC5D,kFAA0F;AAC1F,mFAAkF;AAElF,MAAM,4BAA4B,GAAG,uDAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE;I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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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.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,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"}
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
|
@@ -0,0 +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,qBAAq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;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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-dev",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.86+03f92ff1d",
|
|
4
4
|
"description": "Theia - Plugin Development Extension",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@theia/core": "1.67.0-next.
|
|
9
|
-
"@theia/debug": "1.67.0-next.
|
|
10
|
-
"@theia/filesystem": "1.67.0-next.
|
|
11
|
-
"@theia/output": "1.67.0-next.
|
|
12
|
-
"@theia/plugin-ext": "1.67.0-next.
|
|
13
|
-
"@theia/workspace": "1.67.0-next.
|
|
8
|
+
"@theia/core": "1.67.0-next.86+03f92ff1d",
|
|
9
|
+
"@theia/debug": "1.67.0-next.86+03f92ff1d",
|
|
10
|
+
"@theia/filesystem": "1.67.0-next.86+03f92ff1d",
|
|
11
|
+
"@theia/output": "1.67.0-next.86+03f92ff1d",
|
|
12
|
+
"@theia/plugin-ext": "1.67.0-next.86+03f92ff1d",
|
|
13
|
+
"@theia/workspace": "1.67.0-next.86+03f92ff1d",
|
|
14
14
|
"tslib": "^2.6.2"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"nyc": {
|
|
54
54
|
"extends": "../../configs/nyc.json"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "03f92ff1d97dcb199de39b48e60a53535de22808"
|
|
57
57
|
}
|