@theia/remote 1.45.0 → 1.46.0-next.241
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/lib/electron-browser/local-backend-services.d.ts +11 -0
- package/lib/electron-browser/local-backend-services.d.ts.map +1 -0
- package/lib/electron-browser/local-backend-services.js +37 -0
- package/lib/electron-browser/local-backend-services.js.map +1 -0
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts +6 -0
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts.map +1 -0
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.js +40 -0
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.js.map +1 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts +20 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts.map +1 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-service.js +89 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-service.js.map +1 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts +17 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts.map +1 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.js +125 -0
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.js.map +1 -0
- package/lib/electron-browser/remote-electron-file-dialog-service.js +5 -13
- package/lib/electron-browser/remote-electron-file-dialog-service.js.map +1 -1
- package/lib/electron-browser/remote-frontend-contribution.d.ts +1 -1
- package/lib/electron-browser/remote-frontend-contribution.d.ts.map +1 -1
- package/lib/electron-browser/remote-frontend-contribution.js +27 -33
- package/lib/electron-browser/remote-frontend-contribution.js.map +1 -1
- package/lib/electron-browser/remote-frontend-module.d.ts +1 -0
- package/lib/electron-browser/remote-frontend-module.d.ts.map +1 -1
- package/lib/electron-browser/remote-frontend-module.js +29 -2
- package/lib/electron-browser/remote-frontend-module.js.map +1 -1
- package/lib/electron-browser/remote-preferences.d.ts +1 -1
- package/lib/electron-browser/remote-preferences.d.ts.map +1 -1
- package/lib/electron-browser/remote-registry-contribution.d.ts +1 -1
- package/lib/electron-browser/remote-registry-contribution.d.ts.map +1 -1
- package/lib/electron-browser/remote-registry-contribution.js +11 -16
- package/lib/electron-browser/remote-registry-contribution.js.map +1 -1
- package/lib/electron-browser/remote-service.js +3 -8
- package/lib/electron-browser/remote-service.js.map +1 -1
- package/lib/electron-browser/remote-ssh-contribution.js +12 -20
- package/lib/electron-browser/remote-ssh-contribution.js.map +1 -1
- package/lib/electron-browser/remote-user-storage-provider.d.ts +21 -0
- package/lib/electron-browser/remote-user-storage-provider.d.ts.map +1 -0
- package/lib/electron-browser/remote-user-storage-provider.js +75 -0
- package/lib/electron-browser/remote-user-storage-provider.js.map +1 -0
- package/lib/electron-common/remote-port-forwarding-provider.d.ts +12 -0
- package/lib/electron-common/remote-port-forwarding-provider.d.ts.map +1 -0
- package/lib/electron-common/remote-port-forwarding-provider.js +21 -0
- package/lib/electron-common/remote-port-forwarding-provider.js.map +1 -0
- package/lib/electron-common/remote-status-service.d.ts +2 -1
- package/lib/electron-common/remote-status-service.d.ts.map +1 -1
- package/lib/electron-node/backend-remote-service-impl.d.ts +1 -1
- package/lib/electron-node/backend-remote-service-impl.d.ts.map +1 -1
- package/lib/electron-node/backend-remote-service-impl.js +4 -9
- package/lib/electron-node/backend-remote-service-impl.js.map +1 -1
- package/lib/electron-node/remote-backend-module.d.ts.map +1 -1
- package/lib/electron-node/remote-backend-module.js +10 -4
- package/lib/electron-node/remote-backend-module.js.map +1 -1
- package/lib/electron-node/remote-connection-service.d.ts +2 -2
- package/lib/electron-node/remote-connection-service.d.ts.map +1 -1
- package/lib/electron-node/remote-connection-service.js +17 -19
- package/lib/electron-node/remote-connection-service.js.map +1 -1
- package/lib/electron-node/remote-connection-socket-provider.js +3 -8
- package/lib/electron-node/remote-connection-socket-provider.js.map +1 -1
- package/lib/electron-node/remote-port-forwarding-provider.d.ts +19 -0
- package/lib/electron-node/remote-port-forwarding-provider.d.ts.map +1 -0
- package/lib/electron-node/remote-port-forwarding-provider.js +59 -0
- package/lib/electron-node/remote-port-forwarding-provider.js.map +1 -0
- package/lib/electron-node/remote-proxy-server-provider.js +3 -8
- package/lib/electron-node/remote-proxy-server-provider.js.map +1 -1
- package/lib/electron-node/remote-status-service.d.ts +1 -0
- package/lib/electron-node/remote-status-service.d.ts.map +1 -1
- package/lib/electron-node/remote-status-service.js +11 -13
- package/lib/electron-node/remote-status-service.js.map +1 -1
- package/lib/electron-node/remote-types.d.ts +21 -8
- package/lib/electron-node/remote-types.d.ts.map +1 -1
- package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +1 -1
- package/lib/electron-node/setup/app-native-dependency-contribution.d.ts.map +1 -1
- package/lib/electron-node/setup/app-native-dependency-contribution.js +3 -8
- package/lib/electron-node/setup/app-native-dependency-contribution.js.map +1 -1
- package/lib/electron-node/setup/main-copy-contribution.d.ts +1 -1
- package/lib/electron-node/setup/main-copy-contribution.d.ts.map +1 -1
- package/lib/electron-node/setup/main-copy-contribution.js +3 -8
- package/lib/electron-node/setup/main-copy-contribution.js.map +1 -1
- package/lib/electron-node/setup/remote-copy-contribution.d.ts +3 -19
- package/lib/electron-node/setup/remote-copy-contribution.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-copy-contribution.js +20 -25
- package/lib/electron-node/setup/remote-copy-contribution.js.map +1 -1
- package/lib/electron-node/setup/remote-copy-service.d.ts +5 -3
- package/lib/electron-node/setup/remote-copy-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-copy-service.js +14 -21
- package/lib/electron-node/setup/remote-copy-service.js.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts +2 -2
- package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-contribution.js +2 -2
- package/lib/electron-node/setup/remote-native-dependency-contribution.js.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-service.d.ts +1 -1
- package/lib/electron-node/setup/remote-native-dependency-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-service.js +7 -15
- package/lib/electron-node/setup/remote-native-dependency-service.js.map +1 -1
- package/lib/electron-node/setup/remote-node-setup-service.d.ts +1 -1
- package/lib/electron-node/setup/remote-node-setup-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-node-setup-service.js +7 -15
- package/lib/electron-node/setup/remote-node-setup-service.js.map +1 -1
- package/lib/electron-node/setup/remote-setup-script-service.d.ts +1 -1
- package/lib/electron-node/setup/remote-setup-script-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-setup-script-service.js +11 -19
- package/lib/electron-node/setup/remote-setup-script-service.js.map +1 -1
- package/lib/electron-node/setup/remote-setup-service.d.ts +9 -2
- package/lib/electron-node/setup/remote-setup-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-setup-service.js +39 -23
- package/lib/electron-node/setup/remote-setup-service.js.map +1 -1
- package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +1 -1
- package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
- package/lib/electron-node/ssh/remote-ssh-connection-provider.js +28 -34
- package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
- package/lib/electron-node/ssh/ssh-identity-file-collector.js +3 -8
- package/lib/electron-node/ssh/ssh-identity-file-collector.js.map +1 -1
- package/package.json +11 -10
- package/src/electron-browser/local-backend-services.ts +31 -0
- package/src/electron-browser/port-forwarding/port-forwading-contribution.ts +33 -0
- package/src/electron-browser/port-forwarding/port-forwarding-service.ts +93 -0
- package/src/electron-browser/port-forwarding/port-forwarding-widget.tsx +140 -0
- package/src/electron-browser/remote-frontend-contribution.ts +9 -7
- package/src/electron-browser/remote-frontend-module.ts +39 -3
- package/src/electron-browser/remote-registry-contribution.ts +9 -6
- package/src/electron-browser/remote-user-storage-provider.ts +64 -0
- package/src/electron-browser/style/port-forwarding-widget.css +44 -0
- package/src/electron-common/remote-port-forwarding-provider.ts +30 -0
- package/src/electron-common/remote-status-service.ts +3 -1
- package/src/electron-node/backend-remote-service-impl.ts +1 -1
- package/src/electron-node/remote-backend-module.ts +10 -3
- package/src/electron-node/remote-connection-service.ts +9 -4
- package/src/electron-node/remote-port-forwarding-provider.ts +66 -0
- package/src/electron-node/remote-status-service.ts +7 -0
- package/src/electron-node/remote-types.ts +20 -7
- package/src/electron-node/setup/app-native-dependency-contribution.ts +1 -1
- package/src/electron-node/setup/main-copy-contribution.ts +1 -1
- package/src/electron-node/setup/remote-copy-contribution.ts +14 -30
- package/src/electron-node/setup/remote-copy-service.ts +6 -4
- package/src/electron-node/setup/remote-native-dependency-contribution.ts +1 -1
- package/src/electron-node/setup/remote-native-dependency-service.ts +1 -1
- package/src/electron-node/setup/remote-node-setup-service.ts +1 -1
- package/src/electron-node/setup/remote-setup-script-service.ts +1 -1
- package/src/electron-node/setup/remote-setup-service.ts +31 -6
- package/src/electron-node/ssh/remote-ssh-connection-provider.ts +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-frontend-module.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-frontend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC
|
|
1
|
+
{"version":3,"file":"remote-frontend-module.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-frontend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAgB/D,OAAO,6DAA6D,CAAC;;AAOrE,wBA2CG"}
|
|
@@ -27,6 +27,17 @@ const remote_status_service_1 = require("../electron-common/remote-status-servic
|
|
|
27
27
|
const electron_file_dialog_service_1 = require("@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service");
|
|
28
28
|
const remote_electron_file_dialog_service_1 = require("./remote-electron-file-dialog-service");
|
|
29
29
|
const remote_preferences_1 = require("./remote-preferences");
|
|
30
|
+
const port_forwarding_widget_1 = require("./port-forwarding/port-forwarding-widget");
|
|
31
|
+
const port_forwading_contribution_1 = require("./port-forwarding/port-forwading-contribution");
|
|
32
|
+
const port_forwarding_service_1 = require("./port-forwarding/port-forwarding-service");
|
|
33
|
+
const remote_port_forwarding_provider_1 = require("../electron-common/remote-port-forwarding-provider");
|
|
34
|
+
const service_connection_provider_1 = require("@theia/core/lib/browser/messaging/service-connection-provider");
|
|
35
|
+
require("../../src/electron-browser/style/port-forwarding-widget.css");
|
|
36
|
+
const user_storage_contribution_1 = require("@theia/userstorage/lib/browser/user-storage-contribution");
|
|
37
|
+
const remote_user_storage_provider_1 = require("./remote-user-storage-provider");
|
|
38
|
+
const remote_file_system_provider_1 = require("@theia/filesystem/lib/common/remote-file-system-provider");
|
|
39
|
+
const local_backend_services_1 = require("./local-backend-services");
|
|
40
|
+
const env_variables_1 = require("@theia/core/lib/common/env-variables");
|
|
30
41
|
exports.default = new inversify_1.ContainerModule((bind, _, __, rebind) => {
|
|
31
42
|
bind(remote_frontend_contribution_1.RemoteFrontendContribution).toSelf().inSingletonScope();
|
|
32
43
|
bind(browser_1.FrontendApplicationContribution).toService(remote_frontend_contribution_1.RemoteFrontendContribution);
|
|
@@ -37,7 +48,23 @@ exports.default = new inversify_1.ContainerModule((bind, _, __, rebind) => {
|
|
|
37
48
|
(0, remote_preferences_1.bindRemotePreferences)(bind);
|
|
38
49
|
rebind(electron_file_dialog_service_1.ElectronFileDialogService).to(remote_electron_file_dialog_service_1.RemoteElectronFileDialogService).inSingletonScope();
|
|
39
50
|
bind(remote_service_1.RemoteService).toSelf().inSingletonScope();
|
|
40
|
-
bind(
|
|
41
|
-
bind(
|
|
51
|
+
bind(port_forwarding_widget_1.PortForwardingWidget).toSelf();
|
|
52
|
+
bind(browser_1.WidgetFactory).toDynamicValue(context => ({
|
|
53
|
+
id: port_forwarding_widget_1.PORT_FORWARDING_WIDGET_ID,
|
|
54
|
+
createWidget: () => context.container.get(port_forwarding_widget_1.PortForwardingWidget)
|
|
55
|
+
}));
|
|
56
|
+
(0, browser_1.bindViewContribution)(bind, port_forwading_contribution_1.PortForwardingContribution);
|
|
57
|
+
bind(port_forwarding_service_1.PortForwardingService).toSelf().inSingletonScope();
|
|
58
|
+
bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath)).inSingletonScope();
|
|
59
|
+
bind(remote_status_service_1.RemoteStatusService).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_status_service_1.RemoteStatusServicePath)).inSingletonScope();
|
|
60
|
+
bind(remote_port_forwarding_provider_1.RemotePortForwardingProvider).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_port_forwarding_provider_1.RemoteRemotePortForwardingProviderPath)).inSingletonScope();
|
|
61
|
+
bind(local_backend_services_1.LocalRemoteFileSytemServer).toDynamicValue(ctx => browser_1.isRemote ?
|
|
62
|
+
service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_file_system_provider_1.remoteFileSystemPath, new remote_file_system_provider_1.RemoteFileSystemProxyFactory()) :
|
|
63
|
+
ctx.container.get(remote_file_system_provider_1.RemoteFileSystemServer));
|
|
64
|
+
bind(local_backend_services_1.LocalEnvVariablesServer).toDynamicValue(ctx => browser_1.isRemote ?
|
|
65
|
+
service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, env_variables_1.envVariablesPath) :
|
|
66
|
+
ctx.container.get(env_variables_1.EnvVariablesServer));
|
|
67
|
+
bind(local_backend_services_1.LocalRemoteFileSystemProvider).toSelf().inSingletonScope();
|
|
68
|
+
rebind(user_storage_contribution_1.UserStorageContribution).to(remote_user_storage_provider_1.RemoteUserStorageContribution);
|
|
42
69
|
});
|
|
43
70
|
//# sourceMappingURL=remote-frontend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-frontend-module.js","sourceRoot":"","sources":["../../src/electron-browser/remote-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,sCAA4E;AAC5E,4DAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"remote-frontend-module.js","sourceRoot":"","sources":["../../src/electron-browser/remote-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,sCAA4E;AAC5E,4DAA+D;AAC/D,qDAAyH;AACzH,uEAAkE;AAClE,sGAAiI;AACjI,iFAA4E;AAC5E,iFAA4E;AAC5E,qDAAiD;AACjD,oFAAwG;AACxG,kIAA4H;AAC5H,+FAAwF;AACxF,6DAA6D;AAC7D,qFAA2G;AAC3G,+FAA2F;AAC3F,uFAAkF;AAClF,wGAA0I;AAC1I,+GAA0G;AAC1G,uEAAqE;AACrE,wGAAmG;AACnG,iFAA+E;AAC/E,0GAAsJ;AACtJ,qEAA8H;AAC9H,wEAA4F;AAE5F,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;IACvD,IAAI,CAAC,yDAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,yCAA+B,CAAC,CAAC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,CAAC,SAAS,EAAE,+CAAuB,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAEhI,IAAI,CAAC,8DAA4B,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CACpD,uDAAyB,CAAC,gBAAgB,CAA+B,GAAG,CAAC,SAAS,EAAE,wEAAsC,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAExJ,IAAI,CAAC,mDAA0B,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAClD,kBAAQ,CAAC,CAAC;QACN,uDAAyB,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAAS,EAAE,kDAAoB,EAAE,IAAI,0DAA4B,EAAE,CAAC,CAAC,CAAC;QACrH,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,oDAAsB,CAAC,CAAC,CAAC;IACnD,IAAI,CAAC,gDAAuB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAC/C,kBAAQ,CAAC,CAAC;QACN,uDAAyB,CAAC,gBAAgB,CAAqB,GAAG,CAAC,SAAS,EAAE,gCAAgB,CAAC,CAAC,CAAC;QACjG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,kCAAkB,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,sDAA6B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAChE,MAAM,CAAC,mDAAuB,CAAC,CAAC,EAAE,CAAC,4DAA6B,CAAC,CAAC;AAEtE,CAAC,CAAC,CAAC"}
|
|
@@ -6,6 +6,6 @@ export interface RemoteConfiguration {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const RemotePreferenceContribution: unique symbol;
|
|
8
8
|
export declare const RemotePreferences: unique symbol;
|
|
9
|
-
export
|
|
9
|
+
export type RemotePreferences = PreferenceProxy<RemoteConfiguration>;
|
|
10
10
|
export declare function bindRemotePreferences(bind: interfaces.Bind): void;
|
|
11
11
|
//# sourceMappingURL=remote-preferences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-preferences.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EACH,eAAe,EACf,gBAAgB,EAEnB,MAAM,qCAAqC,CAAC;AAW7C,eAAO,MAAM,sBAAsB,EAAE,gBAYpC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,6BAA6B,EAAE,MAAM,CAAC;CACzC;AAED,eAAO,MAAM,4BAA4B,eAAyC,CAAC;AACnF,eAAO,MAAM,iBAAiB,eAAsC,CAAC;AACrE,
|
|
1
|
+
{"version":3,"file":"remote-preferences.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EACH,eAAe,EACf,gBAAgB,EAEnB,MAAM,qCAAqC,CAAC;AAW7C,eAAO,MAAM,sBAAsB,EAAE,gBAYpC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,6BAA6B,EAAE,MAAM,CAAC;CACzC;AAED,eAAO,MAAM,4BAA4B,eAAyC,CAAC;AACnF,eAAO,MAAM,iBAAiB,eAAsC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAErE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAOjE"}
|
|
@@ -7,7 +7,7 @@ export interface RemoteRegistryContribution {
|
|
|
7
7
|
export declare abstract class AbstractRemoteRegistryContribution implements RemoteRegistryContribution {
|
|
8
8
|
protected readonly windowService: WindowService;
|
|
9
9
|
abstract registerRemoteCommands(registry: RemoteRegistry): void;
|
|
10
|
-
protected openRemote(port: string, newWindow: boolean): void;
|
|
10
|
+
protected openRemote(port: string, newWindow: boolean, workspace?: string): void;
|
|
11
11
|
}
|
|
12
12
|
export declare class RemoteRegistry {
|
|
13
13
|
protected _commands: Command[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-registry-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-registry-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"remote-registry-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-registry-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAuB,MAAM,+CAA+C,CAAC;AAEnG,eAAO,MAAM,0BAA0B,eAAuC,CAAC;AAE/E,MAAM,WAAW,0BAA0B;IACvC,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CAC1D;AAED,8BACsB,kCAAmC,YAAW,0BAA0B;IAG1F,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,QAAQ,CAAC,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAE/D,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;CAmBnF;AAED,qBAAa,cAAc;IAEvB,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,CAAM;IACpC,SAAS,CAAC,2BAA2B,iDAAwD;IAE7F,IAAI,QAAQ,IAAI,SAAS,OAAO,EAAE,CAEjC;IAED,IAAI,oBAAoB,IAAI,KAAK,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC,CAEvE;IAED,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI;CAIpE"}
|
|
@@ -14,30 +14,25 @@
|
|
|
14
14
|
//
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
18
|
exports.RemoteRegistry = exports.AbstractRemoteRegistryContribution = exports.RemoteRegistryContribution = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
28
20
|
const core_1 = require("@theia/core");
|
|
29
21
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
22
|
const window_service_1 = require("@theia/core/lib/browser/window/window-service");
|
|
31
23
|
exports.RemoteRegistryContribution = Symbol('RemoteRegistryContribution');
|
|
32
24
|
let AbstractRemoteRegistryContribution = class AbstractRemoteRegistryContribution {
|
|
33
|
-
openRemote(port, newWindow) {
|
|
25
|
+
openRemote(port, newWindow, workspace) {
|
|
34
26
|
const searchParams = new URLSearchParams(location.search);
|
|
35
27
|
const localPort = searchParams.get('localPort') || searchParams.get('port');
|
|
36
28
|
const options = {
|
|
37
|
-
port
|
|
29
|
+
search: { port }
|
|
38
30
|
};
|
|
39
31
|
if (localPort) {
|
|
40
|
-
options.localPort = localPort;
|
|
32
|
+
options.search.localPort = localPort;
|
|
33
|
+
}
|
|
34
|
+
if (workspace) {
|
|
35
|
+
options.hash = workspace;
|
|
41
36
|
}
|
|
42
37
|
if (newWindow) {
|
|
43
38
|
this.windowService.openNewDefaultWindow(options);
|
|
@@ -47,14 +42,14 @@ let AbstractRemoteRegistryContribution = class AbstractRemoteRegistryContributio
|
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
44
|
};
|
|
50
|
-
|
|
45
|
+
exports.AbstractRemoteRegistryContribution = AbstractRemoteRegistryContribution;
|
|
46
|
+
tslib_1.__decorate([
|
|
51
47
|
(0, inversify_1.inject)(window_service_1.WindowService),
|
|
52
|
-
__metadata("design:type", Object)
|
|
48
|
+
tslib_1.__metadata("design:type", Object)
|
|
53
49
|
], AbstractRemoteRegistryContribution.prototype, "windowService", void 0);
|
|
54
|
-
AbstractRemoteRegistryContribution = __decorate([
|
|
50
|
+
exports.AbstractRemoteRegistryContribution = AbstractRemoteRegistryContribution = tslib_1.__decorate([
|
|
55
51
|
(0, inversify_1.injectable)()
|
|
56
52
|
], AbstractRemoteRegistryContribution);
|
|
57
|
-
exports.AbstractRemoteRegistryContribution = AbstractRemoteRegistryContribution;
|
|
58
53
|
class RemoteRegistry {
|
|
59
54
|
constructor() {
|
|
60
55
|
this._commands = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-registry-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/remote-registry-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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
|
|
1
|
+
{"version":3,"file":"remote-registry-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/remote-registry-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,sCAAsE;AACtE,4DAAkE;AAClE,kFAAmG;AAEtF,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAOxE,IAAe,kCAAkC,GAAjD,MAAe,kCAAkC;IAO1C,UAAU,CAAC,IAAY,EAAE,SAAkB,EAAE,SAAkB;QACrE,MAAM,YAAY,GAAG,IAAI,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC1D,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC5E,MAAM,OAAO,GAAwB;YACjC,MAAM,EAAE,EAAE,IAAI,EAAE;SACnB,CAAC;QACF,IAAI,SAAS,EAAE,CAAC;YACZ,OAAO,CAAC,MAAO,CAAC,SAAS,GAAG,SAAS,CAAC;QAC1C,CAAC;QACD,IAAI,SAAS,EAAE,CAAC;YACZ,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC;QAC7B,CAAC;QAED,IAAI,SAAS,EAAE,CAAC;YACZ,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;QACrD,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,CAAC;IACL,CAAC;CACJ,CAAA;AA1BqB,gFAAkC;AAGjC;IADlB,IAAA,kBAAM,EAAC,8BAAa,CAAC;;yEAC0B;6CAH9B,kCAAkC;IADvD,IAAA,sBAAU,GAAE;GACS,kCAAkC,CA0BvD;AAED,MAAa,cAAc;IAA3B;QAEc,cAAS,GAAc,EAAE,CAAC;QAC1B,gCAA2B,GAAG,IAAI,cAAO,EAAyC,CAAC;IAcjG,CAAC;IAZG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,IAAI,oBAAoB;QACpB,OAAO,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAClD,CAAC;IAED,eAAe,CAAC,OAAgB,EAAE,OAAwB;QACtD,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;QAC1D,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACJ;AAjBD,wCAiBC"}
|
|
@@ -14,14 +14,9 @@
|
|
|
14
14
|
//
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
18
|
exports.RemoteService = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
25
20
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
21
|
let RemoteService = class RemoteService {
|
|
27
22
|
isConnected() {
|
|
@@ -31,8 +26,8 @@ let RemoteService = class RemoteService {
|
|
|
31
26
|
this._connected = value;
|
|
32
27
|
}
|
|
33
28
|
};
|
|
34
|
-
RemoteService =
|
|
29
|
+
exports.RemoteService = RemoteService;
|
|
30
|
+
exports.RemoteService = RemoteService = tslib_1.__decorate([
|
|
35
31
|
(0, inversify_1.injectable)()
|
|
36
32
|
], RemoteService);
|
|
37
|
-
exports.RemoteService = RemoteService;
|
|
38
33
|
//# sourceMappingURL=remote-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-service.js","sourceRoot":"","sources":["../../src/electron-browser/remote-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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
|
|
1
|
+
{"version":3,"file":"remote-service.js","sourceRoot":"","sources":["../../src/electron-browser/remote-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,4DAA0D;AAGnD,IAAM,aAAa,GAAnB,MAAM,aAAa;IAItB,WAAW;QACP,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,YAAY,CAAC,KAAc;QACvB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC5B,CAAC;CACJ,CAAA;AAXY,sCAAa;wBAAb,aAAa;IADzB,IAAA,sBAAU,GAAE;GACA,aAAa,CAWzB"}
|
|
@@ -14,17 +14,9 @@
|
|
|
14
14
|
//
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
18
|
exports.RemoteSSHContribution = exports.RemoteSSHCommands = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
28
20
|
const core_1 = require("@theia/core");
|
|
29
21
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
22
|
const remote_ssh_connection_provider_1 = require("../electron-common/remote-ssh-connection-provider");
|
|
@@ -42,7 +34,7 @@ var RemoteSSHCommands;
|
|
|
42
34
|
category: 'SSH',
|
|
43
35
|
label: 'Connect Current Window to Host...',
|
|
44
36
|
}, 'theia/remoteSSH/connect');
|
|
45
|
-
})(RemoteSSHCommands
|
|
37
|
+
})(RemoteSSHCommands || (exports.RemoteSSHCommands = RemoteSSHCommands = {}));
|
|
46
38
|
let RemoteSSHContribution = class RemoteSSHContribution extends remote_registry_contribution_1.AbstractRemoteRegistryContribution {
|
|
47
39
|
registerRemoteCommands(registry) {
|
|
48
40
|
registry.registerCommand(RemoteSSHCommands.CONNECT, {
|
|
@@ -95,24 +87,24 @@ let RemoteSSHContribution = class RemoteSSHContribution extends remote_registry_
|
|
|
95
87
|
});
|
|
96
88
|
}
|
|
97
89
|
};
|
|
98
|
-
|
|
90
|
+
exports.RemoteSSHContribution = RemoteSSHContribution;
|
|
91
|
+
tslib_1.__decorate([
|
|
99
92
|
(0, inversify_1.inject)(core_1.QuickInputService),
|
|
100
|
-
__metadata("design:type", Object)
|
|
93
|
+
tslib_1.__metadata("design:type", Object)
|
|
101
94
|
], RemoteSSHContribution.prototype, "quickInputService", void 0);
|
|
102
|
-
__decorate([
|
|
95
|
+
tslib_1.__decorate([
|
|
103
96
|
(0, inversify_1.inject)(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider),
|
|
104
|
-
__metadata("design:type", Object)
|
|
97
|
+
tslib_1.__metadata("design:type", Object)
|
|
105
98
|
], RemoteSSHContribution.prototype, "sshConnectionProvider", void 0);
|
|
106
|
-
__decorate([
|
|
99
|
+
tslib_1.__decorate([
|
|
107
100
|
(0, inversify_1.inject)(core_1.MessageService),
|
|
108
|
-
__metadata("design:type", core_1.MessageService)
|
|
101
|
+
tslib_1.__metadata("design:type", core_1.MessageService)
|
|
109
102
|
], RemoteSSHContribution.prototype, "messageService", void 0);
|
|
110
|
-
__decorate([
|
|
103
|
+
tslib_1.__decorate([
|
|
111
104
|
(0, inversify_1.inject)(remote_preferences_1.RemotePreferences),
|
|
112
|
-
__metadata("design:type", Object)
|
|
105
|
+
tslib_1.__metadata("design:type", Object)
|
|
113
106
|
], RemoteSSHContribution.prototype, "remotePreferences", void 0);
|
|
114
|
-
RemoteSSHContribution = __decorate([
|
|
107
|
+
exports.RemoteSSHContribution = RemoteSSHContribution = tslib_1.__decorate([
|
|
115
108
|
(0, inversify_1.injectable)()
|
|
116
109
|
], RemoteSSHContribution);
|
|
117
|
-
exports.RemoteSSHContribution = RemoteSSHContribution;
|
|
118
110
|
//# sourceMappingURL=remote-ssh-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-ssh-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/remote-ssh-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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
|
|
1
|
+
{"version":3,"file":"remote-ssh-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/remote-ssh-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,sCAA8E;AAC9E,4DAAkE;AAClE,sGAAgG;AAChG,iFAAoG;AACpG,6DAAyD;AAEzD,IAAiB,iBAAiB,CAWjC;AAXD,WAAiB,iBAAiB;IACjB,yBAAO,GAAY,cAAO,CAAC,kBAAkB,CAAC;QACvD,EAAE,EAAE,oBAAoB;QACxB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,oBAAoB;KAC9B,EAAE,yBAAyB,CAAC,CAAC;IACjB,wCAAsB,GAAY,cAAO,CAAC,kBAAkB,CAAC;QACtE,EAAE,EAAE,iCAAiC;QACrC,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,mCAAmC;KAC7C,EAAE,yBAAyB,CAAC,CAAC;AAClC,CAAC,EAXgB,iBAAiB,iCAAjB,iBAAiB,QAWjC;AAGM,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,iEAAkC;IAczE,sBAAsB,CAAC,QAAwB;QAC3C,QAAQ,CAAC,eAAe,CAAC,iBAAiB,CAA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SystemProvider } from '@theia/filesystem/lib/common/files';
|
|
3
|
+
import { UserStorageContribution } from '@theia/userstorage/lib/browser/user-storage-contribution';
|
|
4
|
+
import { RemoteStatusService } from '../electron-common/remote-status-service';
|
|
5
|
+
import { LocalRemoteFileSystemProvider } from './local-backend-services';
|
|
6
|
+
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
7
|
+
import { URI } from '@theia/core';
|
|
8
|
+
import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
|
|
9
|
+
/**
|
|
10
|
+
* This overide is to have remote connections still use settings, keymaps, etc. from the local machine.
|
|
11
|
+
*/
|
|
12
|
+
export declare class RemoteUserStorageContribution extends UserStorageContribution {
|
|
13
|
+
protected readonly remoteStatusService: RemoteStatusService;
|
|
14
|
+
protected readonly localRemoteFileSystemProvider: LocalRemoteFileSystemProvider;
|
|
15
|
+
protected readonly localEnvironments: EnvVariablesServer;
|
|
16
|
+
isRemoteConnection: Deferred<boolean>;
|
|
17
|
+
protected init(): void;
|
|
18
|
+
protected getDelegate(service: FileService): Promise<FileSystemProvider>;
|
|
19
|
+
protected getCongigDirUri(): Promise<URI>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=remote-user-storage-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-user-storage-provider.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-user-storage-provider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAA2B,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAClG,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E;;GAEG;AACH,qBACa,6BAA8B,SAAQ,uBAAuB;IAEtE,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAG5D,SAAS,CAAC,QAAQ,CAAC,6BAA6B,EAAE,6BAA6B,CAAC;IAGhF,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAEzD,kBAAkB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAkB;IAGvD,SAAS,CAAC,IAAI,IAAI,IAAI;cAOG,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;cAM9D,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC;CAM3D"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2024 TypeFox 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.RemoteUserStorageContribution = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const user_storage_contribution_1 = require("@theia/userstorage/lib/browser/user-storage-contribution");
|
|
22
|
+
const remote_status_service_1 = require("../electron-common/remote-status-service");
|
|
23
|
+
const local_backend_services_1 = require("./local-backend-services");
|
|
24
|
+
const promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
25
|
+
const core_1 = require("@theia/core");
|
|
26
|
+
const env_variables_1 = require("@theia/core/lib/common/env-variables");
|
|
27
|
+
const electron_local_ws_connection_source_1 = require("@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source");
|
|
28
|
+
/**
|
|
29
|
+
* This overide is to have remote connections still use settings, keymaps, etc. from the local machine.
|
|
30
|
+
*/
|
|
31
|
+
let RemoteUserStorageContribution = class RemoteUserStorageContribution extends user_storage_contribution_1.UserStorageContribution {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.isRemoteConnection = new promise_util_1.Deferred();
|
|
35
|
+
}
|
|
36
|
+
init() {
|
|
37
|
+
const port = (0, electron_local_ws_connection_source_1.getCurrentPort)();
|
|
38
|
+
if (port) {
|
|
39
|
+
this.remoteStatusService.getStatus(Number(port)).then(status => this.isRemoteConnection.resolve(status.alive));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
async getDelegate(service) {
|
|
43
|
+
return await this.isRemoteConnection.promise ?
|
|
44
|
+
this.localRemoteFileSystemProvider
|
|
45
|
+
: service.activateProvider('file');
|
|
46
|
+
}
|
|
47
|
+
async getCongigDirUri() {
|
|
48
|
+
return await this.isRemoteConnection.promise ?
|
|
49
|
+
new core_1.URI(await this.localEnvironments.getConfigDirUri())
|
|
50
|
+
: super.getCongigDirUri();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.RemoteUserStorageContribution = RemoteUserStorageContribution;
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, inversify_1.inject)(remote_status_service_1.RemoteStatusService),
|
|
56
|
+
tslib_1.__metadata("design:type", Object)
|
|
57
|
+
], RemoteUserStorageContribution.prototype, "remoteStatusService", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
(0, inversify_1.inject)(local_backend_services_1.LocalRemoteFileSystemProvider),
|
|
60
|
+
tslib_1.__metadata("design:type", local_backend_services_1.LocalRemoteFileSystemProvider)
|
|
61
|
+
], RemoteUserStorageContribution.prototype, "localRemoteFileSystemProvider", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, inversify_1.inject)(local_backend_services_1.LocalEnvVariablesServer),
|
|
64
|
+
tslib_1.__metadata("design:type", Object)
|
|
65
|
+
], RemoteUserStorageContribution.prototype, "localEnvironments", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, inversify_1.postConstruct)(),
|
|
68
|
+
tslib_1.__metadata("design:type", Function),
|
|
69
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
70
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
71
|
+
], RemoteUserStorageContribution.prototype, "init", null);
|
|
72
|
+
exports.RemoteUserStorageContribution = RemoteUserStorageContribution = tslib_1.__decorate([
|
|
73
|
+
(0, inversify_1.injectable)()
|
|
74
|
+
], RemoteUserStorageContribution);
|
|
75
|
+
//# sourceMappingURL=remote-user-storage-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-user-storage-provider.js","sourceRoot":"","sources":["../../src/electron-browser/remote-user-storage-provider.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,4DAAiF;AAGjF,wGAAmG;AACnG,oFAA+E;AAC/E,qEAAkG;AAClG,sEAA+D;AAC/D,sCAAkC;AAClC,wEAA0E;A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
|
|
|
1
|
+
export declare const RemoteRemotePortForwardingProviderPath = "/remote/port-forwarding";
|
|
2
|
+
export declare const RemotePortForwardingProvider: unique symbol;
|
|
3
|
+
export interface ForwardedPort {
|
|
4
|
+
port: number;
|
|
5
|
+
address?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface RemotePortForwardingProvider {
|
|
8
|
+
forwardPort(connectionPort: number, portToForward: ForwardedPort): Promise<void>;
|
|
9
|
+
portRemoved(port: ForwardedPort): Promise<void>;
|
|
10
|
+
getForwardedPorts(): Promise<ForwardedPort[]>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=remote-port-forwarding-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-port-forwarding-provider.d.ts","sourceRoot":"","sources":["../../src/electron-common/remote-port-forwarding-provider.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,sCAAsC,4BAA4B,CAAC;AAEhF,eAAO,MAAM,4BAA4B,eAAwC,CAAC;AAElF,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IACzC,WAAW,CAAC,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjF,WAAW,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iBAAiB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAA;CAChD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2024 TypeFox 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.RemotePortForwardingProvider = exports.RemoteRemotePortForwardingProviderPath = void 0;
|
|
19
|
+
exports.RemoteRemotePortForwardingProviderPath = '/remote/port-forwarding';
|
|
20
|
+
exports.RemotePortForwardingProvider = Symbol('RemoteSSHConnectionProvider');
|
|
21
|
+
//# sourceMappingURL=remote-port-forwarding-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-port-forwarding-provider.js","sourceRoot":"","sources":["../../src/electron-common/remote-port-forwarding-provider.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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;;;AAEnE,QAAA,sCAAsC,GAAG,yBAAyB,CAAC;AAEnE,QAAA,4BAA4B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type RemoteStatus = RemoteConnectedStatus | RemoteDisconnectedStatus;
|
|
2
2
|
export interface RemoteDisconnectedStatus {
|
|
3
3
|
alive: false;
|
|
4
4
|
}
|
|
@@ -11,5 +11,6 @@ export declare const RemoteStatusServicePath = "/remote/status";
|
|
|
11
11
|
export declare const RemoteStatusService: unique symbol;
|
|
12
12
|
export interface RemoteStatusService {
|
|
13
13
|
getStatus(localPort: number): Promise<RemoteStatus>;
|
|
14
|
+
connectionClosed(localPort: number): Promise<void>;
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=remote-status-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-status-service.d.ts","sourceRoot":"","sources":["../../src/electron-common/remote-status-service.ts"],"names":[],"mappings":"AAgBA,
|
|
1
|
+
{"version":3,"file":"remote-status-service.d.ts","sourceRoot":"","sources":["../../src/electron-common/remote-status-service.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,wBAAwB,CAAC;AAE5E,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,IAAI,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AAExD,eAAO,MAAM,mBAAmB,eAAgC,CAAC;AAEjE,MAAM,WAAW,mBAAmB;IAChC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEpD,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="yargs" />
|
|
2
2
|
import { CliContribution } from '@theia/core/lib/node';
|
|
3
3
|
import { Arguments, Argv } from '@theia/core/shared/yargs';
|
|
4
|
-
import { BackendRemoteService } from '@theia/core/lib/node/backend-remote-service';
|
|
4
|
+
import { BackendRemoteService } from '@theia/core/lib/node/remote/backend-remote-service';
|
|
5
5
|
export declare const REMOTE_START = "remote";
|
|
6
6
|
export declare class BackendRemoteServiceImpl extends BackendRemoteService implements CliContribution {
|
|
7
7
|
protected isRemote: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-remote-service-impl.d.ts","sourceRoot":"","sources":["../../src/electron-node/backend-remote-service-impl.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"backend-remote-service-impl.d.ts","sourceRoot":"","sources":["../../src/electron-node/backend-remote-service-impl.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE1F,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC,qBACa,wBAAyB,SAAQ,oBAAqB,YAAW,eAAe;IAEzF,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAS;IAEpC,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAQ3B,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAI1B,cAAc,IAAI,OAAO;CAIrC"}
|
|
@@ -14,16 +14,11 @@
|
|
|
14
14
|
//
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
18
|
exports.BackendRemoteServiceImpl = exports.REMOTE_START = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
25
20
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
26
|
-
const backend_remote_service_1 = require("@theia/core/lib/node/backend-remote-service");
|
|
21
|
+
const backend_remote_service_1 = require("@theia/core/lib/node/remote/backend-remote-service");
|
|
27
22
|
exports.REMOTE_START = 'remote';
|
|
28
23
|
let BackendRemoteServiceImpl = class BackendRemoteServiceImpl extends backend_remote_service_1.BackendRemoteService {
|
|
29
24
|
constructor() {
|
|
@@ -44,8 +39,8 @@ let BackendRemoteServiceImpl = class BackendRemoteServiceImpl extends backend_re
|
|
|
44
39
|
return this.isRemote;
|
|
45
40
|
}
|
|
46
41
|
};
|
|
47
|
-
BackendRemoteServiceImpl =
|
|
42
|
+
exports.BackendRemoteServiceImpl = BackendRemoteServiceImpl;
|
|
43
|
+
exports.BackendRemoteServiceImpl = BackendRemoteServiceImpl = tslib_1.__decorate([
|
|
48
44
|
(0, inversify_1.injectable)()
|
|
49
45
|
], BackendRemoteServiceImpl);
|
|
50
|
-
exports.BackendRemoteServiceImpl = BackendRemoteServiceImpl;
|
|
51
46
|
//# sourceMappingURL=backend-remote-service-impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-remote-service-impl.js","sourceRoot":"","sources":["../../src/electron-node/backend-remote-service-impl.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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
|
|
1
|
+
{"version":3,"file":"backend-remote-service-impl.js","sourceRoot":"","sources":["../../src/electron-node/backend-remote-service-impl.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,4DAA0D;AAE1D,+FAA0F;AAE7E,QAAA,YAAY,GAAG,QAAQ,CAAC;AAG9B,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,6CAAoB;IAA3D;;QAEO,aAAQ,GAAY,KAAK,CAAC;IAkBxC,CAAC;IAhBG,SAAS,CAAC,IAAU;QAChB,IAAI,CAAC,MAAM,CAAC,oBAAY,EAAE;YACtB,WAAW,EAAE,6EAA6E;YAC1F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB,CAAC,CAAC;IACP,CAAC;IAED,YAAY,CAAC,IAAe;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,oBAAY,CAAC,CAAC,CAAC;IAChD,CAAC;IAEQ,cAAc;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;CAEJ,CAAA;AApBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CAoBpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-backend-module.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"remote-backend-module.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AA2B/D,eAAO,MAAM,sBAAsB,iBAQjC,CAAC;;AAEH,wBAiCG"}
|
|
@@ -29,20 +29,26 @@ const remote_copy_service_1 = require("./setup/remote-copy-service");
|
|
|
29
29
|
const remote_setup_service_1 = require("./setup/remote-setup-service");
|
|
30
30
|
const remote_native_dependency_service_1 = require("./setup/remote-native-dependency-service");
|
|
31
31
|
const backend_remote_service_impl_1 = require("./backend-remote-service-impl");
|
|
32
|
-
const backend_remote_service_1 = require("@theia/core/lib/node/backend-remote-service");
|
|
32
|
+
const backend_remote_service_1 = require("@theia/core/lib/node/remote/backend-remote-service");
|
|
33
33
|
const remote_node_setup_service_1 = require("./setup/remote-node-setup-service");
|
|
34
34
|
const remote_setup_script_service_1 = require("./setup/remote-setup-script-service");
|
|
35
35
|
const remote_status_service_1 = require("../electron-common/remote-status-service");
|
|
36
36
|
const remote_status_service_2 = require("./remote-status-service");
|
|
37
37
|
const core_1 = require("@theia/core");
|
|
38
38
|
const remote_copy_contribution_1 = require("./setup/remote-copy-contribution");
|
|
39
|
+
const remote_copy_contribution_2 = require("@theia/core/lib/node/remote/remote-copy-contribution");
|
|
39
40
|
const main_copy_contribution_1 = require("./setup/main-copy-contribution");
|
|
40
41
|
const remote_native_dependency_contribution_1 = require("./setup/remote-native-dependency-contribution");
|
|
41
42
|
const app_native_dependency_contribution_1 = require("./setup/app-native-dependency-contribution");
|
|
43
|
+
const remote_port_forwarding_provider_1 = require("./remote-port-forwarding-provider");
|
|
44
|
+
const remote_port_forwarding_provider_2 = require("../electron-common/remote-port-forwarding-provider");
|
|
42
45
|
exports.remoteConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
43
46
|
bind(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl).toSelf().inSingletonScope();
|
|
44
47
|
bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toService(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl);
|
|
45
48
|
bindBackendService(remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath, remote_ssh_connection_provider_1.RemoteSSHConnectionProvider);
|
|
49
|
+
bind(remote_port_forwarding_provider_1.RemotePortForwardingProviderImpl).toSelf().inSingletonScope();
|
|
50
|
+
bind(remote_port_forwarding_provider_2.RemotePortForwardingProvider).toService(remote_port_forwarding_provider_1.RemotePortForwardingProviderImpl);
|
|
51
|
+
bindBackendService(remote_port_forwarding_provider_2.RemoteRemotePortForwardingProviderPath, remote_port_forwarding_provider_2.RemotePortForwardingProvider);
|
|
46
52
|
});
|
|
47
53
|
exports.default = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebind) => {
|
|
48
54
|
bind(remote_proxy_server_provider_1.RemoteProxyServerProvider).toSelf().inSingletonScope();
|
|
@@ -59,11 +65,11 @@ exports.default = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebi
|
|
|
59
65
|
bind(remote_setup_script_service_1.RemotePosixScriptStrategy).toSelf().inSingletonScope();
|
|
60
66
|
bind(remote_setup_script_service_1.RemoteSetupScriptService).toSelf().inSingletonScope();
|
|
61
67
|
bind(remote_native_dependency_service_1.RemoteNativeDependencyService).toSelf().inSingletonScope();
|
|
62
|
-
bind(remote_copy_contribution_1.
|
|
63
|
-
(0, core_1.bindContributionProvider)(bind,
|
|
68
|
+
bind(remote_copy_contribution_1.RemoteCopyRegistryImpl).toSelf().inSingletonScope();
|
|
69
|
+
(0, core_1.bindContributionProvider)(bind, remote_copy_contribution_2.RemoteCopyContribution);
|
|
64
70
|
(0, core_1.bindContributionProvider)(bind, remote_native_dependency_contribution_1.RemoteNativeDependencyContribution);
|
|
65
71
|
bind(main_copy_contribution_1.MainCopyContribution).toSelf().inSingletonScope();
|
|
66
|
-
bind(
|
|
72
|
+
bind(remote_copy_contribution_2.RemoteCopyContribution).toService(main_copy_contribution_1.MainCopyContribution);
|
|
67
73
|
bind(app_native_dependency_contribution_1.AppNativeDependencyContribution).toSelf().inSingletonScope();
|
|
68
74
|
bind(remote_native_dependency_contribution_1.RemoteNativeDependencyContribution).toService(app_native_dependency_contribution_1.AppNativeDependencyContribution);
|
|
69
75
|
bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(exports.remoteConnectionModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-backend-module.js","sourceRoot":"","sources":["../../src/electron-node/remote-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,4DAA+D;AAC/D,+CAAuF;AACvF,2EAAsE;AACtE,iFAA2E;AAC3E,2FAAqF;AACrF,4GAAuG;AACvG,sGAAiI;AACjI,yFAAuF;AACvF,mFAA6E;AAC7E,qEAAgE;AAChE,uEAAkE;AAClE,+FAAyF;AACzF,+EAAyE;AACzE
|
|
1
|
+
{"version":3,"file":"remote-backend-module.js","sourceRoot":"","sources":["../../src/electron-node/remote-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,4DAA+D;AAC/D,+CAAuF;AACvF,2EAAsE;AACtE,iFAA2E;AAC3E,2FAAqF;AACrF,4GAAuG;AACvG,sGAAiI;AACjI,yFAAuF;AACvF,mFAA6E;AAC7E,qEAAgE;AAChE,uEAAkE;AAClE,+FAAyF;AACzF,+EAAyE;AACzE,+FAA0F;AA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0EAAkC,CAAC,CAAC,SAAS,CAAC,oEAA+B,CAAC,CAAC;IAEpF,IAAI,CAAC,uDAAyB,CAAC,CAAC,eAAe,CAAC,8BAAsB,CAAC,CAAC;IAExE,IAAI,CAAC,sDAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3D,MAAM,CAAC,6CAAoB,CAAC,CAAC,SAAS,CAAC,sDAAwB,CAAC,CAAC;IACjE,IAAI,CAAC,sBAAe,CAAC,CAAC,SAAS,CAAC,sDAAwB,CAAC,CAAC;IAE1D,IAAI,CAAC,sDAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;AAC/D,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RemoteConnection } from './remote-types';
|
|
2
2
|
import { Disposable } from '@theia/core';
|
|
3
3
|
import { RemoteCopyService } from './setup/remote-copy-service';
|
|
4
|
-
import { RemoteNativeDependencyService } from './setup/remote-native-dependency-service';
|
|
5
4
|
import { BackendApplicationContribution } from '@theia/core/lib/node';
|
|
5
|
+
import { RemoteSetupService } from './setup/remote-setup-service';
|
|
6
6
|
export declare class RemoteConnectionService implements BackendApplicationContribution {
|
|
7
7
|
protected readonly copyService: RemoteCopyService;
|
|
8
|
-
protected readonly
|
|
8
|
+
protected readonly remoteSetupService: RemoteSetupService;
|
|
9
9
|
protected readonly connections: Map<string, RemoteConnection>;
|
|
10
10
|
getConnection(id: string): RemoteConnection | undefined;
|
|
11
11
|
getConnectionFromPort(port: number): RemoteConnection | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-connection-service.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-connection-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"remote-connection-service.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-connection-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,qBACa,uBAAwB,YAAW,8BAA8B;IAG1E,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IAIlD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAE1D,SAAS,CAAC,QAAQ,CAAC,WAAW,gCAAuC;IAErE,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIvD,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIjE,QAAQ,CAAC,UAAU,EAAE,gBAAgB,GAAG,UAAU;IAOlD,MAAM,IAAI,IAAI;CASjB"}
|