@theia/plugin-dev 1.67.0-next.13 → 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.
- package/README.md +1 -1
- package/package.json +8 -8
- package/lib/browser/hosted-plugin-controller.d.ts +0 -75
- package/lib/browser/hosted-plugin-controller.d.ts.map +0 -1
- package/lib/browser/hosted-plugin-controller.js +0 -345
- package/lib/browser/hosted-plugin-controller.js.map +0 -1
- package/lib/browser/hosted-plugin-frontend-contribution.d.ts +0 -7
- package/lib/browser/hosted-plugin-frontend-contribution.d.ts.map +0 -1
- package/lib/browser/hosted-plugin-frontend-contribution.js +0 -49
- package/lib/browser/hosted-plugin-frontend-contribution.js.map +0 -1
- package/lib/browser/hosted-plugin-informer.d.ts +0 -26
- package/lib/browser/hosted-plugin-informer.d.ts.map +0 -1
- package/lib/browser/hosted-plugin-informer.js +0 -95
- package/lib/browser/hosted-plugin-informer.js.map +0 -1
- package/lib/browser/hosted-plugin-log-viewer.d.ts +0 -15
- package/lib/browser/hosted-plugin-log-viewer.d.ts.map +0 -1
- package/lib/browser/hosted-plugin-log-viewer.js +0 -62
- package/lib/browser/hosted-plugin-log-viewer.js.map +0 -1
- package/lib/browser/hosted-plugin-manager-client.d.ts +0 -81
- package/lib/browser/hosted-plugin-manager-client.d.ts.map +0 -1
- package/lib/browser/hosted-plugin-manager-client.js +0 -407
- package/lib/browser/hosted-plugin-manager-client.js.map +0 -1
- package/lib/browser/plugin-dev-frontend-module.d.ts +0 -4
- package/lib/browser/plugin-dev-frontend-module.d.ts.map +0 -1
- package/lib/browser/plugin-dev-frontend-module.js +0 -43
- package/lib/browser/plugin-dev-frontend-module.js.map +0 -1
- package/lib/common/hosted-plugin-preferences.d.ts +0 -16
- package/lib/common/hosted-plugin-preferences.d.ts.map +0 -1
- package/lib/common/hosted-plugin-preferences.js +0 -81
- package/lib/common/hosted-plugin-preferences.js.map +0 -1
- package/lib/common/index.d.ts +0 -3
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -23
- package/lib/common/index.js.map +0 -1
- package/lib/common/plugin-dev-protocol.d.ts +0 -29
- package/lib/common/plugin-dev-protocol.d.ts.map +0 -1
- package/lib/common/plugin-dev-protocol.js +0 -21
- package/lib/common/plugin-dev-protocol.js.map +0 -1
- package/lib/node/hosted-instance-manager.d.ts +0 -105
- package/lib/node/hosted-instance-manager.d.ts.map +0 -1
- package/lib/node/hosted-instance-manager.js +0 -329
- package/lib/node/hosted-instance-manager.js.map +0 -1
- package/lib/node/hosted-plugin-reader.d.ts +0 -11
- package/lib/node/hosted-plugin-reader.d.ts.map +0 -1
- package/lib/node/hosted-plugin-reader.js +0 -61
- package/lib/node/hosted-plugin-reader.js.map +0 -1
- package/lib/node/hosted-plugin-uri-postprocessor.d.ts +0 -7
- package/lib/node/hosted-plugin-uri-postprocessor.d.ts.map +0 -1
- package/lib/node/hosted-plugin-uri-postprocessor.js +0 -28
- package/lib/node/hosted-plugin-uri-postprocessor.js.map +0 -1
- package/lib/node/hosted-plugins-manager.d.ts +0 -44
- package/lib/node/hosted-plugins-manager.d.ts.map +0 -1
- package/lib/node/hosted-plugins-manager.js +0 -111
- package/lib/node/hosted-plugins-manager.js.map +0 -1
- package/lib/node/plugin-dev-backend-module.d.ts +0 -5
- package/lib/node/plugin-dev-backend-module.d.ts.map +0 -1
- package/lib/node/plugin-dev-backend-module.js +0 -56
- package/lib/node/plugin-dev-backend-module.js.map +0 -1
- package/lib/node/plugin-dev-service.d.ts +0 -26
- package/lib/node/plugin-dev-service.d.ts.map +0 -1
- package/lib/node/plugin-dev-service.js +0 -101
- package/lib/node/plugin-dev-service.js.map +0 -1
- package/lib/node-electron/plugin-dev-electron-backend-module.d.ts +0 -4
- package/lib/node-electron/plugin-dev-electron-backend-module.d.ts.map +0 -1
- package/lib/node-electron/plugin-dev-electron-backend-module.js +0 -29
- package/lib/node-electron/plugin-dev-electron-backend-module.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1,95 +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
|
-
var HostedPluginInformer_1;
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.HostedPluginInformer = void 0;
|
|
20
|
-
const tslib_1 = require("tslib");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const status_bar_1 = require("@theia/core/lib/browser/status-bar/status-bar");
|
|
23
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
24
|
-
const browser_2 = require("@theia/workspace/lib/browser");
|
|
25
|
-
const plugin_dev_protocol_1 = require("../common/plugin-dev-protocol");
|
|
26
|
-
const connection_status_service_1 = require("@theia/core/lib/browser/connection-status-service");
|
|
27
|
-
const frontend_application_state_1 = require("@theia/core/lib/browser/frontend-application-state");
|
|
28
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
29
|
-
const window_title_service_1 = require("@theia/core/lib/browser/window/window-title-service");
|
|
30
|
-
/**
|
|
31
|
-
* Informs the user whether Theia is running with hosted plugin.
|
|
32
|
-
* Adds 'Development Host' status bar element and appends the same prefix to window title.
|
|
33
|
-
*/
|
|
34
|
-
let HostedPluginInformer = HostedPluginInformer_1 = class HostedPluginInformer {
|
|
35
|
-
initialize() {
|
|
36
|
-
this.hostedPluginServer.getHostedPlugin().then(pluginMetadata => {
|
|
37
|
-
if (pluginMetadata) {
|
|
38
|
-
this.windowTitleService.update({
|
|
39
|
-
developmentHost: HostedPluginInformer_1.DEVELOPMENT_HOST_TITLE
|
|
40
|
-
});
|
|
41
|
-
this.entry = {
|
|
42
|
-
text: `$(cube) ${HostedPluginInformer_1.DEVELOPMENT_HOST_TITLE}`,
|
|
43
|
-
tooltip: `${nls_1.nls.localize('theia/plugin-dev/hostedPlugin', 'Hosted Plugin')} '${pluginMetadata.model.name}'`,
|
|
44
|
-
alignment: browser_1.StatusBarAlignment.LEFT,
|
|
45
|
-
priority: 100
|
|
46
|
-
};
|
|
47
|
-
this.frontendApplicationStateService.reachedState('ready').then(() => {
|
|
48
|
-
this.updateStatusBarElement();
|
|
49
|
-
});
|
|
50
|
-
this.connectionStatusService.onStatusChange(() => this.updateStatusBarElement());
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
updateStatusBarElement() {
|
|
55
|
-
if (this.connectionStatusService.currentStatus === connection_status_service_1.ConnectionStatus.OFFLINE) {
|
|
56
|
-
this.entry.className = HostedPluginInformer_1.DEVELOPMENT_HOST_OFFLINE;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
this.entry.className = HostedPluginInformer_1.DEVELOPMENT_HOST;
|
|
60
|
-
}
|
|
61
|
-
this.statusBar.setElement(HostedPluginInformer_1.DEVELOPMENT_HOST, this.entry);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.HostedPluginInformer = HostedPluginInformer;
|
|
65
|
-
HostedPluginInformer.DEVELOPMENT_HOST_TITLE = nls_1.nls.localize('theia/plugin-dev/devHost', 'Development Host');
|
|
66
|
-
HostedPluginInformer.DEVELOPMENT_HOST = 'development-host';
|
|
67
|
-
HostedPluginInformer.DEVELOPMENT_HOST_OFFLINE = 'development-host-offline';
|
|
68
|
-
tslib_1.__decorate([
|
|
69
|
-
(0, inversify_1.inject)(status_bar_1.StatusBar),
|
|
70
|
-
tslib_1.__metadata("design:type", Object)
|
|
71
|
-
], HostedPluginInformer.prototype, "statusBar", void 0);
|
|
72
|
-
tslib_1.__decorate([
|
|
73
|
-
(0, inversify_1.inject)(browser_2.WorkspaceService),
|
|
74
|
-
tslib_1.__metadata("design:type", browser_2.WorkspaceService)
|
|
75
|
-
], HostedPluginInformer.prototype, "workspaceService", void 0);
|
|
76
|
-
tslib_1.__decorate([
|
|
77
|
-
(0, inversify_1.inject)(plugin_dev_protocol_1.PluginDevServer),
|
|
78
|
-
tslib_1.__metadata("design:type", Object)
|
|
79
|
-
], HostedPluginInformer.prototype, "hostedPluginServer", void 0);
|
|
80
|
-
tslib_1.__decorate([
|
|
81
|
-
(0, inversify_1.inject)(connection_status_service_1.ConnectionStatusService),
|
|
82
|
-
tslib_1.__metadata("design:type", Object)
|
|
83
|
-
], HostedPluginInformer.prototype, "connectionStatusService", void 0);
|
|
84
|
-
tslib_1.__decorate([
|
|
85
|
-
(0, inversify_1.inject)(frontend_application_state_1.FrontendApplicationStateService),
|
|
86
|
-
tslib_1.__metadata("design:type", frontend_application_state_1.FrontendApplicationStateService)
|
|
87
|
-
], HostedPluginInformer.prototype, "frontendApplicationStateService", void 0);
|
|
88
|
-
tslib_1.__decorate([
|
|
89
|
-
(0, inversify_1.inject)(window_title_service_1.WindowTitleService),
|
|
90
|
-
tslib_1.__metadata("design:type", window_title_service_1.WindowTitleService)
|
|
91
|
-
], HostedPluginInformer.prototype, "windowTitleService", void 0);
|
|
92
|
-
exports.HostedPluginInformer = HostedPluginInformer = HostedPluginInformer_1 = tslib_1.__decorate([
|
|
93
|
-
(0, inversify_1.injectable)()
|
|
94
|
-
], HostedPluginInformer);
|
|
95
|
-
//# sourceMappingURL=hosted-plugin-informer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-plugin-informer.js","sourceRoot":"","sources":["../../src/browser/hosted-plugin-informer.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,8EAA0E;AAC1E,qDAA8G;AAC9G,0DAAgE;AAChE,uEAAgE;AAChE,iGAA8G;AAC9G,mGAAqG;AACrG,oDAAiD;AACjD,8FAAyF;AAEzF;;;GAGG;AAEI,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IA4BtB,UAAU;QACb,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;YAC5D,IAAI,cAAc,EAAE,CAAC;gBACjB,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC;oBAC3B,eAAe,EAAE,sBAAoB,CAAC,sBAAsB;iBAC/D,CAAC,CAAC;gBAEH,IAAI,CAAC,KAAK,GAAG;oBACT,IAAI,EAAE,WAAW,sBAAoB,CAAC,sBAAsB,EAAE;oBAC9D,OAAO,EAAE,GAAG,SAAG,CAAC,QAAQ,CAAC,+BAA+B,EAAE,eAAe,CAAC,KAAK,cAAc,CAAC,KAAK,CAAC,IAAI,GAAG;oBAC3G,SAAS,EAAE,4BAAkB,CAAC,IAAI;oBAClC,QAAQ,EAAE,GAAG;iBAChB,CAAC;gBAEF,IAAI,CAAC,+BAA+B,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;oBACjE,IAAI,CAAC,sBAAsB,EAAE,CAAC;gBAClC,CAA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el, OutputChannelManager } from '@theia/output/lib/browser/output-channel';
|
|
2
|
-
import { OutputContribution } from '@theia/output/lib/browser/output-contribution';
|
|
3
|
-
import { LogPart } from '@theia/plugin-ext/lib/common/types';
|
|
4
|
-
import { HostedPluginWatcher } from '@theia/plugin-ext/lib/hosted/browser/hosted-plugin-watcher';
|
|
5
|
-
export declare class HostedPluginLogViewer {
|
|
6
|
-
static OUTPUT_CHANNEL_NAME: string;
|
|
7
|
-
protected readonly watcher: HostedPluginWatcher;
|
|
8
|
-
protected readonly outputChannelManager: OutputChannelManager;
|
|
9
|
-
protected readonly outputContribution: OutputContribution;
|
|
10
|
-
protected channel: OutputChannel;
|
|
11
|
-
showLogConsole(): void;
|
|
12
|
-
protected init(): void;
|
|
13
|
-
protected logMessageEventHandler(event: LogPart): void;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=hosted-plugin-log-viewer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-plugin-log-viewer.d.ts","sourceRoot":"","sources":["../../src/browser/hosted-plugin-log-viewer.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAEjG,qBACa,qBAAqB;IAC9B,OAAc,mBAAmB,SAAyB;IAG1D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IAEhD,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAE9D,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAE1D,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;IAEjC,cAAc,IAAI,IAAI;IAOtB,SAAS,CAAC,IAAI,IAAI,IAAI;IAKtB,SAAS,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;CAIzD"}
|
|
@@ -1,62 +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
|
-
var HostedPluginLogViewer_1;
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.HostedPluginLogViewer = void 0;
|
|
20
|
-
const tslib_1 = require("tslib");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const output_channel_1 = require("@theia/output/lib/browser/output-channel");
|
|
23
|
-
const output_contribution_1 = require("@theia/output/lib/browser/output-contribution");
|
|
24
|
-
const hosted_plugin_watcher_1 = require("@theia/plugin-ext/lib/hosted/browser/hosted-plugin-watcher");
|
|
25
|
-
let HostedPluginLogViewer = HostedPluginLogViewer_1 = class HostedPluginLogViewer {
|
|
26
|
-
showLogConsole() {
|
|
27
|
-
this.outputContribution.openView({ reveal: true }).then(view => {
|
|
28
|
-
view.activate();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
init() {
|
|
32
|
-
this.channel = this.outputChannelManager.getChannel(HostedPluginLogViewer_1.OUTPUT_CHANNEL_NAME);
|
|
33
|
-
this.watcher.onLogMessageEvent(event => this.logMessageEventHandler(event));
|
|
34
|
-
}
|
|
35
|
-
logMessageEventHandler(event) {
|
|
36
|
-
this.channel.appendLine(event.data);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.HostedPluginLogViewer = HostedPluginLogViewer;
|
|
40
|
-
HostedPluginLogViewer.OUTPUT_CHANNEL_NAME = 'hosted-instance-log';
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
(0, inversify_1.inject)(hosted_plugin_watcher_1.HostedPluginWatcher),
|
|
43
|
-
tslib_1.__metadata("design:type", hosted_plugin_watcher_1.HostedPluginWatcher)
|
|
44
|
-
], HostedPluginLogViewer.prototype, "watcher", void 0);
|
|
45
|
-
tslib_1.__decorate([
|
|
46
|
-
(0, inversify_1.inject)(output_channel_1.OutputChannelManager),
|
|
47
|
-
tslib_1.__metadata("design:type", output_channel_1.OutputChannelManager)
|
|
48
|
-
], HostedPluginLogViewer.prototype, "outputChannelManager", void 0);
|
|
49
|
-
tslib_1.__decorate([
|
|
50
|
-
(0, inversify_1.inject)(output_contribution_1.OutputContribution),
|
|
51
|
-
tslib_1.__metadata("design:type", output_contribution_1.OutputContribution)
|
|
52
|
-
], HostedPluginLogViewer.prototype, "outputContribution", void 0);
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
(0, inversify_1.postConstruct)(),
|
|
55
|
-
tslib_1.__metadata("design:type", Function),
|
|
56
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
57
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
58
|
-
], HostedPluginLogViewer.prototype, "init", null);
|
|
59
|
-
exports.HostedPluginLogViewer = HostedPluginLogViewer = HostedPluginLogViewer_1 = tslib_1.__decorate([
|
|
60
|
-
(0, inversify_1.injectable)()
|
|
61
|
-
], HostedPluginLogViewer);
|
|
62
|
-
//# sourceMappingURL=hosted-plugin-log-viewer.js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BAAM,EAAC,wCAAkB,CAAC;sCACY,wCAAkB;iEAAC;AAWhD;IADT,IAAA,yBAAa,GAAE;;;;iDAIf;gCAtBQ,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CA4BjC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import URI from '@theia/core/lib/common/uri';
|
|
2
|
-
import { MessageService, Command, Emitter, Event } from '@theia/core/lib/common';
|
|
3
|
-
import { LabelProvider } from '@theia/core/lib/browser';
|
|
4
|
-
import { WindowService } from '@theia/core/lib/browser/window/window-service';
|
|
5
|
-
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
6
|
-
import { FileDialogService } from '@theia/filesystem/lib/browser';
|
|
7
|
-
import { PluginDebugConfiguration, PluginDevServer } from '../common/plugin-dev-protocol';
|
|
8
|
-
import { LaunchVSCodeRequest, LaunchVSCodeResult } from '@theia/debug/lib/browser/debug-contribution';
|
|
9
|
-
import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
|
|
10
|
-
import { HostedPluginPreferences } from '../common/hosted-plugin-preferences';
|
|
11
|
-
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
12
|
-
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
13
|
-
import { DebugSessionConnection } from '@theia/debug/lib/browser/debug-session-connection';
|
|
14
|
-
/**
|
|
15
|
-
* Commands to control Hosted plugin instances.
|
|
16
|
-
*/
|
|
17
|
-
export declare namespace HostedPluginCommands {
|
|
18
|
-
const START: Command;
|
|
19
|
-
const DEBUG: Command;
|
|
20
|
-
const STOP: Command;
|
|
21
|
-
const RESTART: Command;
|
|
22
|
-
const SELECT_PATH: Command;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Available states of hosted plugin instance.
|
|
26
|
-
*/
|
|
27
|
-
export declare enum HostedInstanceState {
|
|
28
|
-
STOPPED = "stopped",
|
|
29
|
-
STARTING = "starting",
|
|
30
|
-
RUNNING = "running",
|
|
31
|
-
STOPPING = "stopping",
|
|
32
|
-
FAILED = "failed"
|
|
33
|
-
}
|
|
34
|
-
export interface HostedInstanceData {
|
|
35
|
-
state: HostedInstanceState;
|
|
36
|
-
pluginLocation: URI;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Responsible for UI to set up and control Hosted Plugin Instance.
|
|
40
|
-
*/
|
|
41
|
-
export declare class HostedPluginManagerClient {
|
|
42
|
-
private openNewTabAskDialog;
|
|
43
|
-
private connection;
|
|
44
|
-
protected pluginLocation: URI | undefined;
|
|
45
|
-
protected pluginInstanceURL: string | undefined;
|
|
46
|
-
protected isDebug: boolean;
|
|
47
|
-
protected readonly stateChanged: Emitter<HostedInstanceData>;
|
|
48
|
-
get onStateChanged(): Event<HostedInstanceData>;
|
|
49
|
-
protected readonly hostedPluginServer: PluginDevServer;
|
|
50
|
-
protected readonly messageService: MessageService;
|
|
51
|
-
protected readonly labelProvider: LabelProvider;
|
|
52
|
-
protected readonly windowService: WindowService;
|
|
53
|
-
protected readonly fileService: FileService;
|
|
54
|
-
protected readonly environments: EnvVariablesServer;
|
|
55
|
-
protected readonly workspaceService: WorkspaceService;
|
|
56
|
-
protected readonly debugSessionManager: DebugSessionManager;
|
|
57
|
-
protected readonly hostedPluginPreferences: HostedPluginPreferences;
|
|
58
|
-
protected readonly fileDialogService: FileDialogService;
|
|
59
|
-
protected init(): void;
|
|
60
|
-
protected doInit(): Promise<void>;
|
|
61
|
-
get lastPluginLocation(): string | undefined;
|
|
62
|
-
start(debugConfig?: PluginDebugConfiguration): Promise<void>;
|
|
63
|
-
debug(config?: PluginDebugConfiguration): Promise<string | undefined>;
|
|
64
|
-
startDebugSessionManager(): Promise<void>;
|
|
65
|
-
stop(checkRunning?: boolean): Promise<void>;
|
|
66
|
-
restart(): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Creates directory choose dialog and set selected folder into pluginLocation field.
|
|
69
|
-
*/
|
|
70
|
-
selectPluginPath(): Promise<void>;
|
|
71
|
-
register(configType: string, connection: DebugSessionConnection): void;
|
|
72
|
-
/**
|
|
73
|
-
* Opens window with URL to the running plugin instance.
|
|
74
|
-
*/
|
|
75
|
-
protected openPluginWindow(): Promise<void>;
|
|
76
|
-
protected launchVSCode({ arguments: { args } }: LaunchVSCodeRequest): Promise<LaunchVSCodeResult>;
|
|
77
|
-
protected getErrorMessage(error: any): string;
|
|
78
|
-
private setDebugConfig;
|
|
79
|
-
private getDebugPluginConfig;
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=hosted-plugin-manager-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-plugin-manager-client.d.ts","sourceRoot":"","sources":["../../src/browser/hosted-plugin-manager-client.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,aAAa,EAA4B,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAwB,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAC5H,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAG3F;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