@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.
Files changed (142) hide show
  1. package/README.md +1 -1
  2. package/lib/electron-browser/local-backend-services.d.ts +11 -0
  3. package/lib/electron-browser/local-backend-services.d.ts.map +1 -0
  4. package/lib/electron-browser/local-backend-services.js +37 -0
  5. package/lib/electron-browser/local-backend-services.js.map +1 -0
  6. package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts +6 -0
  7. package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts.map +1 -0
  8. package/lib/electron-browser/port-forwarding/port-forwading-contribution.js +40 -0
  9. package/lib/electron-browser/port-forwarding/port-forwading-contribution.js.map +1 -0
  10. package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts +20 -0
  11. package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts.map +1 -0
  12. package/lib/electron-browser/port-forwarding/port-forwarding-service.js +89 -0
  13. package/lib/electron-browser/port-forwarding/port-forwarding-service.js.map +1 -0
  14. package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts +17 -0
  15. package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts.map +1 -0
  16. package/lib/electron-browser/port-forwarding/port-forwarding-widget.js +125 -0
  17. package/lib/electron-browser/port-forwarding/port-forwarding-widget.js.map +1 -0
  18. package/lib/electron-browser/remote-electron-file-dialog-service.js +5 -13
  19. package/lib/electron-browser/remote-electron-file-dialog-service.js.map +1 -1
  20. package/lib/electron-browser/remote-frontend-contribution.d.ts +1 -1
  21. package/lib/electron-browser/remote-frontend-contribution.d.ts.map +1 -1
  22. package/lib/electron-browser/remote-frontend-contribution.js +27 -33
  23. package/lib/electron-browser/remote-frontend-contribution.js.map +1 -1
  24. package/lib/electron-browser/remote-frontend-module.d.ts +1 -0
  25. package/lib/electron-browser/remote-frontend-module.d.ts.map +1 -1
  26. package/lib/electron-browser/remote-frontend-module.js +29 -2
  27. package/lib/electron-browser/remote-frontend-module.js.map +1 -1
  28. package/lib/electron-browser/remote-preferences.d.ts +1 -1
  29. package/lib/electron-browser/remote-preferences.d.ts.map +1 -1
  30. package/lib/electron-browser/remote-registry-contribution.d.ts +1 -1
  31. package/lib/electron-browser/remote-registry-contribution.d.ts.map +1 -1
  32. package/lib/electron-browser/remote-registry-contribution.js +11 -16
  33. package/lib/electron-browser/remote-registry-contribution.js.map +1 -1
  34. package/lib/electron-browser/remote-service.js +3 -8
  35. package/lib/electron-browser/remote-service.js.map +1 -1
  36. package/lib/electron-browser/remote-ssh-contribution.js +12 -20
  37. package/lib/electron-browser/remote-ssh-contribution.js.map +1 -1
  38. package/lib/electron-browser/remote-user-storage-provider.d.ts +21 -0
  39. package/lib/electron-browser/remote-user-storage-provider.d.ts.map +1 -0
  40. package/lib/electron-browser/remote-user-storage-provider.js +75 -0
  41. package/lib/electron-browser/remote-user-storage-provider.js.map +1 -0
  42. package/lib/electron-common/remote-port-forwarding-provider.d.ts +12 -0
  43. package/lib/electron-common/remote-port-forwarding-provider.d.ts.map +1 -0
  44. package/lib/electron-common/remote-port-forwarding-provider.js +21 -0
  45. package/lib/electron-common/remote-port-forwarding-provider.js.map +1 -0
  46. package/lib/electron-common/remote-status-service.d.ts +2 -1
  47. package/lib/electron-common/remote-status-service.d.ts.map +1 -1
  48. package/lib/electron-node/backend-remote-service-impl.d.ts +1 -1
  49. package/lib/electron-node/backend-remote-service-impl.d.ts.map +1 -1
  50. package/lib/electron-node/backend-remote-service-impl.js +4 -9
  51. package/lib/electron-node/backend-remote-service-impl.js.map +1 -1
  52. package/lib/electron-node/remote-backend-module.d.ts.map +1 -1
  53. package/lib/electron-node/remote-backend-module.js +10 -4
  54. package/lib/electron-node/remote-backend-module.js.map +1 -1
  55. package/lib/electron-node/remote-connection-service.d.ts +2 -2
  56. package/lib/electron-node/remote-connection-service.d.ts.map +1 -1
  57. package/lib/electron-node/remote-connection-service.js +17 -19
  58. package/lib/electron-node/remote-connection-service.js.map +1 -1
  59. package/lib/electron-node/remote-connection-socket-provider.js +3 -8
  60. package/lib/electron-node/remote-connection-socket-provider.js.map +1 -1
  61. package/lib/electron-node/remote-port-forwarding-provider.d.ts +19 -0
  62. package/lib/electron-node/remote-port-forwarding-provider.d.ts.map +1 -0
  63. package/lib/electron-node/remote-port-forwarding-provider.js +59 -0
  64. package/lib/electron-node/remote-port-forwarding-provider.js.map +1 -0
  65. package/lib/electron-node/remote-proxy-server-provider.js +3 -8
  66. package/lib/electron-node/remote-proxy-server-provider.js.map +1 -1
  67. package/lib/electron-node/remote-status-service.d.ts +1 -0
  68. package/lib/electron-node/remote-status-service.d.ts.map +1 -1
  69. package/lib/electron-node/remote-status-service.js +11 -13
  70. package/lib/electron-node/remote-status-service.js.map +1 -1
  71. package/lib/electron-node/remote-types.d.ts +21 -8
  72. package/lib/electron-node/remote-types.d.ts.map +1 -1
  73. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +1 -1
  74. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts.map +1 -1
  75. package/lib/electron-node/setup/app-native-dependency-contribution.js +3 -8
  76. package/lib/electron-node/setup/app-native-dependency-contribution.js.map +1 -1
  77. package/lib/electron-node/setup/main-copy-contribution.d.ts +1 -1
  78. package/lib/electron-node/setup/main-copy-contribution.d.ts.map +1 -1
  79. package/lib/electron-node/setup/main-copy-contribution.js +3 -8
  80. package/lib/electron-node/setup/main-copy-contribution.js.map +1 -1
  81. package/lib/electron-node/setup/remote-copy-contribution.d.ts +3 -19
  82. package/lib/electron-node/setup/remote-copy-contribution.d.ts.map +1 -1
  83. package/lib/electron-node/setup/remote-copy-contribution.js +20 -25
  84. package/lib/electron-node/setup/remote-copy-contribution.js.map +1 -1
  85. package/lib/electron-node/setup/remote-copy-service.d.ts +5 -3
  86. package/lib/electron-node/setup/remote-copy-service.d.ts.map +1 -1
  87. package/lib/electron-node/setup/remote-copy-service.js +14 -21
  88. package/lib/electron-node/setup/remote-copy-service.js.map +1 -1
  89. package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts +2 -2
  90. package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts.map +1 -1
  91. package/lib/electron-node/setup/remote-native-dependency-contribution.js +2 -2
  92. package/lib/electron-node/setup/remote-native-dependency-contribution.js.map +1 -1
  93. package/lib/electron-node/setup/remote-native-dependency-service.d.ts +1 -1
  94. package/lib/electron-node/setup/remote-native-dependency-service.d.ts.map +1 -1
  95. package/lib/electron-node/setup/remote-native-dependency-service.js +7 -15
  96. package/lib/electron-node/setup/remote-native-dependency-service.js.map +1 -1
  97. package/lib/electron-node/setup/remote-node-setup-service.d.ts +1 -1
  98. package/lib/electron-node/setup/remote-node-setup-service.d.ts.map +1 -1
  99. package/lib/electron-node/setup/remote-node-setup-service.js +7 -15
  100. package/lib/electron-node/setup/remote-node-setup-service.js.map +1 -1
  101. package/lib/electron-node/setup/remote-setup-script-service.d.ts +1 -1
  102. package/lib/electron-node/setup/remote-setup-script-service.d.ts.map +1 -1
  103. package/lib/electron-node/setup/remote-setup-script-service.js +11 -19
  104. package/lib/electron-node/setup/remote-setup-script-service.js.map +1 -1
  105. package/lib/electron-node/setup/remote-setup-service.d.ts +9 -2
  106. package/lib/electron-node/setup/remote-setup-service.d.ts.map +1 -1
  107. package/lib/electron-node/setup/remote-setup-service.js +39 -23
  108. package/lib/electron-node/setup/remote-setup-service.js.map +1 -1
  109. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +1 -1
  110. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
  111. package/lib/electron-node/ssh/remote-ssh-connection-provider.js +28 -34
  112. package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
  113. package/lib/electron-node/ssh/ssh-identity-file-collector.js +3 -8
  114. package/lib/electron-node/ssh/ssh-identity-file-collector.js.map +1 -1
  115. package/package.json +11 -10
  116. package/src/electron-browser/local-backend-services.ts +31 -0
  117. package/src/electron-browser/port-forwarding/port-forwading-contribution.ts +33 -0
  118. package/src/electron-browser/port-forwarding/port-forwarding-service.ts +93 -0
  119. package/src/electron-browser/port-forwarding/port-forwarding-widget.tsx +140 -0
  120. package/src/electron-browser/remote-frontend-contribution.ts +9 -7
  121. package/src/electron-browser/remote-frontend-module.ts +39 -3
  122. package/src/electron-browser/remote-registry-contribution.ts +9 -6
  123. package/src/electron-browser/remote-user-storage-provider.ts +64 -0
  124. package/src/electron-browser/style/port-forwarding-widget.css +44 -0
  125. package/src/electron-common/remote-port-forwarding-provider.ts +30 -0
  126. package/src/electron-common/remote-status-service.ts +3 -1
  127. package/src/electron-node/backend-remote-service-impl.ts +1 -1
  128. package/src/electron-node/remote-backend-module.ts +10 -3
  129. package/src/electron-node/remote-connection-service.ts +9 -4
  130. package/src/electron-node/remote-port-forwarding-provider.ts +66 -0
  131. package/src/electron-node/remote-status-service.ts +7 -0
  132. package/src/electron-node/remote-types.ts +20 -7
  133. package/src/electron-node/setup/app-native-dependency-contribution.ts +1 -1
  134. package/src/electron-node/setup/main-copy-contribution.ts +1 -1
  135. package/src/electron-node/setup/remote-copy-contribution.ts +14 -30
  136. package/src/electron-node/setup/remote-copy-service.ts +6 -4
  137. package/src/electron-node/setup/remote-native-dependency-contribution.ts +1 -1
  138. package/src/electron-node/setup/remote-native-dependency-service.ts +1 -1
  139. package/src/electron-node/setup/remote-node-setup-service.ts +1 -1
  140. package/src/electron-node/setup/remote-setup-script-service.ts +1 -1
  141. package/src/electron-node/setup/remote-setup-service.ts +31 -6
  142. package/src/electron-node/ssh/remote-ssh-connection-provider.ts +10 -8
package/README.md CHANGED
@@ -58,4 +58,4 @@ Although these backend services live on a different remote system, the frontend
58
58
  ## Trademark
59
59
 
60
60
  "Theia" is a trademark of the Eclipse Foundation
61
- https://www.eclipse.org/theia
61
+ <https://www.eclipse.org/theia>
@@ -0,0 +1,11 @@
1
+ import { RpcProxy } from '@theia/core';
2
+ import { RemoteFileSystemProvider, RemoteFileSystemServer } from '@theia/filesystem/lib/common/remote-file-system-provider';
3
+ export declare const LocalEnvVariablesServer: unique symbol;
4
+ export declare const LocalRemoteFileSytemServer: unique symbol;
5
+ /**
6
+ * provide file access to local files while connected to a remote workspace or dev container.
7
+ */
8
+ export declare class LocalRemoteFileSystemProvider extends RemoteFileSystemProvider {
9
+ protected readonly server: RpcProxy<RemoteFileSystemServer>;
10
+ }
11
+ //# sourceMappingURL=local-backend-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-backend-services.d.ts","sourceRoot":"","sources":["../../src/electron-browser/local-backend-services.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAE5H,eAAO,MAAM,uBAAuB,eAA0C,CAAC;AAC/E,eAAO,MAAM,0BAA0B,eAAuC,CAAC;AAE/E;;GAEG;AACH,qBACa,6BAA8B,SAAQ,wBAAwB;IACvE,mBAC4B,MAAM,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;CACxE"}
@@ -0,0 +1,37 @@
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.LocalRemoteFileSystemProvider = exports.LocalRemoteFileSytemServer = exports.LocalEnvVariablesServer = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const remote_file_system_provider_1 = require("@theia/filesystem/lib/common/remote-file-system-provider");
22
+ exports.LocalEnvVariablesServer = Symbol('LocalEnviromentVariableServer');
23
+ exports.LocalRemoteFileSytemServer = Symbol('LocalRemoteFileSytemServer');
24
+ /**
25
+ * provide file access to local files while connected to a remote workspace or dev container.
26
+ */
27
+ let LocalRemoteFileSystemProvider = class LocalRemoteFileSystemProvider extends remote_file_system_provider_1.RemoteFileSystemProvider {
28
+ };
29
+ exports.LocalRemoteFileSystemProvider = LocalRemoteFileSystemProvider;
30
+ tslib_1.__decorate([
31
+ (0, inversify_1.inject)(exports.LocalRemoteFileSytemServer),
32
+ tslib_1.__metadata("design:type", Object)
33
+ ], LocalRemoteFileSystemProvider.prototype, "server", void 0);
34
+ exports.LocalRemoteFileSystemProvider = LocalRemoteFileSystemProvider = tslib_1.__decorate([
35
+ (0, inversify_1.injectable)()
36
+ ], LocalRemoteFileSystemProvider);
37
+ //# sourceMappingURL=local-backend-services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-backend-services.js","sourceRoot":"","sources":["../../src/electron-browser/local-backend-services.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,4DAAkE;AAClE,0GAA4H;AAE/G,QAAA,uBAAuB,GAAG,MAAM,CAAC,+BAA+B,CAAC,CAAC;AAClE,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAE/E;;GAEG;AAEI,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,sDAAwB;CAG1E,CAAA;AAHY,sEAA6B;AAEV;IAD3B,IAAA,kBAAM,EAAC,kCAA0B,CAAC;;6DACkC;wCAF5D,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAGzC"}
@@ -0,0 +1,6 @@
1
+ import { AbstractViewContribution } from '@theia/core/lib/browser';
2
+ import { PortForwardingWidget } from './port-forwarding-widget';
3
+ export declare class PortForwardingContribution extends AbstractViewContribution<PortForwardingWidget> {
4
+ constructor();
5
+ }
6
+ //# sourceMappingURL=port-forwading-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port-forwading-contribution.d.ts","sourceRoot":"","sources":["../../../src/electron-browser/port-forwarding/port-forwading-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAA6B,MAAM,0BAA0B,CAAC;AAE3F,qBACa,0BAA2B,SAAQ,wBAAwB,CAAC,oBAAoB,CAAC;;CAU7F"}
@@ -0,0 +1,40 @@
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.PortForwardingContribution = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const core_1 = require("@theia/core");
21
+ const browser_1 = require("@theia/core/lib/browser");
22
+ const inversify_1 = require("@theia/core/shared/inversify");
23
+ const port_forwarding_widget_1 = require("./port-forwarding-widget");
24
+ let PortForwardingContribution = class PortForwardingContribution extends browser_1.AbstractViewContribution {
25
+ constructor() {
26
+ super({
27
+ widgetId: port_forwarding_widget_1.PORT_FORWARDING_WIDGET_ID,
28
+ widgetName: core_1.nls.localizeByDefault('Ports'),
29
+ defaultWidgetOptions: {
30
+ area: 'bottom'
31
+ }
32
+ });
33
+ }
34
+ };
35
+ exports.PortForwardingContribution = PortForwardingContribution;
36
+ exports.PortForwardingContribution = PortForwardingContribution = tslib_1.__decorate([
37
+ (0, inversify_1.injectable)(),
38
+ tslib_1.__metadata("design:paramtypes", [])
39
+ ], PortForwardingContribution);
40
+ //# sourceMappingURL=port-forwading-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port-forwading-contribution.js","sourceRoot":"","sources":["../../../src/electron-browser/port-forwarding/port-forwading-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,sCAAkC;AAClC,qDAAmE;AACnE,4DAA0D;AAC1D,qEAA2F;AAGpF,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,kCAA8C;IAC1F;QACI,KAAK,CAAC;YACF,QAAQ,EAAE,kDAAyB;YACnC,UAAU,EAAE,UAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC;YAC1C,oBAAoB,EAAE;gBAClB,IAAI,EAAE,QAAQ;aACjB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAVY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,sBAAU,GAAE;;GACA,0BAA0B,CAUtC"}
@@ -0,0 +1,20 @@
1
+ import { Emitter } from '@theia/core';
2
+ import { RemotePortForwardingProvider } from '../../electron-common/remote-port-forwarding-provider';
3
+ export interface ForwardedPort {
4
+ localPort?: number;
5
+ address?: string;
6
+ origin?: string;
7
+ editing: boolean;
8
+ }
9
+ export declare class PortForwardingService {
10
+ readonly provider: RemotePortForwardingProvider;
11
+ protected readonly onDidChangePortsEmitter: Emitter<void>;
12
+ readonly onDidChangePorts: import("@theia/core").Event<void>;
13
+ forwardedPorts: ForwardedPort[];
14
+ init(): void;
15
+ forwardNewPort(origin?: string): ForwardedPort;
16
+ updatePort(port: ForwardedPort, newAdress: string): void;
17
+ removePort(port: ForwardedPort): void;
18
+ isValidAddress(address: string): boolean;
19
+ }
20
+ //# sourceMappingURL=port-forwarding-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port-forwarding-service.d.ts","sourceRoot":"","sources":["../../../src/electron-browser/port-forwarding/port-forwarding-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,4BAA4B,EAAE,MAAM,uDAAuD,CAAC;AAGrG,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,qBACa,qBAAqB;IAG9B,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;IAEhD,SAAS,CAAC,QAAQ,CAAC,uBAAuB,gBAAuB;IACjE,QAAQ,CAAC,gBAAgB,oCAAsC;IAE/D,cAAc,EAAE,aAAa,EAAE,CAAM;IAGrC,IAAI,IAAI,IAAI;IAOZ,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa;IAK9C,UAAU,CAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAqBxD,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IASrC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;CAU3C"}
@@ -0,0 +1,89 @@
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.PortForwardingService = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const core_1 = require("@theia/core");
21
+ const inversify_1 = require("@theia/core/shared/inversify");
22
+ const remote_port_forwarding_provider_1 = require("../../electron-common/remote-port-forwarding-provider");
23
+ const electron_local_ws_connection_source_1 = require("@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source");
24
+ let PortForwardingService = class PortForwardingService {
25
+ constructor() {
26
+ this.onDidChangePortsEmitter = new core_1.Emitter();
27
+ this.onDidChangePorts = this.onDidChangePortsEmitter.event;
28
+ this.forwardedPorts = [];
29
+ }
30
+ init() {
31
+ this.provider.getForwardedPorts().then(ports => {
32
+ this.forwardedPorts = ports.map(p => ({ address: p.address, localPort: p.port, editing: false }));
33
+ this.onDidChangePortsEmitter.fire();
34
+ });
35
+ }
36
+ forwardNewPort(origin) {
37
+ const index = this.forwardedPorts.push({ editing: true, origin });
38
+ return this.forwardedPorts[index - 1];
39
+ }
40
+ updatePort(port, newAdress) {
41
+ const connectionPort = (0, electron_local_ws_connection_source_1.getCurrentPort)();
42
+ if (!connectionPort) {
43
+ // if there is no open remote connection we can't forward a port
44
+ return;
45
+ }
46
+ const parts = newAdress.split(':');
47
+ if (parts.length === 2) {
48
+ port.address = parts[0];
49
+ port.localPort = parseInt(parts[1]);
50
+ }
51
+ else {
52
+ port.localPort = parseInt(parts[0]);
53
+ }
54
+ port.editing = false;
55
+ this.provider.forwardPort(parseInt(connectionPort), { port: port.localPort, address: port.address });
56
+ this.onDidChangePortsEmitter.fire();
57
+ }
58
+ removePort(port) {
59
+ const index = this.forwardedPorts.indexOf(port);
60
+ if (index !== -1) {
61
+ this.forwardedPorts.splice(index, 1);
62
+ this.provider.portRemoved({ port: port.localPort });
63
+ this.onDidChangePortsEmitter.fire();
64
+ }
65
+ }
66
+ isValidAddress(address) {
67
+ const match = address.match(/^(.*:)?\d+$/);
68
+ if (!match) {
69
+ return false;
70
+ }
71
+ const port = parseInt(address.includes(':') ? address.split(':')[1] : address);
72
+ return !this.forwardedPorts.some(p => p.localPort === port);
73
+ }
74
+ };
75
+ exports.PortForwardingService = PortForwardingService;
76
+ tslib_1.__decorate([
77
+ (0, inversify_1.inject)(remote_port_forwarding_provider_1.RemotePortForwardingProvider),
78
+ tslib_1.__metadata("design:type", Object)
79
+ ], PortForwardingService.prototype, "provider", void 0);
80
+ tslib_1.__decorate([
81
+ (0, inversify_1.postConstruct)(),
82
+ tslib_1.__metadata("design:type", Function),
83
+ tslib_1.__metadata("design:paramtypes", []),
84
+ tslib_1.__metadata("design:returntype", void 0)
85
+ ], PortForwardingService.prototype, "init", null);
86
+ exports.PortForwardingService = PortForwardingService = tslib_1.__decorate([
87
+ (0, inversify_1.injectable)()
88
+ ], PortForwardingService);
89
+ //# sourceMappingURL=port-forwarding-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port-forwarding-service.js","sourceRoot":"","sources":["../../../src/electron-browser/port-forwarding/port-forwarding-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,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AC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAE/E,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AA/DY,sDAAqB;AAGrB;IADR,IAAA,kBAAM,EAAC,8DAA4B,CAAC;;uDACW;AAQhD;IADC,IAAA,yBAAa,GAAE;;;;iDAMf;gCAhBQ,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CA+DjC"}
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { ReactNode } from '@theia/core/shared/react';
3
+ import { OpenerService, ReactWidget } from '@theia/core/lib/browser';
4
+ import { ForwardedPort, PortForwardingService } from './port-forwarding-service';
5
+ import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
6
+ export declare const PORT_FORWARDING_WIDGET_ID = "port-forwarding-widget";
7
+ export declare class PortForwardingWidget extends ReactWidget {
8
+ protected readonly portForwardingService: PortForwardingService;
9
+ protected readonly openerService: OpenerService;
10
+ protected readonly clipboardService: ClipboardService;
11
+ protected init(): void;
12
+ protected render(): ReactNode;
13
+ protected renderForwardPortButton(): ReactNode;
14
+ protected renderAddressColumn(port: ForwardedPort): ReactNode;
15
+ protected renderPortColumn(port: ForwardedPort): ReactNode;
16
+ }
17
+ //# sourceMappingURL=port-forwarding-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port-forwarding-widget.d.ts","sourceRoot":"","sources":["../../../src/electron-browser/port-forwarding/port-forwarding-widget.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,eAAO,MAAM,yBAAyB,2BAA2B,CAAC;AAElE,qBACa,oBAAqB,SAAQ,WAAW;IAGjD,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAGhE,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAGtD,SAAS,CAAC,IAAI,IAAI,IAAI;IAWtB,SAAS,CAAC,MAAM,IAAI,SAAS;IAmC7B,SAAS,CAAC,uBAAuB,IAAI,SAAS;IAQ9C,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS;IAsB7D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS;CAc7D"}
@@ -0,0 +1,125 @@
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.PortForwardingWidget = exports.PORT_FORWARDING_WIDGET_ID = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const React = require("@theia/core/shared/react");
21
+ const browser_1 = require("@theia/core/lib/browser");
22
+ const core_1 = require("@theia/core");
23
+ const inversify_1 = require("@theia/core/shared/inversify");
24
+ const port_forwarding_service_1 = require("./port-forwarding-service");
25
+ const clipboard_service_1 = require("@theia/core/lib/browser/clipboard-service");
26
+ exports.PORT_FORWARDING_WIDGET_ID = 'port-forwarding-widget';
27
+ let PortForwardingWidget = class PortForwardingWidget extends browser_1.ReactWidget {
28
+ init() {
29
+ this.id = exports.PORT_FORWARDING_WIDGET_ID;
30
+ this.node.tabIndex = -1;
31
+ this.title.label = core_1.nls.localizeByDefault('Ports');
32
+ this.title.caption = this.title.label;
33
+ this.title.closable = true;
34
+ this.update();
35
+ this.portForwardingService.onDidChangePorts(() => this.update());
36
+ }
37
+ render() {
38
+ if (this.portForwardingService.forwardedPorts.length === 0) {
39
+ return React.createElement("div", null,
40
+ React.createElement("p", { style: { marginLeft: 'calc(var(--theia-ui-padding) * 2)' } }, core_1.nls.localizeByDefault('No forwarded ports. Forward a port to access your locally running services over the internet.\n[Forward a Port]({0})').split('\n')[0]),
41
+ this.renderForwardPortButton());
42
+ }
43
+ return React.createElement("div", null,
44
+ React.createElement("table", { className: 'port-table' },
45
+ React.createElement("thead", null,
46
+ React.createElement("tr", null,
47
+ React.createElement("th", { className: 'port-table-header' }, core_1.nls.localizeByDefault('Port')),
48
+ React.createElement("th", { className: 'port-table-header' }, core_1.nls.localizeByDefault('Address')),
49
+ React.createElement("th", { className: 'port-table-header' }, core_1.nls.localizeByDefault('Running Process')),
50
+ React.createElement("th", { className: 'port-table-header' }, core_1.nls.localizeByDefault('Origin')))),
51
+ React.createElement("tbody", null,
52
+ this.portForwardingService.forwardedPorts.map(port => {
53
+ var _a;
54
+ return (React.createElement("tr", { key: (_a = port.localPort) !== null && _a !== void 0 ? _a : 'editing' },
55
+ this.renderPortColumn(port),
56
+ this.renderAddressColumn(port),
57
+ React.createElement("td", null),
58
+ React.createElement("td", null, port.origin ? core_1.nls.localizeByDefault(port.origin) : '')));
59
+ }),
60
+ !this.portForwardingService.forwardedPorts.some(port => port.editing) && React.createElement("tr", null,
61
+ React.createElement("td", null, this.renderForwardPortButton())))));
62
+ }
63
+ renderForwardPortButton() {
64
+ return React.createElement("button", { className: 'theia-button', onClick: () => {
65
+ this.portForwardingService.forwardNewPort('User Forwarded');
66
+ this.update();
67
+ } }, core_1.nls.localizeByDefault('Forward a Port'));
68
+ }
69
+ renderAddressColumn(port) {
70
+ var _a;
71
+ const address = `${(_a = port.address) !== null && _a !== void 0 ? _a : '0.0.0.0'}:${port.localPort}`;
72
+ return React.createElement("td", null,
73
+ React.createElement("div", { className: 'button-cell' },
74
+ React.createElement("span", { style: { flexGrow: 1 }, className: 'forwarded-address', onClick: async (e) => {
75
+ if (e.ctrlKey) {
76
+ const uri = new core_1.URI(`http://${address}`);
77
+ (await this.openerService.getOpener(uri)).open(uri);
78
+ }
79
+ }, title: core_1.nls.localizeByDefault('Follow link') + ' (ctrl/cmd + click)' }, port.localPort ? address : ''),
80
+ port.localPort &&
81
+ React.createElement("span", { className: 'codicon codicon-clippy action-label', title: core_1.nls.localizeByDefault('Copy Local Address'), onClick: () => {
82
+ this.clipboardService.writeText(address);
83
+ } })));
84
+ }
85
+ renderPortColumn(port) {
86
+ return port.editing ?
87
+ React.createElement("td", null,
88
+ React.createElement(PortEditingInput, { port: port, service: this.portForwardingService })) :
89
+ React.createElement("td", null,
90
+ React.createElement("div", { className: 'button-cell' },
91
+ React.createElement("span", { style: { flexGrow: 1 } }, port.localPort),
92
+ React.createElement("span", { className: 'codicon codicon-close action-label', title: core_1.nls.localizeByDefault('Stop Forwarding Port'), onClick: () => {
93
+ this.portForwardingService.removePort(port);
94
+ this.update();
95
+ } })));
96
+ }
97
+ };
98
+ exports.PortForwardingWidget = PortForwardingWidget;
99
+ tslib_1.__decorate([
100
+ (0, inversify_1.inject)(port_forwarding_service_1.PortForwardingService),
101
+ tslib_1.__metadata("design:type", port_forwarding_service_1.PortForwardingService)
102
+ ], PortForwardingWidget.prototype, "portForwardingService", void 0);
103
+ tslib_1.__decorate([
104
+ (0, inversify_1.inject)(browser_1.OpenerService),
105
+ tslib_1.__metadata("design:type", Object)
106
+ ], PortForwardingWidget.prototype, "openerService", void 0);
107
+ tslib_1.__decorate([
108
+ (0, inversify_1.inject)(clipboard_service_1.ClipboardService),
109
+ tslib_1.__metadata("design:type", Object)
110
+ ], PortForwardingWidget.prototype, "clipboardService", void 0);
111
+ tslib_1.__decorate([
112
+ (0, inversify_1.postConstruct)(),
113
+ tslib_1.__metadata("design:type", Function),
114
+ tslib_1.__metadata("design:paramtypes", []),
115
+ tslib_1.__metadata("design:returntype", void 0)
116
+ ], PortForwardingWidget.prototype, "init", null);
117
+ exports.PortForwardingWidget = PortForwardingWidget = tslib_1.__decorate([
118
+ (0, inversify_1.injectable)()
119
+ ], PortForwardingWidget);
120
+ function PortEditingInput({ port, service }) {
121
+ var _a;
122
+ const [error, setError] = React.useState(false);
123
+ return React.createElement("input", { className: `theia-input forward-port-button${error ? ' port-edit-input-error' : ''}`, "port-edit-input-error": error, autoFocus: true, defaultValue: port.address ? `${port.address}:${port.localPort}` : (_a = port.localPort) !== null && _a !== void 0 ? _a : '', placeholder: core_1.nls.localizeByDefault('Port number or address (eg. 3000 or 10.10.10.10:2000).'), onKeyDown: e => e.key === 'Enter' && !error && service.updatePort(port, e.currentTarget.value), onKeyUp: e => setError(!service.isValidAddress(e.currentTarget.value)) });
124
+ }
125
+ //# sourceMappingURL=port-forwarding-widget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"port-forwarding-widget.js","sourceRoot":"","sources":["../../../src/electron-browser/port-forwarding/port-forwarding-widget.tsx"],"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,kDAAkD;AAElD,qDAAqE;AACrE,sCAAuC;AACvC,4DAAiF;AACjF,uEAAiF;AACjF,iFAA6E;AAEhE,QAAA,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//
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.RemoteElectronFileDialogService = void 0;
19
+ const tslib_1 = require("tslib");
28
20
  const inversify_1 = require("@theia/core/shared/inversify");
29
21
  const file_dialog_service_1 = require("@theia/filesystem/lib/browser/file-dialog/file-dialog-service");
30
22
  const electron_file_dialog_service_1 = require("@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service");
@@ -47,12 +39,12 @@ let RemoteElectronFileDialogService = class RemoteElectronFileDialogService exte
47
39
  }
48
40
  }
49
41
  };
50
- __decorate([
42
+ exports.RemoteElectronFileDialogService = RemoteElectronFileDialogService;
43
+ tslib_1.__decorate([
51
44
  (0, inversify_1.inject)(remote_service_1.RemoteService),
52
- __metadata("design:type", remote_service_1.RemoteService)
45
+ tslib_1.__metadata("design:type", remote_service_1.RemoteService)
53
46
  ], RemoteElectronFileDialogService.prototype, "remoteService", void 0);
54
- RemoteElectronFileDialogService = __decorate([
47
+ exports.RemoteElectronFileDialogService = RemoteElectronFileDialogService = tslib_1.__decorate([
55
48
  (0, inversify_1.injectable)()
56
49
  ], RemoteElectronFileDialogService);
57
- exports.RemoteElectronFileDialogService = RemoteElectronFileDialogService;
58
50
  //# sourceMappingURL=remote-electron-file-dialog-service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-electron-file-dialog-service.js","sourceRoot":"","sources":["../../src/electron-browser/remote-electron-file-dialog-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;;;;;;;;;;;;AAGhF,4DAAkE;AAGlE,uGAAyG;AACzG,kIAA4H;AAC5H,qDAAiD;AAGjD,IAAa,+BAA+B,GAA5C,MAAa,+BAAgC,SAAQ,wDAAyB;IAMjE,cAAc,CAAC,KAA0B,EAAE,MAAiB;QACjE,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE;YAClC,OAAO,8CAAwB,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;SACtF;aAAM;YACH,OAAO,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC9C;IACL,CAAC;IAEQ,cAAc,CAAC,KAA0B,EAAE,MAA6B;QAC7E,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE;YAClC,OAAO,8CAAwB,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;SACtF;aAAM;YACH,OAAO,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC9C;IACL,CAAC;CACJ,CAAA;AAnB0B;IAAtB,IAAA,kBAAM,EAAC,8BAAa,CAAC;8BAAmC,8BAAa;sEAAC;AAF9D,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAqB3C;AArBY,0EAA+B"}
1
+ {"version":3,"file":"remote-electron-file-dialog-service.js","sourceRoot":"","sources":["../../src/electron-browser/remote-electron-file-dialog-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;;;;AAGhF,4DAAkE;AAGlE,uGAAyG;AACzG,kIAA4H;AAC5H,qDAAiD;AAG1C,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,wDAAyB;IAMjE,cAAc,CAAC,KAA0B,EAAE,MAAiB;QACjE,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE,CAAC;YACnC,OAAO,8CAAwB,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QACvF,CAAC;aAAM,CAAC;YACJ,OAAO,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;IAEQ,cAAc,CAAC,KAA0B,EAAE,MAA6B;QAC7E,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE,CAAC;YACnC,OAAO,8CAAwB,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QACvF,CAAC;aAAM,CAAC;YACJ,OAAO,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;CACJ,CAAA;AArBY,0EAA+B;AAEE;IAAzC,IAAA,kBAAM,EAAC,8BAAa,CAAC;sCAAmC,8BAAa;sEAAC;0CAF9D,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAqB3C"}
@@ -20,7 +20,7 @@ export declare class RemoteFrontendContribution implements CommandContribution,
20
20
  configure(): Promise<void>;
21
21
  protected setStatusBar(info: RemoteStatus): Promise<void>;
22
22
  registerCommands(commands: CommandRegistry): void;
23
- protected disconnectRemote(): void;
23
+ protected disconnectRemote(): Promise<void>;
24
24
  protected selectRemote(): Promise<void>;
25
25
  }
26
26
  //# sourceMappingURL=remote-frontend-contribution.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-frontend-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-frontend-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAO,iBAAiB,EAAkB,MAAM,aAAa,CAAC;AAC1I,OAAO,EAAE,+BAA+B,EAAE,SAAS,EAAsC,MAAM,yBAAyB,CAAC;AAEzH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAE9E,yBAAiB,cAAc,CAAC;IACrB,MAAM,aAAa,EAAE,OAE3B,CAAC;IACK,MAAM,iBAAiB,EAAE,OAG9B,CAAC;CACN;AAED,qBACa,0BAA2B,YAAW,mBAAmB,EAAE,+BAA+B;IAGnG,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAGxC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAGzD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAGpD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,mBA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AAC;IAGzD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAGpD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAG5D,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,0BAA0B,CAAC,CAAC;IAEjG,SAAS,CAAC,cAAc,iBAAwB;IAE1C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;cAYhB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAoB/D,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;cAejC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;cAUjC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CA4BhD"}
@@ -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.RemoteFrontendContribution = exports.RemoteCommands = void 0;
19
+ const tslib_1 = require("tslib");
28
20
  const core_1 = require("@theia/core");
29
21
  const browser_1 = require("@theia/core/lib/browser");
30
22
  const inversify_1 = require("@theia/core/shared/inversify");
@@ -32,6 +24,7 @@ const remote_status_service_1 = require("../electron-common/remote-status-servic
32
24
  const remote_registry_contribution_1 = require("./remote-registry-contribution");
33
25
  const remote_service_1 = require("./remote-service");
34
26
  const window_service_1 = require("@theia/core/lib/browser/window/window-service");
27
+ const electron_local_ws_connection_source_1 = require("@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source");
35
28
  var RemoteCommands;
36
29
  (function (RemoteCommands) {
37
30
  RemoteCommands.REMOTE_SELECT = {
@@ -41,13 +34,13 @@ var RemoteCommands;
41
34
  id: 'remote.disconnect',
42
35
  label: 'Close Remote Connection',
43
36
  });
44
- })(RemoteCommands = exports.RemoteCommands || (exports.RemoteCommands = {}));
37
+ })(RemoteCommands || (exports.RemoteCommands = RemoteCommands = {}));
45
38
  let RemoteFrontendContribution = class RemoteFrontendContribution {
46
39
  constructor() {
47
40
  this.remoteRegistry = new remote_registry_contribution_1.RemoteRegistry();
48
41
  }
49
42
  async configure() {
50
- const port = new URLSearchParams(location.search).get('port');
43
+ const port = (0, electron_local_ws_connection_source_1.getCurrentPort)();
51
44
  if (port) {
52
45
  const status = await this.remoteStatusService.getStatus(Number(port));
53
46
  await this.setStatusBar(status);
@@ -91,12 +84,13 @@ let RemoteFrontendContribution = class RemoteFrontendContribution {
91
84
  execute: () => this.disconnectRemote()
92
85
  });
93
86
  }
94
- disconnectRemote() {
95
- const port = new URLSearchParams(location.search).get('localPort');
96
- if (port) {
97
- this.windowService.reload({
98
- port
99
- });
87
+ async disconnectRemote() {
88
+ const localPort = (0, electron_local_ws_connection_source_1.getLocalPort)();
89
+ if (localPort) {
90
+ const searchParams = new URLSearchParams(location.search);
91
+ const currentPort = searchParams.get('port');
92
+ this.remoteStatusService.connectionClosed(parseInt(currentPort !== null && currentPort !== void 0 ? currentPort : '0'));
93
+ this.windowService.reload({ search: { port: localPort } });
100
94
  }
101
95
  }
102
96
  async selectRemote() {
@@ -128,38 +122,38 @@ let RemoteFrontendContribution = class RemoteFrontendContribution {
128
122
  }
129
123
  }
130
124
  };
131
- __decorate([
125
+ exports.RemoteFrontendContribution = RemoteFrontendContribution;
126
+ tslib_1.__decorate([
132
127
  (0, inversify_1.inject)(browser_1.StatusBar),
133
- __metadata("design:type", Object)
128
+ tslib_1.__metadata("design:type", Object)
134
129
  ], RemoteFrontendContribution.prototype, "statusBar", void 0);
135
- __decorate([
130
+ tslib_1.__decorate([
136
131
  (0, inversify_1.inject)(core_1.QuickInputService),
137
132
  (0, inversify_1.optional)(),
138
- __metadata("design:type", Object)
133
+ tslib_1.__metadata("design:type", Object)
139
134
  ], RemoteFrontendContribution.prototype, "quickInputService", void 0);
140
- __decorate([
135
+ tslib_1.__decorate([
141
136
  (0, inversify_1.inject)(core_1.CommandRegistry),
142
- __metadata("design:type", core_1.CommandRegistry)
137
+ tslib_1.__metadata("design:type", core_1.CommandRegistry)
143
138
  ], RemoteFrontendContribution.prototype, "commandRegistry", void 0);
144
- __decorate([
139
+ tslib_1.__decorate([
145
140
  (0, inversify_1.inject)(remote_service_1.RemoteService),
146
- __metadata("design:type", remote_service_1.RemoteService)
141
+ tslib_1.__metadata("design:type", remote_service_1.RemoteService)
147
142
  ], RemoteFrontendContribution.prototype, "remoteService", void 0);
148
- __decorate([
143
+ tslib_1.__decorate([
149
144
  (0, inversify_1.inject)(remote_status_service_1.RemoteStatusService),
150
- __metadata("design:type", Object)
145
+ tslib_1.__metadata("design:type", Object)
151
146
  ], RemoteFrontendContribution.prototype, "remoteStatusService", void 0);
152
- __decorate([
147
+ tslib_1.__decorate([
153
148
  (0, inversify_1.inject)(window_service_1.WindowService),
154
- __metadata("design:type", Object)
149
+ tslib_1.__metadata("design:type", Object)
155
150
  ], RemoteFrontendContribution.prototype, "windowService", void 0);
156
- __decorate([
151
+ tslib_1.__decorate([
157
152
  (0, inversify_1.inject)(core_1.ContributionProvider),
158
153
  (0, inversify_1.named)(remote_registry_contribution_1.RemoteRegistryContribution),
159
- __metadata("design:type", Object)
154
+ tslib_1.__metadata("design:type", Object)
160
155
  ], RemoteFrontendContribution.prototype, "remoteRegistryContributions", void 0);
161
- RemoteFrontendContribution = __decorate([
156
+ exports.RemoteFrontendContribution = RemoteFrontendContribution = tslib_1.__decorate([
162
157
  (0, inversify_1.injectable)()
163
158
  ], RemoteFrontendContribution);
164
- exports.RemoteFrontendContribution = RemoteFrontendContribution;
165
159
  //# sourceMappingURL=remote-frontend-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-frontend-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/remote-frontend-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,sCAA0I;AAC1I,qDAAyH;AACzH,4DAAmF;AACnF,oFAA6F;AAC7F,iFAA4F;AAC5F,qDAAiD;AACjD,kFAA8E;AAE9E,IAAiB,cAAc,CAQ9B;AARD,WAAiB,cAAc;IACd,4BAAa,GAAY;QAClC,EAAE,EAAE,eAAe;KACtB,CAAC;IACW,gCAAiB,GAAY,cAAO,CAAC,yBAAyB,CAAC;QACxE,EAAE,EAAE,mBAAmB;QACvB,KAAK,EAAE,yBAAyB;KACnC,CAAC,CAAC;AACP,CAAC,EARgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAQ9B;AAGD,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAAvC;QAuBc,mBAAc,GAAG,IAAI,6CAAc,EAAE,CAAC;IAsFpD,CAAC;IApFG,KAAK,CAAC,SAAS;QACX,MAAM,IAAI,GAAG,IAAI,eAAe,CA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;gBACH,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;YACxC,CAAC;YACD,UAAU,CAAC,IAAI,CAAC;gBACZ,KAAK,EAAE,OAAO,CAAC,KAAM;gBACrB,EAAE,EAAE,OAAO,CAAC,EAAE;aACjB,CAAC,CAAC;QACP,CAAC;QACD,MAAM,SAAS,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,iBAAiB,0CAAE,aAAa,CAAC,UAAU,EAAE;YACtE,WAAW,EAAE,UAAG,CAAC,iBAAiB,CAAC,0CAA0C,CAAC;SACjF,CAAC,CAAA,CAAC;QACH,IAAI,SAAS,EAAE,CAAC;YACZ,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,SAAS,CAAC,EAAG,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;CAEJ,CAAA;AA9GY,gEAA0B;AAGhB;IADlB,IAAA,kBAAM,EAAC,mBAAS,CAAC;;6DACsB;AAGrB;IADlB,IAAA,kBAAM,EAAC,wBAAiB,CAAC;IAAE,IAAA,oBAAQ,GAAE;;qEACmB;AAGtC;IADlB,IAAA,kBAAM,EAAC,sBAAe,CAAC;sCACY,sBAAe;mEAAC;AAGjC;IADlB,IAAA,kBAAM,EAAC,8BAAa,CAAC;sCACY,8BAAa;iEAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,2CAAmB,CAAC;;uEACgC;AAGzC;IADlB,IAAA,kBAAM,EAAC,8BAAa,CAAC;;iEAC0B;AAG7B;IADlB,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,yDAA0B,CAAC;;+EACiC;qCArBxF,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CA8GtC"}
@@ -1,4 +1,5 @@
1
1
  import { ContainerModule } from '@theia/core/shared/inversify';
2
+ import '../../src/electron-browser/style/port-forwarding-widget.css';
2
3
  declare const _default: ContainerModule;
3
4
  export default _default;
4
5
  //# sourceMappingURL=remote-frontend-module.d.ts.map