@theia/remote 1.77.0-next.99 → 1.77.0

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 (160) hide show
  1. package/lib/electron-browser/local-backend-services.js +21 -26
  2. package/lib/electron-browser/local-backend-services.js.map +1 -1
  3. package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts +1 -1
  4. package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts.map +1 -1
  5. package/lib/electron-browser/port-forwarding/port-forwading-contribution.js +14 -18
  6. package/lib/electron-browser/port-forwarding/port-forwading-contribution.js.map +1 -1
  7. package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts +1 -1
  8. package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts.map +1 -1
  9. package/lib/electron-browser/port-forwarding/port-forwarding-service.js +14 -21
  10. package/lib/electron-browser/port-forwarding/port-forwarding-service.js.map +1 -1
  11. package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts +1 -1
  12. package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts.map +1 -1
  13. package/lib/electron-browser/port-forwarding/port-forwarding-widget.js +34 -43
  14. package/lib/electron-browser/port-forwarding/port-forwarding-widget.js.map +1 -1
  15. package/lib/electron-browser/remote-cli-args-collector.js +13 -18
  16. package/lib/electron-browser/remote-cli-args-collector.js.map +1 -1
  17. package/lib/electron-browser/remote-cli-args-collector.spec.js +5 -7
  18. package/lib/electron-browser/remote-cli-args-collector.spec.js.map +1 -1
  19. package/lib/electron-browser/remote-electron-file-dialog-service.d.ts +1 -1
  20. package/lib/electron-browser/remote-electron-file-dialog-service.d.ts.map +1 -1
  21. package/lib/electron-browser/remote-electron-file-dialog-service.js +17 -21
  22. package/lib/electron-browser/remote-electron-file-dialog-service.js.map +1 -1
  23. package/lib/electron-browser/remote-frontend-contribution.d.ts +3 -3
  24. package/lib/electron-browser/remote-frontend-contribution.d.ts.map +1 -1
  25. package/lib/electron-browser/remote-frontend-contribution.js +38 -48
  26. package/lib/electron-browser/remote-frontend-contribution.js.map +1 -1
  27. package/lib/electron-browser/remote-frontend-module.js +61 -63
  28. package/lib/electron-browser/remote-frontend-module.js.map +1 -1
  29. package/lib/electron-browser/remote-local-workspace-contribution.d.ts +1 -1
  30. package/lib/electron-browser/remote-local-workspace-contribution.d.ts.map +1 -1
  31. package/lib/electron-browser/remote-local-workspace-contribution.js +26 -33
  32. package/lib/electron-browser/remote-local-workspace-contribution.js.map +1 -1
  33. package/lib/electron-browser/remote-registry-contribution.js +12 -17
  34. package/lib/electron-browser/remote-registry-contribution.js.map +1 -1
  35. package/lib/electron-browser/remote-service.js +5 -8
  36. package/lib/electron-browser/remote-service.js.map +1 -1
  37. package/lib/electron-browser/remote-ssh-contribution.d.ts +3 -3
  38. package/lib/electron-browser/remote-ssh-contribution.d.ts.map +1 -1
  39. package/lib/electron-browser/remote-ssh-contribution.js +41 -47
  40. package/lib/electron-browser/remote-ssh-contribution.js.map +1 -1
  41. package/lib/electron-browser/remote-user-storage-provider.d.ts +2 -2
  42. package/lib/electron-browser/remote-user-storage-provider.d.ts.map +1 -1
  43. package/lib/electron-browser/remote-user-storage-provider.js +23 -33
  44. package/lib/electron-browser/remote-user-storage-provider.js.map +1 -1
  45. package/lib/electron-common/remote-port-forwarding-provider.js +2 -5
  46. package/lib/electron-common/remote-port-forwarding-provider.js.map +1 -1
  47. package/lib/electron-common/remote-preferences.js +20 -24
  48. package/lib/electron-common/remote-preferences.js.map +1 -1
  49. package/lib/electron-common/remote-ssh-connection-provider.js +2 -5
  50. package/lib/electron-common/remote-ssh-connection-provider.js.map +1 -1
  51. package/lib/electron-common/remote-status-service.js +2 -5
  52. package/lib/electron-common/remote-status-service.js.map +1 -1
  53. package/lib/electron-node/backend-remote-service-impl.js +10 -13
  54. package/lib/electron-node/backend-remote-service-impl.js.map +1 -1
  55. package/lib/electron-node/remote-auto-shutdown-service.js +15 -19
  56. package/lib/electron-node/remote-auto-shutdown-service.js.map +1 -1
  57. package/lib/electron-node/remote-auto-shutdown-service.spec.js +28 -30
  58. package/lib/electron-node/remote-auto-shutdown-service.spec.js.map +1 -1
  59. package/lib/electron-node/remote-backend-module.js +69 -72
  60. package/lib/electron-node/remote-backend-module.js.map +1 -1
  61. package/lib/electron-node/remote-connection-service.d.ts +3 -3
  62. package/lib/electron-node/remote-connection-service.d.ts.map +1 -1
  63. package/lib/electron-node/remote-connection-service.js +13 -18
  64. package/lib/electron-node/remote-connection-service.js.map +1 -1
  65. package/lib/electron-node/remote-connection-socket-provider.js +7 -10
  66. package/lib/electron-node/remote-connection-socket-provider.js.map +1 -1
  67. package/lib/electron-node/remote-port-forwarding-provider.d.ts +3 -3
  68. package/lib/electron-node/remote-port-forwarding-provider.d.ts.map +1 -1
  69. package/lib/electron-node/remote-port-forwarding-provider.js +10 -14
  70. package/lib/electron-node/remote-port-forwarding-provider.js.map +1 -1
  71. package/lib/electron-node/remote-proxy-server-provider.js +8 -11
  72. package/lib/electron-node/remote-proxy-server-provider.js.map +1 -1
  73. package/lib/electron-node/remote-status-service.d.ts +2 -2
  74. package/lib/electron-node/remote-status-service.d.ts.map +1 -1
  75. package/lib/electron-node/remote-status-service.js +8 -12
  76. package/lib/electron-node/remote-status-service.js.map +1 -1
  77. package/lib/electron-node/remote-types.js +1 -2
  78. package/lib/electron-node/remote-types.js.map +1 -1
  79. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +1 -1
  80. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts.map +1 -1
  81. package/lib/electron-node/setup/app-native-dependency-contribution.js +13 -16
  82. package/lib/electron-node/setup/app-native-dependency-contribution.js.map +1 -1
  83. package/lib/electron-node/setup/app-native-dependency-contribution.spec.js +14 -16
  84. package/lib/electron-node/setup/app-native-dependency-contribution.spec.js.map +1 -1
  85. package/lib/electron-node/setup/main-copy-contribution.d.ts.map +1 -1
  86. package/lib/electron-node/setup/main-copy-contribution.js +8 -8
  87. package/lib/electron-node/setup/main-copy-contribution.js.map +1 -1
  88. package/lib/electron-node/setup/main-copy-contribution.spec.d.ts +2 -0
  89. package/lib/electron-node/setup/main-copy-contribution.spec.d.ts.map +1 -0
  90. package/lib/electron-node/setup/main-copy-contribution.spec.js +54 -0
  91. package/lib/electron-node/setup/main-copy-contribution.spec.js.map +1 -0
  92. package/lib/electron-node/setup/remote-copy-contribution.d.ts.map +1 -1
  93. package/lib/electron-node/setup/remote-copy-contribution.js +13 -16
  94. package/lib/electron-node/setup/remote-copy-contribution.js.map +1 -1
  95. package/lib/electron-node/setup/remote-copy-service.d.ts +3 -3
  96. package/lib/electron-node/setup/remote-copy-service.d.ts.map +1 -1
  97. package/lib/electron-node/setup/remote-copy-service.js +24 -31
  98. package/lib/electron-node/setup/remote-copy-service.js.map +1 -1
  99. package/lib/electron-node/setup/remote-native-dependency-contribution.js +8 -11
  100. package/lib/electron-node/setup/remote-native-dependency-contribution.js.map +1 -1
  101. package/lib/electron-node/setup/remote-native-dependency-service.d.ts +3 -1
  102. package/lib/electron-node/setup/remote-native-dependency-service.d.ts.map +1 -1
  103. package/lib/electron-node/setup/remote-native-dependency-service.js +30 -50
  104. package/lib/electron-node/setup/remote-native-dependency-service.js.map +1 -1
  105. package/lib/electron-node/setup/remote-native-dependency-service.spec.d.ts +2 -0
  106. package/lib/electron-node/setup/remote-native-dependency-service.spec.d.ts.map +1 -0
  107. package/lib/electron-node/setup/remote-native-dependency-service.spec.js +96 -0
  108. package/lib/electron-node/setup/remote-native-dependency-service.spec.js.map +1 -0
  109. package/lib/electron-node/setup/remote-node-setup-service.d.ts +1 -1
  110. package/lib/electron-node/setup/remote-node-setup-service.d.ts.map +1 -1
  111. package/lib/electron-node/setup/remote-node-setup-service.js +25 -30
  112. package/lib/electron-node/setup/remote-node-setup-service.js.map +1 -1
  113. package/lib/electron-node/setup/remote-setup-script-service.js +17 -22
  114. package/lib/electron-node/setup/remote-setup-script-service.js.map +1 -1
  115. package/lib/electron-node/setup/remote-setup-service.d.ts +5 -5
  116. package/lib/electron-node/setup/remote-setup-service.d.ts.map +1 -1
  117. package/lib/electron-node/setup/remote-setup-service.js +33 -42
  118. package/lib/electron-node/setup/remote-setup-service.js.map +1 -1
  119. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +12 -9
  120. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
  121. package/lib/electron-node/ssh/remote-ssh-connection-provider.js +43 -51
  122. package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
  123. package/lib/electron-node/ssh/remote-ssh-connection-provider.spec.js +26 -27
  124. package/lib/electron-node/ssh/remote-ssh-connection-provider.spec.js.map +1 -1
  125. package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts.map +1 -1
  126. package/lib/electron-node/ssh/ssh-identity-file-collector.js +15 -18
  127. package/lib/electron-node/ssh/ssh-identity-file-collector.js.map +1 -1
  128. package/lib/package.spec.d.ts +1 -0
  129. package/lib/package.spec.js +1 -1
  130. package/lib/package.spec.js.map +1 -1
  131. package/package.json +16 -13
  132. package/src/electron-browser/port-forwarding/port-forwading-contribution.ts +1 -1
  133. package/src/electron-browser/port-forwarding/port-forwarding-service.ts +1 -1
  134. package/src/electron-browser/port-forwarding/port-forwarding-widget.tsx +1 -1
  135. package/src/electron-browser/remote-cli-args-collector.spec.ts +1 -1
  136. package/src/electron-browser/remote-electron-file-dialog-service.ts +2 -2
  137. package/src/electron-browser/remote-frontend-contribution.ts +3 -3
  138. package/src/electron-browser/remote-frontend-module.ts +16 -16
  139. package/src/electron-browser/remote-local-workspace-contribution.ts +2 -2
  140. package/src/electron-browser/remote-ssh-contribution.ts +7 -4
  141. package/src/electron-browser/remote-user-storage-provider.ts +2 -2
  142. package/src/electron-node/remote-auto-shutdown-service.spec.ts +1 -1
  143. package/src/electron-node/remote-backend-module.ts +22 -22
  144. package/src/electron-node/remote-connection-service.ts +3 -3
  145. package/src/electron-node/remote-port-forwarding-provider.ts +3 -3
  146. package/src/electron-node/remote-status-service.ts +2 -2
  147. package/src/electron-node/setup/app-native-dependency-contribution.spec.ts +1 -1
  148. package/src/electron-node/setup/app-native-dependency-contribution.ts +1 -1
  149. package/src/electron-node/setup/main-copy-contribution.spec.ts +62 -0
  150. package/src/electron-node/setup/main-copy-contribution.ts +3 -0
  151. package/src/electron-node/setup/remote-copy-contribution.ts +3 -2
  152. package/src/electron-node/setup/remote-copy-service.ts +3 -3
  153. package/src/electron-node/setup/remote-native-dependency-service.spec.ts +106 -0
  154. package/src/electron-node/setup/remote-native-dependency-service.ts +10 -24
  155. package/src/electron-node/setup/remote-node-setup-service.ts +1 -1
  156. package/src/electron-node/setup/remote-setup-service.ts +5 -5
  157. package/src/electron-node/ssh/remote-ssh-connection-provider.spec.ts +6 -2
  158. package/src/electron-node/ssh/remote-ssh-connection-provider.ts +14 -9
  159. package/src/electron-node/ssh/ssh-identity-file-collector.ts +2 -2
  160. package/src/typings/decompress-plugins.d.ts +30 -0
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2023 TypeFox and others.
4
3
  //
@@ -14,20 +13,18 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RemoteElectronFileDialogService = 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 file_dialog_service_1 = require("@theia/filesystem/lib/browser/file-dialog/file-dialog-service");
23
- const electron_file_dialog_service_1 = require("@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service");
24
- const remote_service_1 = require("./remote-service");
25
- const local_backend_services_1 = require("./local-backend-services");
26
- let RemoteElectronFileDialogService = class RemoteElectronFileDialogService extends electron_file_dialog_service_1.ElectronFileDialogService {
16
+ import { __decorate } from "tslib";
17
+ import { nls } from '@theia/core';
18
+ import { inject, injectable } from '@theia/core/shared/inversify';
19
+ import { DefaultFileDialogService } from '@theia/filesystem/lib/browser/file-dialog/file-dialog-service';
20
+ import { ElectronFileDialogService } from '@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service';
21
+ import { RemoteService } from './remote-service.js';
22
+ import { LOCAL_FILE_SCHEME } from './local-backend-services.js';
23
+ let RemoteElectronFileDialogService = class RemoteElectronFileDialogService extends ElectronFileDialogService {
27
24
  showOpenDialog(props, folder) {
28
25
  if (this.remoteService.isConnected()) {
29
26
  this.addLocalFilesButton(props);
30
- return file_dialog_service_1.DefaultFileDialogService.prototype.showOpenDialog.call(this, props, folder);
27
+ return DefaultFileDialogService.prototype.showOpenDialog.call(this, props, folder);
31
28
  }
32
29
  else {
33
30
  return super.showOpenDialog(props, folder);
@@ -35,7 +32,7 @@ let RemoteElectronFileDialogService = class RemoteElectronFileDialogService exte
35
32
  }
36
33
  showSaveDialog(props, folder) {
37
34
  if (this.remoteService.isConnected()) {
38
- return file_dialog_service_1.DefaultFileDialogService.prototype.showSaveDialog.call(this, props, folder);
35
+ return DefaultFileDialogService.prototype.showSaveDialog.call(this, props, folder);
39
36
  }
40
37
  else {
41
38
  return super.showSaveDialog(props, folder);
@@ -43,9 +40,9 @@ let RemoteElectronFileDialogService = class RemoteElectronFileDialogService exte
43
40
  }
44
41
  addLocalFilesButton(props) {
45
42
  const localFilesButton = {
46
- label: core_1.nls.localizeByDefault('Show Local'),
43
+ label: nls.localizeByDefault('Show Local'),
47
44
  onClick: async (resolve) => {
48
- const localFile = await super.showOpenDialog({ ...props, fileScheme: local_backend_services_1.LOCAL_FILE_SCHEME });
45
+ const localFile = await super.showOpenDialog({ ...props, fileScheme: LOCAL_FILE_SCHEME });
49
46
  if (localFile) {
50
47
  resolve({ uri: localFile });
51
48
  }
@@ -59,12 +56,11 @@ let RemoteElectronFileDialogService = class RemoteElectronFileDialogService exte
59
56
  }
60
57
  }
61
58
  };
62
- exports.RemoteElectronFileDialogService = RemoteElectronFileDialogService;
63
- tslib_1.__decorate([
64
- (0, inversify_1.inject)(remote_service_1.RemoteService),
65
- tslib_1.__metadata("design:type", remote_service_1.RemoteService)
59
+ __decorate([
60
+ inject(RemoteService)
66
61
  ], RemoteElectronFileDialogService.prototype, "remoteService", void 0);
67
- exports.RemoteElectronFileDialogService = RemoteElectronFileDialogService = tslib_1.__decorate([
68
- (0, inversify_1.injectable)()
62
+ RemoteElectronFileDialogService = __decorate([
63
+ injectable()
69
64
  ], RemoteElectronFileDialogService);
65
+ export { RemoteElectronFileDialogService };
70
66
  //# 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;;;;AAEhF,sCAAmD;AACnD,4DAAkE;AAGlE,uGAAyG;AACzG,kIAA4H;AAC5H,qDAAiD;AACjD,qEAA6D;AAGtD,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,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;YAChC,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;IAES,mBAAmB,CAAC,KAA0B;QACpD,MAAM,gBAAgB,GAA6C;YAC/D,KAAK,EAAE,UAAG,CAAC,iBAAiB,CAAC,YAAY,CAAC;YAC1C,OAAO,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;gBACrB,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,0CAAiB,EAAE,CAAC,CAAC;gBAC1F,IAAI,SAAS,EAAE,CAAC;oBACZ,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;gBAChC,CAAC;YACL,CAAC;SACJ,CAAC;QACF,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC1B,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACJ,KAAK,CAAC,iBAAiB,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACjD,CAAC;IACL,CAAC;CACJ,CAAA;AAvCY,0EAA+B;AAEE;IAAzC,IAAA,kBAAM,EAAC,8BAAa,CAAC;sCAAmC,8BAAa;sEAAC;0CAF9D,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAuC3C"}
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,EAA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C;IACL,CAAC;IAES,mBAAmB,CAAC,KAA0B;QACpD,MAAM,gBAAgB,GAA6C;YAC/D,KAAK,EAAE,GAAG,CAAC,iBAAiB,CAAC,YAAY,CAAC;YAC1C,OAAO,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;gBACrB,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC,CAAC;gBAC1F,IAAI,SAAS,EAAE,CAAC;oBACZ,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;gBAChC,CAAC;YACL,CAAC;SACJ,CAAC;QACF,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC1B,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACJ,KAAK,CAAC,iBAAiB,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACjD,CAAC;IACL,CAAC;CACJ,CAAA;AArC6C;IAAzC,MAAM,CAAC,aAAa,CAAC;sEAAiD;AAF9D,+BAA+B;IAD3C,UAAU,EAAE;GACA,+BAA+B,CAuC3C"}
@@ -1,8 +1,8 @@
1
1
  import { Command, CommandContribution, CommandRegistry, ContributionProvider, QuickInputService } from '@theia/core';
2
2
  import { FrontendApplicationContribution, StatusBar } from '@theia/core/lib/browser';
3
- import { RemoteStatus, RemoteStatusService } from '../electron-common/remote-status-service';
4
- import { RemoteRegistry, RemoteRegistryContribution } from './remote-registry-contribution';
5
- import { RemoteService } from './remote-service';
3
+ import { RemoteStatus, RemoteStatusService } from '../electron-common/remote-status-service.js';
4
+ import { RemoteRegistry, RemoteRegistryContribution } from './remote-registry-contribution.js';
5
+ import { RemoteService } from './remote-service.js';
6
6
  import { WindowService } from '@theia/core/lib/browser/window/window-service';
7
7
  export declare namespace RemoteCommands {
8
8
  const REMOTE_SELECT: Command;
@@ -1 +1 @@
1
- {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AA0B,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;CA6BhD"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2023 TypeFox and others.
4
3
  //
@@ -14,33 +13,31 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RemoteFrontendContribution = exports.RemoteCommands = 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 remote_status_service_1 = require("../electron-common/remote-status-service");
24
- const remote_registry_contribution_1 = require("./remote-registry-contribution");
25
- const remote_service_1 = require("./remote-service");
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");
28
- var RemoteCommands;
16
+ import { __decorate } from "tslib";
17
+ import { Command, CommandRegistry, ContributionProvider, nls, QuickInputService } from '@theia/core';
18
+ import { StatusBar, StatusBarAlignment } from '@theia/core/lib/browser';
19
+ import { inject, injectable, named, optional } from '@theia/core/shared/inversify';
20
+ import { RemoteStatusService } from '../electron-common/remote-status-service.js';
21
+ import { RemoteRegistry, RemoteRegistryContribution } from './remote-registry-contribution.js';
22
+ import { RemoteService } from './remote-service.js';
23
+ import { WindowService } from '@theia/core/lib/browser/window/window-service';
24
+ import { getLocalPort, getCurrentPort } from '@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source';
25
+ export var RemoteCommands;
29
26
  (function (RemoteCommands) {
30
27
  RemoteCommands.REMOTE_SELECT = {
31
28
  id: 'remote.select'
32
29
  };
33
- RemoteCommands.REMOTE_DISCONNECT = core_1.Command.toDefaultLocalizedCommand({
30
+ RemoteCommands.REMOTE_DISCONNECT = Command.toDefaultLocalizedCommand({
34
31
  id: 'remote.disconnect',
35
32
  label: 'Close Remote Connection',
36
33
  });
37
- })(RemoteCommands || (exports.RemoteCommands = RemoteCommands = {}));
34
+ })(RemoteCommands || (RemoteCommands = {}));
38
35
  let RemoteFrontendContribution = class RemoteFrontendContribution {
39
36
  constructor() {
40
- this.remoteRegistry = new remote_registry_contribution_1.RemoteRegistry();
37
+ this.remoteRegistry = new RemoteRegistry();
41
38
  }
42
39
  async configure() {
43
- const port = (0, electron_local_ws_connection_source_1.getCurrentPort)();
40
+ const port = getCurrentPort();
44
41
  if (port) {
45
42
  const status = await this.remoteStatusService.getStatus(Number(port));
46
43
  await this.setStatusBar(status);
@@ -54,7 +51,7 @@ let RemoteFrontendContribution = class RemoteFrontendContribution {
54
51
  async setStatusBar(info) {
55
52
  this.remoteService.setConnected(info.alive);
56
53
  const entry = {
57
- alignment: browser_1.StatusBarAlignment.LEFT,
54
+ alignment: StatusBarAlignment.LEFT,
58
55
  command: RemoteCommands.REMOTE_SELECT.id,
59
56
  backgroundColor: 'var(--theia-statusBarItem-remoteBackground)',
60
57
  color: 'var(--theia-statusBarItem-remoteForeground)',
@@ -62,10 +59,10 @@ let RemoteFrontendContribution = class RemoteFrontendContribution {
62
59
  ...(info.alive
63
60
  ? {
64
61
  text: `$(codicon-remote) ${info.type}: ${info.name.length > 35 ? info.name.substring(0, 32) + '...' : info.name}`,
65
- tooltip: core_1.nls.localizeByDefault('Editing on {0}', info.name),
62
+ tooltip: nls.localizeByDefault('Editing on {0}', info.name),
66
63
  } : {
67
64
  text: '$(codicon-remote)',
68
- tooltip: core_1.nls.localizeByDefault('Open a Remote Window'),
65
+ tooltip: nls.localizeByDefault('Open a Remote Window'),
69
66
  })
70
67
  };
71
68
  this.statusBar.setElement('remoteStatus', entry);
@@ -85,7 +82,7 @@ let RemoteFrontendContribution = class RemoteFrontendContribution {
85
82
  });
86
83
  }
87
84
  async disconnectRemote() {
88
- const localPort = (0, electron_local_ws_connection_source_1.getLocalPort)();
85
+ const localPort = getLocalPort();
89
86
  if (localPort) {
90
87
  const searchParams = new URLSearchParams(location.search);
91
88
  const currentPort = searchParams.get('port');
@@ -115,45 +112,38 @@ let RemoteFrontendContribution = class RemoteFrontendContribution {
115
112
  });
116
113
  }
117
114
  const selection = await this.quickInputService?.showQuickPick(quickPicks, {
118
- placeholder: core_1.nls.localizeByDefault('Select an option to open a Remote Window')
115
+ placeholder: nls.localizeByDefault('Select an option to open a Remote Window')
119
116
  });
120
117
  if (selection) {
121
118
  this.commandRegistry.executeCommand(selection.id);
122
119
  }
123
120
  }
124
121
  };
125
- exports.RemoteFrontendContribution = RemoteFrontendContribution;
126
- tslib_1.__decorate([
127
- (0, inversify_1.inject)(browser_1.StatusBar),
128
- tslib_1.__metadata("design:type", Object)
122
+ __decorate([
123
+ inject(StatusBar)
129
124
  ], RemoteFrontendContribution.prototype, "statusBar", void 0);
130
- tslib_1.__decorate([
131
- (0, inversify_1.inject)(core_1.QuickInputService),
132
- (0, inversify_1.optional)(),
133
- tslib_1.__metadata("design:type", Object)
125
+ __decorate([
126
+ inject(QuickInputService),
127
+ optional()
134
128
  ], RemoteFrontendContribution.prototype, "quickInputService", void 0);
135
- tslib_1.__decorate([
136
- (0, inversify_1.inject)(core_1.CommandRegistry),
137
- tslib_1.__metadata("design:type", core_1.CommandRegistry)
129
+ __decorate([
130
+ inject(CommandRegistry)
138
131
  ], RemoteFrontendContribution.prototype, "commandRegistry", void 0);
139
- tslib_1.__decorate([
140
- (0, inversify_1.inject)(remote_service_1.RemoteService),
141
- tslib_1.__metadata("design:type", remote_service_1.RemoteService)
132
+ __decorate([
133
+ inject(RemoteService)
142
134
  ], RemoteFrontendContribution.prototype, "remoteService", void 0);
143
- tslib_1.__decorate([
144
- (0, inversify_1.inject)(remote_status_service_1.RemoteStatusService),
145
- tslib_1.__metadata("design:type", Object)
135
+ __decorate([
136
+ inject(RemoteStatusService)
146
137
  ], RemoteFrontendContribution.prototype, "remoteStatusService", void 0);
147
- tslib_1.__decorate([
148
- (0, inversify_1.inject)(window_service_1.WindowService),
149
- tslib_1.__metadata("design:type", Object)
138
+ __decorate([
139
+ inject(WindowService)
150
140
  ], RemoteFrontendContribution.prototype, "windowService", void 0);
151
- tslib_1.__decorate([
152
- (0, inversify_1.inject)(core_1.ContributionProvider),
153
- (0, inversify_1.named)(remote_registry_contribution_1.RemoteRegistryContribution),
154
- tslib_1.__metadata("design:type", Object)
141
+ __decorate([
142
+ inject(ContributionProvider),
143
+ named(RemoteRegistryContribution)
155
144
  ], RemoteFrontendContribution.prototype, "remoteRegistryContributions", void 0);
156
- exports.RemoteFrontendContribution = RemoteFrontendContribution = tslib_1.__decorate([
157
- (0, inversify_1.injectable)()
145
+ RemoteFrontendContribution = __decorate([
146
+ injectable()
158
147
  ], RemoteFrontendContribution);
148
+ export { RemoteFrontendContribution };
159
149
  //# 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;A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AAC,UAAU,EAAE;YACtE,WAAW,EAAE,UAAG,CAAC,iBAAiB,CAAC,0CAA0C,CAAC;SACjF,CAAC,CAAC;QACH,IAAI,SAAS,EAAE,CAAC;YACZ,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,SAAS,CAAC,EAAG,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;CAEJ,CAAA;AA/GY,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,CA+GtC"}
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,OAAO,EAAE,OAAO,EAAuB,eAAe,EAAE,oBAAoB,EAAE,GAAG,EAAE,iBAAiB,EAAkB,MAAM,aAAa,CAAC;AAC1I,OAAO,EAAmC,SAAS,EAAE,kBAA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C,UAAU,CAAC,IAAI,CAAC;oBACZ,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,OAAO,CAAC,QAAQ;iBAC1B,CAAC,CAAC;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,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,UAAU,EAAE;YACtE,WAAW,EAAE,GAAG,CAAC,iBAAiB,CAAC,0CAA0C,CAAC;SACjF,CAAC,CAAC;QACH,IAAI,SAAS,EAAE,CAAC;YACZ,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,SAAS,CAAC,EAAG,CAAC,CAAC;QACvD,CAAC;IACL,CAAC;CAEJ,CAAA;AA5GsB;IADlB,MAAM,CAAC,SAAS,CAAC;6DACsB;AAGrB;IADlB,MAAM,CAAC,iBAAiB,CAAC;IAAE,QAAQ,EAAE;qEACmB;AAGtC;IADlB,MAAM,CAAC,eAAe,CAAC;mEAC4B;AAGjC;IADlB,MAAM,CAAC,aAAa,CAAC;iEAC0B;AAG7B;IADlB,MAAM,CAAC,mBAAmB,CAAC;uEACgC;AAGzC;IADlB,MAAM,CAAC,aAAa,CAAC;iEAC0B;AAG7B;IADlB,MAAM,CAAC,oBAAoB,CAAC;IAAE,KAAK,CAAC,0BAA0B,CAAC;+EACiC;AArBxF,0BAA0B;IADtC,UAAU,EAAE;GACA,0BAA0B,CA+GtC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2023 TypeFox and others.
4
3
  //
@@ -14,72 +13,71 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const core_1 = require("@theia/core");
19
- const inversify_1 = require("@theia/core/shared/inversify");
20
- const browser_1 = require("@theia/core/lib/browser");
21
- const remote_ssh_contribution_1 = require("./remote-ssh-contribution");
22
- const remote_ssh_connection_provider_1 = require("../electron-common/remote-ssh-connection-provider");
23
- const remote_frontend_contribution_1 = require("./remote-frontend-contribution");
24
- const remote_registry_contribution_1 = require("./remote-registry-contribution");
25
- const remote_service_1 = require("./remote-service");
26
- const remote_status_service_1 = require("../electron-common/remote-status-service");
27
- const electron_file_dialog_service_1 = require("@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service");
28
- const remote_electron_file_dialog_service_1 = require("./remote-electron-file-dialog-service");
29
- const remote_preferences_1 = require("../electron-common/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");
41
- const browser_2 = require("@theia/workspace/lib/browser");
42
- const remote_local_workspace_contribution_1 = require("./remote-local-workspace-contribution");
43
- const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
44
- const remote_cli_args_collector_1 = require("./remote-cli-args-collector");
45
- exports.default = new inversify_1.ContainerModule((bind, _, __, rebind) => {
46
- bind(remote_frontend_contribution_1.RemoteFrontendContribution).toSelf().inSingletonScope();
47
- bind(browser_1.FrontendApplicationContribution).toService(remote_frontend_contribution_1.RemoteFrontendContribution);
48
- bind(core_1.CommandContribution).toService(remote_frontend_contribution_1.RemoteFrontendContribution);
49
- (0, core_1.bindRootContributionProvider)(bind, remote_registry_contribution_1.RemoteRegistryContribution);
50
- bind(remote_ssh_contribution_1.RemoteSSHContribution).toSelf().inSingletonScope();
51
- bind(remote_registry_contribution_1.RemoteRegistryContribution).toService(remote_ssh_contribution_1.RemoteSSHContribution);
52
- (0, remote_preferences_1.bindRemotePreferences)(bind);
53
- rebind(electron_file_dialog_service_1.ElectronFileDialogService).to(remote_electron_file_dialog_service_1.RemoteElectronFileDialogService).inSingletonScope();
54
- bind(remote_service_1.RemoteService).toSelf().inSingletonScope();
55
- bind(remote_cli_args_collector_1.RemoteCliArgsCollector).toSelf().inSingletonScope();
56
- bind(port_forwarding_widget_1.PortForwardingWidget).toSelf();
57
- bind(browser_1.WidgetFactory).toDynamicValue(context => ({
58
- id: port_forwarding_widget_1.PORT_FORWARDING_WIDGET_ID,
59
- createWidget: () => context.container.get(port_forwarding_widget_1.PortForwardingWidget)
16
+ import { bindRootContributionProvider, CommandContribution } from '@theia/core';
17
+ import { ContainerModule } from '@theia/core/shared/inversify';
18
+ import { bindViewContribution, FrontendApplicationContribution, isRemote, WidgetFactory } from '@theia/core/lib/browser';
19
+ import { RemoteSSHContribution } from './remote-ssh-contribution.js';
20
+ import { RemoteSSHConnectionProvider, RemoteSSHConnectionProviderPath } from '../electron-common/remote-ssh-connection-provider.js';
21
+ import { RemoteFrontendContribution } from './remote-frontend-contribution.js';
22
+ import { RemoteRegistryContribution } from './remote-registry-contribution.js';
23
+ import { RemoteService } from './remote-service.js';
24
+ import { RemoteStatusService, RemoteStatusServicePath } from '../electron-common/remote-status-service.js';
25
+ import { ElectronFileDialogService } from '@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service';
26
+ import { RemoteElectronFileDialogService } from './remote-electron-file-dialog-service.js';
27
+ import { bindRemotePreferences } from '../electron-common/remote-preferences.js';
28
+ import { PortForwardingWidget, PORT_FORWARDING_WIDGET_ID } from './port-forwarding/port-forwarding-widget.js';
29
+ import { PortForwardingContribution } from './port-forwarding/port-forwading-contribution.js';
30
+ import { PortForwardingService } from './port-forwarding/port-forwarding-service.js';
31
+ import { RemotePortForwardingProvider, RemoteRemotePortForwardingProviderPath } from '../electron-common/remote-port-forwarding-provider.js';
32
+ import { ServiceConnectionProvider } from '@theia/core/lib/browser/messaging/service-connection-provider';
33
+ import '../../src/electron-browser/style/port-forwarding-widget.css';
34
+ import { UserStorageContribution } from '@theia/userstorage/lib/browser/user-storage-contribution';
35
+ import { RemoteUserStorageContribution } from './remote-user-storage-provider.js';
36
+ import { RemoteFileSystemProvider, remoteFileSystemPath, RemoteFileSystemProxyFactory, RemoteFileSystemServer } from '@theia/filesystem/lib/common/remote-file-system-provider';
37
+ import { LocalEnvVariablesServer, LocalRemoteFileSystemContribution, LocalRemoteFileSystemProvider, LocalRemoteFileSytemServer } from './local-backend-services.js';
38
+ import { envVariablesPath, EnvVariablesServer } from '@theia/core/lib/common/env-variables';
39
+ import { WorkspaceHandlingContribution, WorkspaceOpenHandlerContribution } from '@theia/workspace/lib/browser';
40
+ import { RemoteLocalWorkspaceContribution } from './remote-local-workspace-contribution.js';
41
+ import { FileServiceContribution } from '@theia/filesystem/lib/browser/file-service';
42
+ import { RemoteCliArgsCollector } from './remote-cli-args-collector.js';
43
+ export default new ContainerModule((bind, _, __, rebind) => {
44
+ bind(RemoteFrontendContribution).toSelf().inSingletonScope();
45
+ bind(FrontendApplicationContribution).toService(RemoteFrontendContribution);
46
+ bind(CommandContribution).toService(RemoteFrontendContribution);
47
+ bindRootContributionProvider(bind, RemoteRegistryContribution);
48
+ bind(RemoteSSHContribution).toSelf().inSingletonScope();
49
+ bind(RemoteRegistryContribution).toService(RemoteSSHContribution);
50
+ bindRemotePreferences(bind);
51
+ rebind(ElectronFileDialogService).to(RemoteElectronFileDialogService).inSingletonScope();
52
+ bind(RemoteService).toSelf().inSingletonScope();
53
+ bind(RemoteCliArgsCollector).toSelf().inSingletonScope();
54
+ bind(PortForwardingWidget).toSelf();
55
+ bind(WidgetFactory).toDynamicValue(context => ({
56
+ id: PORT_FORWARDING_WIDGET_ID,
57
+ createWidget: () => context.container.get(PortForwardingWidget)
60
58
  }));
61
- (0, browser_1.bindViewContribution)(bind, port_forwading_contribution_1.PortForwardingContribution);
62
- bind(port_forwarding_service_1.PortForwardingService).toSelf().inSingletonScope();
63
- bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath)).inSingletonScope();
64
- bind(remote_status_service_1.RemoteStatusService).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_status_service_1.RemoteStatusServicePath)).inSingletonScope();
65
- bind(remote_port_forwarding_provider_1.RemotePortForwardingProvider).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_port_forwarding_provider_1.RemoteRemotePortForwardingProviderPath)).inSingletonScope();
66
- if (browser_1.isRemote) {
67
- bind(local_backend_services_1.LocalRemoteFileSytemServer).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_file_system_provider_1.remoteFileSystemPath, new remote_file_system_provider_1.RemoteFileSystemProxyFactory()));
68
- bind(local_backend_services_1.LocalEnvVariablesServer).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, env_variables_1.envVariablesPath));
69
- bind(local_backend_services_1.LocalRemoteFileSystemProvider).toSelf().inSingletonScope();
59
+ bindViewContribution(bind, PortForwardingContribution);
60
+ bind(PortForwardingService).toSelf().inSingletonScope();
61
+ bind(RemoteSSHConnectionProvider).toDynamicValue(ctx => ServiceConnectionProvider.createLocalProxy(ctx.container, RemoteSSHConnectionProviderPath)).inSingletonScope();
62
+ bind(RemoteStatusService).toDynamicValue(ctx => ServiceConnectionProvider.createLocalProxy(ctx.container, RemoteStatusServicePath)).inSingletonScope();
63
+ bind(RemotePortForwardingProvider).toDynamicValue(ctx => ServiceConnectionProvider.createLocalProxy(ctx.container, RemoteRemotePortForwardingProviderPath)).inSingletonScope();
64
+ if (isRemote) {
65
+ bind(LocalRemoteFileSytemServer).toDynamicValue(ctx => ServiceConnectionProvider.createLocalProxy(ctx.container, remoteFileSystemPath, new RemoteFileSystemProxyFactory()));
66
+ bind(LocalEnvVariablesServer).toDynamicValue(ctx => ServiceConnectionProvider.createLocalProxy(ctx.container, envVariablesPath));
67
+ bind(LocalRemoteFileSystemProvider).toSelf().inSingletonScope();
70
68
  }
71
69
  else {
72
- bind(local_backend_services_1.LocalRemoteFileSytemServer).toService(remote_file_system_provider_1.RemoteFileSystemServer);
73
- bind(local_backend_services_1.LocalEnvVariablesServer).toService(env_variables_1.EnvVariablesServer);
74
- bind(local_backend_services_1.LocalRemoteFileSystemProvider).toService(remote_file_system_provider_1.RemoteFileSystemProvider);
70
+ bind(LocalRemoteFileSytemServer).toService(RemoteFileSystemServer);
71
+ bind(LocalEnvVariablesServer).toService(EnvVariablesServer);
72
+ bind(LocalRemoteFileSystemProvider).toService(RemoteFileSystemProvider);
75
73
  }
76
- rebind(user_storage_contribution_1.UserStorageContribution).to(remote_user_storage_provider_1.RemoteUserStorageContribution);
77
- if (browser_1.isRemote) {
78
- bind(remote_local_workspace_contribution_1.RemoteLocalWorkspaceContribution).toSelf().inSingletonScope();
79
- bind(browser_2.WorkspaceOpenHandlerContribution).toService(remote_local_workspace_contribution_1.RemoteLocalWorkspaceContribution);
80
- bind(browser_2.WorkspaceHandlingContribution).toService(remote_local_workspace_contribution_1.RemoteLocalWorkspaceContribution);
81
- bind(local_backend_services_1.LocalRemoteFileSystemContribution).toSelf().inSingletonScope();
82
- bind(file_service_1.FileServiceContribution).toService(local_backend_services_1.LocalRemoteFileSystemContribution);
74
+ rebind(UserStorageContribution).to(RemoteUserStorageContribution);
75
+ if (isRemote) {
76
+ bind(RemoteLocalWorkspaceContribution).toSelf().inSingletonScope();
77
+ bind(WorkspaceOpenHandlerContribution).toService(RemoteLocalWorkspaceContribution);
78
+ bind(WorkspaceHandlingContribution).toService(RemoteLocalWorkspaceContribution);
79
+ bind(LocalRemoteFileSystemContribution).toSelf().inSingletonScope();
80
+ bind(FileServiceContribution).toService(LocalRemoteFileSystemContribution);
83
81
  }
84
82
  });
85
83
  //# 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,sCAAgF;AAChF,4DAA+D;AAC/D,qDAAyH;AACzH,uEAAkE;AAClE,sGAAiI;AACjI,iFAA4E;AAC5E,iFAA4E;AAC5E,qDAAiD;AACjD,oFAAwG;AACxG,kIAA4H;AAC5H,+FAAwF;AACxF,8EAA8E;AAC9E,qFAA2G;AAC3G,+FAA2F;AAC3F,uFAAkF;AAClF,wGAA0I;AAC1I,+GAA0G;AAC1G,uEAAqE;AACrE,wGAAmG;AACnG,iFAA+E;AAC/E,0GAAgL;AAChL,qEAAiK;AACjK,wEAA4F;AAC5F,0DAA+G;AAC/G,+FAAyF;AACzF,6EAAqF;AACrF,2EAAqE;AAErE,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;IACvD,IAAI,CAAC,yDAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EA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,EAAE,CAAC;QACnE,IAAI,CAAC,0CAAgC,CAAC,CAAC,SAAS,CAAC,sEAAgC,CAAC,CAAC;QACnF,IAAI,CAAC,uCAA6B,CAAC,CAAC,SAAS,CAAC,sEAAgC,CAAC,CAAC;QAChF,IAAI,CAAC,0DAAiC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;QACpE,IAAI,CAAC,sCAAuB,CAAC,CAAC,SAAS,CAAC,0DAAiC,CAAC,CAAC;IAC/E,CAAC;AAEL,CAAC,CAAC,CAAC"}
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,OAAO,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACzH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACpI,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAC3G,OAAO,EAAE,yBAAyB,EAAE,M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C,SAAS,CAAC,gCAAgC,CAAC,CAAC;QACnF,IAAI,CAAC,6BAA6B,CAAC,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;QAChF,IAAI,CAAC,iCAAiC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;QACpE,IAAI,CAAC,uBAAuB,CAAC,CAAC,SAAS,CAAC,iCAAiC,CAAC,CAAC;IAC/E,CAAC;AAEL,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ILogger, MaybePromise, URI } from '@theia/core';
2
2
  import { WorkspaceHandlingContribution, WorkspaceInput, WorkspaceOpenHandlerContribution } from '@theia/workspace/lib/browser';
3
- import { RemoteStatusService } from '../electron-common/remote-status-service';
3
+ import { RemoteStatusService } from '../electron-common/remote-status-service.js';
4
4
  import { WindowService } from '@theia/core/lib/browser/window/window-service';
5
5
  import { WorkspacePreferences } from '@theia/workspace/lib/common';
6
6
  export declare class RemoteLocalWorkspaceContribution implements WorkspaceOpenHandlerContribution, WorkspaceHandlingContribution {
@@ -1 +1 @@
1
- {"version":3,"file":"remote-local-workspace-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/remote-local-workspace-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,6BAA6B,EAAE,cAAc,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAG/H,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,qBACa,gCAAiC,YAAW,gCAAgC,EAAE,6BAA6B;IAGpH,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAG5D,SAAS,CAAC,QAAQ,CAAC,aAAa,E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AAG,EAAE,GAAG,GAAG,OAAO;IAItB,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAWrE,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;IAcjF,SAAS,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAOnD,SAAS,CAAC,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAMpD,SAAS,CAAC,cAAc,IAAI,GAAG;CAMlC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2024 TypeFox and others.
4
3
  //
@@ -14,25 +13,23 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RemoteLocalWorkspaceContribution = 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 local_backend_services_1 = require("./local-backend-services");
23
- const electron_local_ws_connection_source_1 = require("@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source");
24
- const remote_status_service_1 = require("../electron-common/remote-status-service");
25
- const window_service_1 = require("@theia/core/lib/browser/window/window-service");
26
- const common_1 = require("@theia/workspace/lib/common");
16
+ import { __decorate } from "tslib";
17
+ import { ILogger, URI } from '@theia/core';
18
+ import { inject, injectable, named } from '@theia/core/shared/inversify';
19
+ import { LOCAL_FILE_SCHEME } from './local-backend-services.js';
20
+ import { CURRENT_PORT_PARAM, LOCAL_PORT_PARAM, getCurrentPort, getLocalPort } from '@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source';
21
+ import { RemoteStatusService } from '../electron-common/remote-status-service.js';
22
+ import { WindowService } from '@theia/core/lib/browser/window/window-service';
23
+ import { WorkspacePreferences } from '@theia/workspace/lib/common';
27
24
  let RemoteLocalWorkspaceContribution = class RemoteLocalWorkspaceContribution {
28
25
  canHandle(uri) {
29
- return uri.scheme === local_backend_services_1.LOCAL_FILE_SCHEME;
26
+ return uri.scheme === LOCAL_FILE_SCHEME;
30
27
  }
31
28
  async modifyRecentWorkspaces(workspaces) {
32
29
  return workspaces.map(workspace => {
33
- const uri = new core_1.URI(workspace);
30
+ const uri = new URI(workspace);
34
31
  if (uri.scheme === 'file') {
35
- return uri.withScheme(local_backend_services_1.LOCAL_FILE_SCHEME).toString();
32
+ return uri.withScheme(LOCAL_FILE_SCHEME).toString();
36
33
  }
37
34
  // possible check as well if a remote/dev-container workspace is from the connected remote and therefore change it to the 'file' scheme
38
35
  return workspace;
@@ -53,7 +50,7 @@ let RemoteLocalWorkspaceContribution = class RemoteLocalWorkspaceContribution {
53
50
  }
54
51
  }
55
52
  reloadWindow(workspacePath) {
56
- const currentPort = (0, electron_local_ws_connection_source_1.getCurrentPort)();
53
+ const currentPort = getCurrentPort();
57
54
  this.remoteStatusService.connectionClosed(parseInt(currentPort ?? '0'));
58
55
  const searchParams = this.getModifiedUrl().searchParams;
59
56
  this.windowService.reload({ hash: encodeURI(workspacePath), search: Object.fromEntries(searchParams) });
@@ -65,30 +62,26 @@ let RemoteLocalWorkspaceContribution = class RemoteLocalWorkspaceContribution {
65
62
  }
66
63
  getModifiedUrl() {
67
64
  const url = new URL(window.location.href);
68
- url.searchParams.set(electron_local_ws_connection_source_1.CURRENT_PORT_PARAM, (0, electron_local_ws_connection_source_1.getLocalPort)() ?? '');
69
- url.searchParams.delete(electron_local_ws_connection_source_1.LOCAL_PORT_PARAM);
65
+ url.searchParams.set(CURRENT_PORT_PARAM, getLocalPort() ?? '');
66
+ url.searchParams.delete(LOCAL_PORT_PARAM);
70
67
  return url;
71
68
  }
72
69
  };
73
- exports.RemoteLocalWorkspaceContribution = RemoteLocalWorkspaceContribution;
74
- tslib_1.__decorate([
75
- (0, inversify_1.inject)(remote_status_service_1.RemoteStatusService),
76
- tslib_1.__metadata("design:type", Object)
70
+ __decorate([
71
+ inject(RemoteStatusService)
77
72
  ], RemoteLocalWorkspaceContribution.prototype, "remoteStatusService", void 0);
78
- tslib_1.__decorate([
79
- (0, inversify_1.inject)(window_service_1.WindowService),
80
- tslib_1.__metadata("design:type", Object)
73
+ __decorate([
74
+ inject(WindowService)
81
75
  ], RemoteLocalWorkspaceContribution.prototype, "windowService", void 0);
82
- tslib_1.__decorate([
83
- (0, inversify_1.inject)(core_1.ILogger),
84
- (0, inversify_1.named)('remote:RemoteLocalWorkspaceContribution'),
85
- tslib_1.__metadata("design:type", Object)
76
+ __decorate([
77
+ inject(ILogger),
78
+ named('remote:RemoteLocalWorkspaceContribution')
86
79
  ], RemoteLocalWorkspaceContribution.prototype, "logger", void 0);
87
- tslib_1.__decorate([
88
- (0, inversify_1.inject)(common_1.WorkspacePreferences),
89
- tslib_1.__metadata("design:type", Object)
80
+ __decorate([
81
+ inject(WorkspacePreferences)
90
82
  ], RemoteLocalWorkspaceContribution.prototype, "preferences", void 0);
91
- exports.RemoteLocalWorkspaceContribution = RemoteLocalWorkspaceContribution = tslib_1.__decorate([
92
- (0, inversify_1.injectable)()
83
+ RemoteLocalWorkspaceContribution = __decorate([
84
+ injectable()
93
85
  ], RemoteLocalWorkspaceContribution);
86
+ export { RemoteLocalWorkspaceContribution };
94
87
  //# sourceMappingURL=remote-local-workspace-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-local-workspace-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/remote-local-workspace-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,g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GAAE;GACA,gCAAgC,CA8D5C"}
1
+ {"version":3,"file":"remote-local-workspace-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/remote-local-workspace-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,OAAO,EAAE,OAAO,EAAgB,GAAG,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gFAAgF,CAAC;AACpK,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAG5D,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAczC,SAAS,CAAC,GAAQ;QACd,OAAO,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,sBAAsB,CAAC,UAAoB;QAC7C,OAAO,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YAC9B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;YAC/B,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;gBACxB,OAAO,GAAG,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAC;YACxD,CAAC;YACD,uIAAuI;YACvI,OAA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