@theia/remote 1.77.0-next.1 → 1.77.0-next.101

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 (147) 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.js +5 -8
  86. package/lib/electron-node/setup/main-copy-contribution.js.map +1 -1
  87. package/lib/electron-node/setup/remote-copy-contribution.d.ts.map +1 -1
  88. package/lib/electron-node/setup/remote-copy-contribution.js +13 -16
  89. package/lib/electron-node/setup/remote-copy-contribution.js.map +1 -1
  90. package/lib/electron-node/setup/remote-copy-service.d.ts +3 -3
  91. package/lib/electron-node/setup/remote-copy-service.d.ts.map +1 -1
  92. package/lib/electron-node/setup/remote-copy-service.js +23 -30
  93. package/lib/electron-node/setup/remote-copy-service.js.map +1 -1
  94. package/lib/electron-node/setup/remote-native-dependency-contribution.js +8 -11
  95. package/lib/electron-node/setup/remote-native-dependency-contribution.js.map +1 -1
  96. package/lib/electron-node/setup/remote-native-dependency-service.d.ts +1 -1
  97. package/lib/electron-node/setup/remote-native-dependency-service.d.ts.map +1 -1
  98. package/lib/electron-node/setup/remote-native-dependency-service.js +25 -30
  99. package/lib/electron-node/setup/remote-native-dependency-service.js.map +1 -1
  100. package/lib/electron-node/setup/remote-node-setup-service.d.ts +2 -2
  101. package/lib/electron-node/setup/remote-node-setup-service.d.ts.map +1 -1
  102. package/lib/electron-node/setup/remote-node-setup-service.js +25 -30
  103. package/lib/electron-node/setup/remote-node-setup-service.js.map +1 -1
  104. package/lib/electron-node/setup/remote-setup-script-service.js +17 -22
  105. package/lib/electron-node/setup/remote-setup-script-service.js.map +1 -1
  106. package/lib/electron-node/setup/remote-setup-service.d.ts +5 -5
  107. package/lib/electron-node/setup/remote-setup-service.d.ts.map +1 -1
  108. package/lib/electron-node/setup/remote-setup-service.js +33 -42
  109. package/lib/electron-node/setup/remote-setup-service.js.map +1 -1
  110. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +12 -9
  111. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
  112. package/lib/electron-node/ssh/remote-ssh-connection-provider.js +43 -51
  113. package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
  114. package/lib/electron-node/ssh/remote-ssh-connection-provider.spec.js +26 -26
  115. package/lib/electron-node/ssh/remote-ssh-connection-provider.spec.js.map +1 -1
  116. package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts.map +1 -1
  117. package/lib/electron-node/ssh/ssh-identity-file-collector.js +15 -18
  118. package/lib/electron-node/ssh/ssh-identity-file-collector.js.map +1 -1
  119. package/lib/package.spec.d.ts +1 -0
  120. package/lib/package.spec.js +1 -0
  121. package/package.json +17 -9
  122. package/src/electron-browser/port-forwarding/port-forwading-contribution.ts +1 -1
  123. package/src/electron-browser/port-forwarding/port-forwarding-service.ts +1 -1
  124. package/src/electron-browser/port-forwarding/port-forwarding-widget.tsx +1 -1
  125. package/src/electron-browser/remote-cli-args-collector.spec.ts +1 -1
  126. package/src/electron-browser/remote-electron-file-dialog-service.ts +2 -2
  127. package/src/electron-browser/remote-frontend-contribution.ts +3 -3
  128. package/src/electron-browser/remote-frontend-module.ts +16 -16
  129. package/src/electron-browser/remote-local-workspace-contribution.ts +2 -2
  130. package/src/electron-browser/remote-ssh-contribution.ts +7 -4
  131. package/src/electron-browser/remote-user-storage-provider.ts +2 -2
  132. package/src/electron-node/remote-auto-shutdown-service.spec.ts +1 -1
  133. package/src/electron-node/remote-backend-module.ts +22 -22
  134. package/src/electron-node/remote-connection-service.ts +3 -3
  135. package/src/electron-node/remote-port-forwarding-provider.ts +3 -3
  136. package/src/electron-node/remote-status-service.ts +2 -2
  137. package/src/electron-node/setup/app-native-dependency-contribution.spec.ts +1 -1
  138. package/src/electron-node/setup/app-native-dependency-contribution.ts +1 -1
  139. package/src/electron-node/setup/remote-copy-contribution.ts +3 -2
  140. package/src/electron-node/setup/remote-copy-service.ts +4 -4
  141. package/src/electron-node/setup/remote-native-dependency-service.ts +5 -6
  142. package/src/electron-node/setup/remote-node-setup-service.ts +2 -2
  143. package/src/electron-node/setup/remote-setup-service.ts +5 -5
  144. package/src/electron-node/ssh/remote-ssh-connection-provider.spec.ts +6 -2
  145. package/src/electron-node/ssh/remote-ssh-connection-provider.ts +14 -9
  146. package/src/electron-node/ssh/ssh-identity-file-collector.ts +2 -2
  147. 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,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.BackendRemoteServiceImpl = exports.REMOTE_START = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const backend_remote_service_1 = require("@theia/core/lib/node/remote/backend-remote-service");
22
- exports.REMOTE_START = 'remote';
23
- let BackendRemoteServiceImpl = class BackendRemoteServiceImpl extends backend_remote_service_1.BackendRemoteService {
16
+ import { __decorate } from "tslib";
17
+ import { injectable } from '@theia/core/shared/inversify';
18
+ import { BackendRemoteService } from '@theia/core/lib/node/remote/backend-remote-service';
19
+ export const REMOTE_START = 'remote';
20
+ let BackendRemoteServiceImpl = class BackendRemoteServiceImpl extends BackendRemoteService {
24
21
  constructor() {
25
22
  super(...arguments);
26
23
  this.isRemote = false;
27
24
  }
28
25
  configure(conf) {
29
- conf.option(exports.REMOTE_START, {
26
+ conf.option(REMOTE_START, {
30
27
  description: 'Starts the server as an endpoint for a remote connection (i.e. through SSH)',
31
28
  type: 'boolean',
32
29
  default: false
33
30
  });
34
31
  }
35
32
  setArguments(args) {
36
- this.isRemote = Boolean(args[exports.REMOTE_START]);
33
+ this.isRemote = Boolean(args[REMOTE_START]);
37
34
  }
38
35
  isRemoteServer() {
39
36
  return this.isRemote;
40
37
  }
41
38
  };
42
- exports.BackendRemoteServiceImpl = BackendRemoteServiceImpl;
43
- exports.BackendRemoteServiceImpl = BackendRemoteServiceImpl = tslib_1.__decorate([
44
- (0, inversify_1.injectable)()
39
+ BackendRemoteServiceImpl = __decorate([
40
+ injectable()
45
41
  ], BackendRemoteServiceImpl);
42
+ export { BackendRemoteServiceImpl };
46
43
  //# sourceMappingURL=backend-remote-service-impl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backend-remote-service-impl.js","sourceRoot":"","sources":["../../src/electron-node/backend-remote-service-impl.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAGhF,4DAA0D;AAE1D,+FAA0F;AAE7E,QAAA,YAAY,GAAG,QAAQ,CAAC;AAG9B,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,6CAAoB;IAA3D;;QAEO,aAAQ,GAAY,KAAK,CAAC;IAkBxC,CAAC;IAhBG,SAAS,CAAC,IAAU;QAChB,IAAI,CAAC,MAAM,CAAC,oBAAY,EAAE;YACtB,WAAW,EAAE,6EAA6E;YAC1F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB,CAAC,CAAC;IACP,CAAC;IAED,YAAY,CAAC,IAAe;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,oBAAY,CAAC,CAAC,CAAC;IAChD,CAAC;IAEQ,cAAc;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;CAEJ,CAAA;AApBY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CAoBpC"}
1
+ {"version":3,"file":"backend-remote-service-impl.js","sourceRoot":"","sources":["../../src/electron-node/backend-remote-service-impl.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE1F,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC;AAG9B,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oBAAoB;IAA3D;;QAEO,aAAQ,GAAY,KAAK,CAAC;IAkBxC,CAAC;IAhBG,SAAS,CAAC,IAAU;QAChB,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE;YACtB,WAAW,EAAE,6EAA6E;YAC1F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB,CAAC,CAAC;IACP,CAAC;IAED,YAAY,CAAC,IAAe;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAChD,CAAC;IAEQ,cAAc;QACnB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;CAEJ,CAAA;AApBY,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CAoBpC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource GmbH and others.
4
3
  //
@@ -14,13 +13,11 @@
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.RemoteAutoShutdownService = exports.REMOTE_AUTO_SHUTDOWN_TIMEOUT = exports.REMOTE_AUTO_SHUTDOWN = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const core_1 = require("@theia/core");
22
- exports.REMOTE_AUTO_SHUTDOWN = 'remote-auto-shutdown';
23
- exports.REMOTE_AUTO_SHUTDOWN_TIMEOUT = 'remote-auto-shutdown-timeout';
16
+ import { __decorate } from "tslib";
17
+ import { inject, injectable, named } from '@theia/core/shared/inversify';
18
+ import { ILogger } from '@theia/core';
19
+ export const REMOTE_AUTO_SHUTDOWN = 'remote-auto-shutdown';
20
+ export const REMOTE_AUTO_SHUTDOWN_TIMEOUT = 'remote-auto-shutdown-timeout';
24
21
  /** Default timeout: 5 minutes (same as VS Code). */
25
22
  const DEFAULT_SHUTDOWN_TIMEOUT = 5 * 60 * 1000;
26
23
  /**
@@ -36,20 +33,20 @@ let RemoteAutoShutdownService = class RemoteAutoShutdownService {
36
33
  this.activeConnections = 0;
37
34
  }
38
35
  configure(conf) {
39
- conf.option(exports.REMOTE_AUTO_SHUTDOWN, {
36
+ conf.option(REMOTE_AUTO_SHUTDOWN, {
40
37
  description: 'Automatically shut down the remote backend when all frontend connections close',
41
38
  type: 'boolean',
42
39
  default: false
43
40
  });
44
- conf.option(exports.REMOTE_AUTO_SHUTDOWN_TIMEOUT, {
41
+ conf.option(REMOTE_AUTO_SHUTDOWN_TIMEOUT, {
45
42
  description: 'Timeout in milliseconds before auto-shutdown after the last connection closes',
46
43
  type: 'number',
47
44
  default: DEFAULT_SHUTDOWN_TIMEOUT
48
45
  });
49
46
  }
50
47
  setArguments(args) {
51
- this.enabled = Boolean(args[exports.REMOTE_AUTO_SHUTDOWN]);
52
- const timeout = Number(args[exports.REMOTE_AUTO_SHUTDOWN_TIMEOUT]);
48
+ this.enabled = Boolean(args[REMOTE_AUTO_SHUTDOWN]);
49
+ const timeout = Number(args[REMOTE_AUTO_SHUTDOWN_TIMEOUT]);
53
50
  if (!isNaN(timeout) && timeout > 0) {
54
51
  this.shutdownTimeout = timeout;
55
52
  }
@@ -98,13 +95,12 @@ let RemoteAutoShutdownService = class RemoteAutoShutdownService {
98
95
  }
99
96
  }
100
97
  };
101
- exports.RemoteAutoShutdownService = RemoteAutoShutdownService;
102
- tslib_1.__decorate([
103
- (0, inversify_1.inject)(core_1.ILogger),
104
- (0, inversify_1.named)('remote:RemoteAutoShutdownService'),
105
- tslib_1.__metadata("design:type", Object)
98
+ __decorate([
99
+ inject(ILogger),
100
+ named('remote:RemoteAutoShutdownService')
106
101
  ], RemoteAutoShutdownService.prototype, "logger", void 0);
107
- exports.RemoteAutoShutdownService = RemoteAutoShutdownService = tslib_1.__decorate([
108
- (0, inversify_1.injectable)()
102
+ RemoteAutoShutdownService = __decorate([
103
+ injectable()
109
104
  ], RemoteAutoShutdownService);
105
+ export { RemoteAutoShutdownService };
110
106
  //# sourceMappingURL=remote-auto-shutdown-service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-auto-shutdown-service.js","sourceRoot":"","sources":["../../src/electron-node/remote-auto-shutdown-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,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,4DAAyE;AACzE,sCAAsC;AAQzB,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAE3E,oDAAoD;AACpD,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAE/C;;;;;GAKG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QAKO,YAAO,GAAG,KAAK,CAAC;QAChB,oBAAe,GAAG,wBAAwB,CAAC;QAC3C,sBAAiB,GAAG,CAAC,CAAC;IA0EpC,CAAC;IAvEG,SAAS,CAAC,IAAU;QAChB,IAAI,CAAC,MAAM,CAAC,4BAAoB,EAAE;YAC9B,WAAW,EAAE,gFAAgF;YAC7F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB,CAAC,CAAC;QACH,IAAI,CAAC,MAA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,CAAC;QACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8CAA8C,IAAI,CAAC,eAAe,IAAI,CAAC,CAAC;QAC1F,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;YACjC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;YAC/B,IAAI,CAAC,WAAW,EAAE,CAAC;QACvB,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IAC7B,CAAC;IAES,WAAW;QACjB,IAAI,IAAI,CAAC,iBAAiB,GAAG,CAAC,EAAE,CAAC;YAC7B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YACtF,OAAO;QACX,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0DAA0D,CAAC,CAAC;QAC7E,2EAA2E;QAC3E,yEAAyE;QACzE,2EAA2E;QAC3E,4EAA4E;QAC5E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAES,cAAc;QACpB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACnE,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACjC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QACnC,CAAC;IACL,CAAC;CACJ,CAAA;AAjFY,8DAAyB;AAGf;IADlB,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,kCAAkC,CAAC;;yDACxB;oCAH1B,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAiFrC"}
1
+ {"version":3,"file":"remote-auto-shutdown-service.js","sourceRoot":"","sources":["../../src/electron-node/remote-auto-shutdown-service.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE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C;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0DAA0D,CAAC,CAAC;QAC7E,2EAA2E;QAC3E,yEAAyE;QACzE,2EAA2E;QAC3E,4EAA4E;QAC5E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAES,cAAc;QACpB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACnE,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACjC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QACnC,CAAC;IACL,CAAC;CACJ,CAAA;AA9EsB;IADlB,MAAM,CAAC,OAAO,CAAC;IAAE,KAAK,CAAC,kCAAkC,CAAC;yDACxB;AAH1B,yBAAyB;IADrC,UAAU,EAAE;GACA,yBAAyB,CAiFrC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource GmbH and others.
4
3
  //
@@ -14,11 +13,10 @@
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 chai_1 = require("chai");
19
- const remote_auto_shutdown_service_1 = require("./remote-auto-shutdown-service");
20
- const events_1 = require("events");
21
- class MockSocket extends events_1.EventEmitter {
16
+ import { expect } from 'chai';
17
+ import { RemoteAutoShutdownService } from './remote-auto-shutdown-service.js';
18
+ import { EventEmitter } from 'events';
19
+ class MockSocket extends EventEmitter {
22
20
  disconnect() {
23
21
  this.emit('disconnect');
24
22
  }
@@ -35,7 +33,7 @@ function createMockLogger() {
35
33
  * Exposes protected state for assertions and replaces `tryShutdown`
36
34
  * with a flag so tests don't need real timers or `process.exit` stubs.
37
35
  */
38
- class TestableAutoShutdownService extends remote_auto_shutdown_service_1.RemoteAutoShutdownService {
36
+ class TestableAutoShutdownService extends RemoteAutoShutdownService {
39
37
  constructor() {
40
38
  super();
41
39
  this.shutdownRequested = false;
@@ -88,66 +86,66 @@ describe('RemoteAutoShutdownService', () => {
88
86
  }
89
87
  it('should not be enabled by default', () => {
90
88
  const service = createService();
91
- (0, chai_1.expect)(service.isEnabled).to.equal(false);
92
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(false);
89
+ expect(service.isEnabled).to.equal(false);
90
+ expect(service.hasScheduledTimer).to.equal(false);
93
91
  });
94
92
  it('should schedule initial timer when enabled', () => {
95
93
  const service = createService();
96
94
  enableAutoShutdown(service);
97
- (0, chai_1.expect)(service.isEnabled).to.equal(true);
98
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(true);
95
+ expect(service.isEnabled).to.equal(true);
96
+ expect(service.hasScheduledTimer).to.equal(true);
99
97
  });
100
98
  it('should cancel timer when a connection arrives', () => {
101
99
  const service = createService();
102
100
  enableAutoShutdown(service);
103
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(true);
101
+ expect(service.hasScheduledTimer).to.equal(true);
104
102
  connectSocket(service);
105
- (0, chai_1.expect)(service.connections).to.equal(1);
106
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(false);
103
+ expect(service.connections).to.equal(1);
104
+ expect(service.hasScheduledTimer).to.equal(false);
107
105
  });
108
106
  it('should schedule timer when last connection disconnects', () => {
109
107
  const service = createService();
110
108
  enableAutoShutdown(service);
111
109
  const socket = connectSocket(service);
112
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(false);
110
+ expect(service.hasScheduledTimer).to.equal(false);
113
111
  socket.disconnect();
114
- (0, chai_1.expect)(service.connections).to.equal(0);
115
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(true);
112
+ expect(service.connections).to.equal(0);
113
+ expect(service.hasScheduledTimer).to.equal(true);
116
114
  });
117
115
  it('should not schedule timer while connections remain', () => {
118
116
  const service = createService();
119
117
  enableAutoShutdown(service);
120
118
  const socket1 = connectSocket(service);
121
119
  const socket2 = connectSocket(service);
122
- (0, chai_1.expect)(service.connections).to.equal(2);
120
+ expect(service.connections).to.equal(2);
123
121
  socket1.disconnect();
124
- (0, chai_1.expect)(service.connections).to.equal(1);
125
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(false);
122
+ expect(service.connections).to.equal(1);
123
+ expect(service.hasScheduledTimer).to.equal(false);
126
124
  socket2.disconnect();
127
- (0, chai_1.expect)(service.connections).to.equal(0);
128
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(true);
125
+ expect(service.connections).to.equal(0);
126
+ expect(service.hasScheduledTimer).to.equal(true);
129
127
  });
130
128
  it('should cancel and reschedule timer when new connection arrives during countdown', () => {
131
129
  const service = createService();
132
130
  enableAutoShutdown(service);
133
131
  const socket1 = connectSocket(service);
134
132
  socket1.disconnect();
135
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(true);
133
+ expect(service.hasScheduledTimer).to.equal(true);
136
134
  // New connection cancels the timer
137
135
  const socket2 = connectSocket(service);
138
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(false);
139
- (0, chai_1.expect)(service.shutdownRequested).to.equal(false);
136
+ expect(service.hasScheduledTimer).to.equal(false);
137
+ expect(service.shutdownRequested).to.equal(false);
140
138
  socket2.disconnect();
141
- (0, chai_1.expect)(service.hasScheduledTimer).to.equal(true);
139
+ expect(service.hasScheduledTimer).to.equal(true);
142
140
  });
143
141
  it('should request shutdown when timer fires with no connections', () => {
144
142
  const service = createService();
145
143
  enableAutoShutdown(service);
146
144
  const socket = connectSocket(service);
147
145
  socket.disconnect();
148
- (0, chai_1.expect)(service.shutdownRequested).to.equal(false);
146
+ expect(service.shutdownRequested).to.equal(false);
149
147
  service.fireTimer();
150
- (0, chai_1.expect)(service.shutdownRequested).to.equal(true);
148
+ expect(service.shutdownRequested).to.equal(true);
151
149
  });
152
150
  it('should not request shutdown when timer fires but a connection exists', () => {
153
151
  const service = createService();
@@ -156,14 +154,14 @@ describe('RemoteAutoShutdownService', () => {
156
154
  connectSocket(service);
157
155
  // Timer was cancelled by the connection, but let's test tryShutdown directly
158
156
  service.fireTimer(); // no-op since timer was cancelled
159
- (0, chai_1.expect)(service.shutdownRequested).to.equal(false);
157
+ expect(service.shutdownRequested).to.equal(false);
160
158
  });
161
159
  it('should request shutdown on initial timer if no connection ever arrives', () => {
162
160
  const service = createService();
163
161
  enableAutoShutdown(service);
164
162
  // Nobody connects, timer fires
165
163
  service.fireTimer();
166
- (0, chai_1.expect)(service.shutdownRequested).to.equal(true);
164
+ expect(service.shutdownRequested).to.equal(true);
167
165
  });
168
166
  });
169
167
  //# sourceMappingURL=remote-auto-shutdown-service.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-auto-shutdown-service.spec.js","sourceRoot":"","sources":["../../src/electron-node/remote-auto-shutdown-service.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,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,+BAA8B;AAC9B,iFAA2E;AAI3E,mCAAsC;AAGtC,MAAM,UAAW,SAAQ,qBAAY;IACjC,UAAU;QACN,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;CACJ;AAED,SAAS,gBAAgB;IACrB,OAAO;QACH,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC;QAChB,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;QACf,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;QACf,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC;KACG,CAAC;AAC5B,CAAC;AAED;;;GAGG;AACH,MAAM,2BAA4B,SAAQ,wDAAyB;IAI/D;QACI,KAAK,EAAE,CAAC;QAJL,sBAAiB,GAAG,KAAK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M,EAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAElD,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,IAAA,aAAM,EAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sEAAsE,EAAE,GAAG,EAAE;QAC5E,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;QAChC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAE5B,6BAA6B;QAC7B,aAAa,CAAC,OAAO,CAAC,CAAC;QACvB,6EAA6E;QAC7E,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,kCAAkC;QACvD,IAAA,aAAM,EAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wEAAwE,EAAE,GAAG,EAAE;QAC9E,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;QAChC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAE5B,+BAA+B;QAC/B,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,IAAA,aAAM,EAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"remote-auto-shutdown-service.spec.js","sourceRoot":"","sources":["../../src/electron-node/remote-auto-shutdown-service.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAA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,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2023 TypeFox and others.
4
3
  //
@@ -14,78 +13,76 @@
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.remoteConnectionModule = void 0;
19
- const inversify_1 = require("@theia/core/shared/inversify");
20
- const node_1 = require("@theia/core/lib/node");
21
- const messaging_listeners_1 = require("@theia/core/lib/node/messaging/messaging-listeners");
22
- const remote_auto_shutdown_service_1 = require("./remote-auto-shutdown-service");
23
- const remote_cli_contribution_1 = require("@theia/core/lib/node/remote/remote-cli-contribution");
24
- const remote_connection_service_1 = require("./remote-connection-service");
25
- const remote_proxy_server_provider_1 = require("./remote-proxy-server-provider");
26
- const remote_connection_socket_provider_1 = require("./remote-connection-socket-provider");
27
- const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
28
- const remote_ssh_connection_provider_1 = require("../electron-common/remote-ssh-connection-provider");
29
- const remote_ssh_connection_provider_2 = require("./ssh/remote-ssh-connection-provider");
30
- const ssh_identity_file_collector_1 = require("./ssh/ssh-identity-file-collector");
31
- const remote_copy_service_1 = require("./setup/remote-copy-service");
32
- const remote_setup_service_1 = require("./setup/remote-setup-service");
33
- const remote_native_dependency_service_1 = require("./setup/remote-native-dependency-service");
34
- const backend_remote_service_impl_1 = require("./backend-remote-service-impl");
35
- const backend_remote_service_1 = require("@theia/core/lib/node/remote/backend-remote-service");
36
- const remote_node_setup_service_1 = require("./setup/remote-node-setup-service");
37
- const remote_setup_script_service_1 = require("./setup/remote-setup-script-service");
38
- const remote_status_service_1 = require("../electron-common/remote-status-service");
39
- const remote_status_service_2 = require("./remote-status-service");
40
- const core_1 = require("@theia/core");
41
- const remote_copy_contribution_1 = require("./setup/remote-copy-contribution");
42
- const remote_copy_contribution_2 = require("@theia/core/lib/node/remote/remote-copy-contribution");
43
- const main_copy_contribution_1 = require("./setup/main-copy-contribution");
44
- const remote_native_dependency_contribution_1 = require("./setup/remote-native-dependency-contribution");
45
- const app_native_dependency_contribution_1 = require("./setup/app-native-dependency-contribution");
46
- const remote_port_forwarding_provider_1 = require("./remote-port-forwarding-provider");
47
- const remote_port_forwarding_provider_2 = require("../electron-common/remote-port-forwarding-provider");
48
- const remote_preferences_1 = require("../electron-common/remote-preferences");
49
- exports.remoteConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
50
- bind(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl).toSelf().inSingletonScope();
51
- bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toService(remote_ssh_connection_provider_2.RemoteSSHConnectionProviderImpl);
52
- bindBackendService(remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath, remote_ssh_connection_provider_1.RemoteSSHConnectionProvider);
53
- bind(remote_port_forwarding_provider_1.RemotePortForwardingProviderImpl).toSelf().inSingletonScope();
54
- bind(remote_port_forwarding_provider_2.RemotePortForwardingProvider).toService(remote_port_forwarding_provider_1.RemotePortForwardingProviderImpl);
55
- bindBackendService(remote_port_forwarding_provider_2.RemoteRemotePortForwardingProviderPath, remote_port_forwarding_provider_2.RemotePortForwardingProvider);
16
+ import { ContainerModule } from '@theia/core/shared/inversify';
17
+ import { BackendApplicationContribution, CliContribution } from '@theia/core/lib/node';
18
+ import { MessagingListenerContribution } from '@theia/core/lib/node/messaging/messaging-listeners';
19
+ import { RemoteAutoShutdownService } from './remote-auto-shutdown-service.js';
20
+ import { RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
21
+ import { RemoteConnectionService } from './remote-connection-service.js';
22
+ import { RemoteProxyServerProvider } from './remote-proxy-server-provider.js';
23
+ import { RemoteConnectionSocketProvider } from './remote-connection-socket-provider.js';
24
+ import { ConnectionContainerModule } from '@theia/core/lib/node/messaging/connection-container-module';
25
+ import { RemoteSSHConnectionProvider, RemoteSSHConnectionProviderPath } from '../electron-common/remote-ssh-connection-provider.js';
26
+ import { RemoteSSHConnectionProviderImpl } from './ssh/remote-ssh-connection-provider.js';
27
+ import { SSHIdentityFileCollector } from './ssh/ssh-identity-file-collector.js';
28
+ import { RemoteCopyService } from './setup/remote-copy-service.js';
29
+ import { RemoteSetupService } from './setup/remote-setup-service.js';
30
+ import { RemoteNativeDependencyService } from './setup/remote-native-dependency-service.js';
31
+ import { BackendRemoteServiceImpl } from './backend-remote-service-impl.js';
32
+ import { BackendRemoteService } from '@theia/core/lib/node/remote/backend-remote-service';
33
+ import { RemoteNodeSetupService } from './setup/remote-node-setup-service.js';
34
+ import { RemotePosixScriptStrategy, RemoteSetupScriptService, RemoteWindowsScriptStrategy } from './setup/remote-setup-script-service.js';
35
+ import { RemoteStatusService, RemoteStatusServicePath } from '../electron-common/remote-status-service.js';
36
+ import { RemoteStatusServiceImpl } from './remote-status-service.js';
37
+ import { ConnectionHandler, RpcConnectionHandler, bindRootContributionProvider } from '@theia/core';
38
+ import { RemoteCopyRegistryImpl } from './setup/remote-copy-contribution.js';
39
+ import { RemoteCopyContribution } from '@theia/core/lib/node/remote/remote-copy-contribution';
40
+ import { MainCopyContribution } from './setup/main-copy-contribution.js';
41
+ import { RemoteNativeDependencyContribution } from './setup/remote-native-dependency-contribution.js';
42
+ import { AppNativeDependencyContribution } from './setup/app-native-dependency-contribution.js';
43
+ import { RemotePortForwardingProviderImpl } from './remote-port-forwarding-provider.js';
44
+ import { RemotePortForwardingProvider, RemoteRemotePortForwardingProviderPath } from '../electron-common/remote-port-forwarding-provider.js';
45
+ import { bindRemotePreferences } from '../electron-common/remote-preferences.js';
46
+ export const remoteConnectionModule = ConnectionContainerModule.create(({ bind, bindBackendService }) => {
47
+ bind(RemoteSSHConnectionProviderImpl).toSelf().inSingletonScope();
48
+ bind(RemoteSSHConnectionProvider).toService(RemoteSSHConnectionProviderImpl);
49
+ bindBackendService(RemoteSSHConnectionProviderPath, RemoteSSHConnectionProvider);
50
+ bind(RemotePortForwardingProviderImpl).toSelf().inSingletonScope();
51
+ bind(RemotePortForwardingProvider).toService(RemotePortForwardingProviderImpl);
52
+ bindBackendService(RemoteRemotePortForwardingProviderPath, RemotePortForwardingProvider);
56
53
  });
57
- exports.default = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebind) => {
58
- bind(remote_proxy_server_provider_1.RemoteProxyServerProvider).toSelf().inSingletonScope();
59
- bind(remote_connection_socket_provider_1.RemoteConnectionSocketProvider).toSelf().inSingletonScope();
60
- bind(remote_connection_service_1.RemoteConnectionService).toSelf().inSingletonScope();
61
- bind(node_1.BackendApplicationContribution).toService(remote_connection_service_1.RemoteConnectionService);
62
- bind(remote_status_service_2.RemoteStatusServiceImpl).toSelf().inSingletonScope();
63
- bind(remote_status_service_1.RemoteStatusService).toService(remote_status_service_2.RemoteStatusServiceImpl);
64
- bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.RpcConnectionHandler(remote_status_service_1.RemoteStatusServicePath, () => ctx.container.get(remote_status_service_1.RemoteStatusService))).inSingletonScope();
65
- bind(remote_copy_service_1.RemoteCopyService).toSelf().inSingletonScope();
66
- bind(remote_setup_service_1.RemoteSetupService).toSelf().inSingletonScope();
67
- bind(remote_node_setup_service_1.RemoteNodeSetupService).toSelf().inSingletonScope();
68
- bind(remote_setup_script_service_1.RemoteWindowsScriptStrategy).toSelf().inSingletonScope();
69
- bind(remote_setup_script_service_1.RemotePosixScriptStrategy).toSelf().inSingletonScope();
70
- bind(remote_setup_script_service_1.RemoteSetupScriptService).toSelf().inSingletonScope();
71
- bind(remote_native_dependency_service_1.RemoteNativeDependencyService).toSelf().inSingletonScope();
72
- bind(remote_copy_contribution_1.RemoteCopyRegistryImpl).toSelf().inSingletonScope();
73
- (0, core_1.bindRootContributionProvider)(bind, remote_copy_contribution_2.RemoteCopyContribution);
74
- (0, core_1.bindRootContributionProvider)(bind, remote_native_dependency_contribution_1.RemoteNativeDependencyContribution);
75
- bind(main_copy_contribution_1.MainCopyContribution).toSelf().inSingletonScope();
76
- bind(remote_copy_contribution_2.RemoteCopyContribution).toService(main_copy_contribution_1.MainCopyContribution);
77
- bind(app_native_dependency_contribution_1.AppNativeDependencyContribution).toSelf().inSingletonScope();
78
- bind(remote_native_dependency_contribution_1.RemoteNativeDependencyContribution).toService(app_native_dependency_contribution_1.AppNativeDependencyContribution);
79
- bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(exports.remoteConnectionModule);
80
- bind(backend_remote_service_impl_1.BackendRemoteServiceImpl).toSelf().inSingletonScope();
81
- rebind(backend_remote_service_1.BackendRemoteService).toService(backend_remote_service_impl_1.BackendRemoteServiceImpl);
82
- bind(node_1.CliContribution).toService(backend_remote_service_impl_1.BackendRemoteServiceImpl);
83
- bind(ssh_identity_file_collector_1.SSHIdentityFileCollector).toSelf().inSingletonScope();
84
- (0, remote_preferences_1.bindRemotePreferences)(bind);
85
- bind(remote_auto_shutdown_service_1.RemoteAutoShutdownService).toSelf().inSingletonScope();
86
- bind(node_1.CliContribution).toService(remote_auto_shutdown_service_1.RemoteAutoShutdownService);
87
- bind(messaging_listeners_1.MessagingListenerContribution).toService(remote_auto_shutdown_service_1.RemoteAutoShutdownService);
88
- bind(remote_cli_contribution_1.RemoteCliContribution).toConstantValue({
54
+ export default new ContainerModule((bind, _unbind, _isBound, rebind) => {
55
+ bind(RemoteProxyServerProvider).toSelf().inSingletonScope();
56
+ bind(RemoteConnectionSocketProvider).toSelf().inSingletonScope();
57
+ bind(RemoteConnectionService).toSelf().inSingletonScope();
58
+ bind(BackendApplicationContribution).toService(RemoteConnectionService);
59
+ bind(RemoteStatusServiceImpl).toSelf().inSingletonScope();
60
+ bind(RemoteStatusService).toService(RemoteStatusServiceImpl);
61
+ bind(ConnectionHandler).toDynamicValue(ctx => new RpcConnectionHandler(RemoteStatusServicePath, () => ctx.container.get(RemoteStatusService))).inSingletonScope();
62
+ bind(RemoteCopyService).toSelf().inSingletonScope();
63
+ bind(RemoteSetupService).toSelf().inSingletonScope();
64
+ bind(RemoteNodeSetupService).toSelf().inSingletonScope();
65
+ bind(RemoteWindowsScriptStrategy).toSelf().inSingletonScope();
66
+ bind(RemotePosixScriptStrategy).toSelf().inSingletonScope();
67
+ bind(RemoteSetupScriptService).toSelf().inSingletonScope();
68
+ bind(RemoteNativeDependencyService).toSelf().inSingletonScope();
69
+ bind(RemoteCopyRegistryImpl).toSelf().inSingletonScope();
70
+ bindRootContributionProvider(bind, RemoteCopyContribution);
71
+ bindRootContributionProvider(bind, RemoteNativeDependencyContribution);
72
+ bind(MainCopyContribution).toSelf().inSingletonScope();
73
+ bind(RemoteCopyContribution).toService(MainCopyContribution);
74
+ bind(AppNativeDependencyContribution).toSelf().inSingletonScope();
75
+ bind(RemoteNativeDependencyContribution).toService(AppNativeDependencyContribution);
76
+ bind(ConnectionContainerModule).toConstantValue(remoteConnectionModule);
77
+ bind(BackendRemoteServiceImpl).toSelf().inSingletonScope();
78
+ rebind(BackendRemoteService).toService(BackendRemoteServiceImpl);
79
+ bind(CliContribution).toService(BackendRemoteServiceImpl);
80
+ bind(SSHIdentityFileCollector).toSelf().inSingletonScope();
81
+ bindRemotePreferences(bind);
82
+ bind(RemoteAutoShutdownService).toSelf().inSingletonScope();
83
+ bind(CliContribution).toService(RemoteAutoShutdownService);
84
+ bind(MessagingListenerContribution).toService(RemoteAutoShutdownService);
85
+ bind(RemoteCliContribution).toConstantValue({
89
86
  enhanceArgs: () => ['--remote-auto-shutdown']
90
87
  });
91
88
  });
@@ -1 +1 @@
1
- {"version":3,"file":"remote-backend-module.js","sourceRoot":"","sources":["../../src/electron-node/remote-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,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AE,CAAC,CAAC,wBAAwB,CAAC;KAChD,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"remote-backend-module.js","sourceRoot":"","sources":["../../src/electron-node/remote-backend-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,8BAA8B,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACpI,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,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Ae,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IAC3D,IAAI,CAAC,6BAA6B,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IAEzE,IAAI,CAAC,qBAAqB,CAAC,CAAC,eAAe,CAAC;QACxC,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,wBAAwB,CAAC;KAChD,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { RemoteConnection } from './remote-types';
1
+ import { RemoteConnection } from './remote-types.js';
2
2
  import { Disposable } from '@theia/core';
3
- import { RemoteCopyService } from './setup/remote-copy-service';
3
+ import { RemoteCopyService } from './setup/remote-copy-service.js';
4
4
  import { BackendApplicationContribution } from '@theia/core/lib/node';
5
- import { RemoteSetupService } from './setup/remote-setup-service';
5
+ import { RemoteSetupService } from './setup/remote-setup-service.js';
6
6
  export declare class RemoteConnectionService implements BackendApplicationContribution {
7
7
  protected readonly copyService: RemoteCopyService;
8
8
  protected readonly remoteSetupService: RemoteSetupService;
@@ -1 +1 @@
1
- {"version":3,"file":"remote-connection-service.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-connection-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,qBACa,uBAAwB,YAAW,8BAA8B;IAG1E,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IAIlD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAE1D,SAAS,CAAC,QAAQ,CAAC,WAAW,gCAAuC;IAErE,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIvD,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIjE,QAAQ,CAAC,UAAU,EAAE,gBAAgB,GAAG,UAAU;IAOlD,MAAM,IAAI,IAAI;CASjB"}
1
+ {"version":3,"file":"remote-connection-service.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-connection-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,qBACa,uBAAwB,YAAW,8BAA8B;IAG1E,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IAIlD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAE1D,SAAS,CAAC,QAAQ,CAAC,WAAW,gCAAuC;IAErE,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIvD,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAIjE,QAAQ,CAAC,UAAU,EAAE,gBAAgB,GAAG,UAAU;IAOlD,MAAM,IAAI,IAAI;CASjB"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2023 TypeFox and others.
4
3
  //
@@ -14,13 +13,11 @@
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.RemoteConnectionService = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const core_1 = require("@theia/core");
22
- const remote_copy_service_1 = require("./setup/remote-copy-service");
23
- const remote_setup_service_1 = require("./setup/remote-setup-service");
16
+ import { __decorate } from "tslib";
17
+ import { inject, injectable } from '@theia/core/shared/inversify';
18
+ import { Disposable } from '@theia/core';
19
+ import { RemoteCopyService } from './setup/remote-copy-service.js';
20
+ import { RemoteSetupService } from './setup/remote-setup-service.js';
24
21
  let RemoteConnectionService = class RemoteConnectionService {
25
22
  constructor() {
26
23
  this.connections = new Map();
@@ -33,7 +30,7 @@ let RemoteConnectionService = class RemoteConnectionService {
33
30
  }
34
31
  register(connection) {
35
32
  this.connections.set(connection.id, connection);
36
- return core_1.Disposable.create(() => {
33
+ return Disposable.create(() => {
37
34
  this.connections.delete(connection.id);
38
35
  });
39
36
  }
@@ -49,16 +46,14 @@ let RemoteConnectionService = class RemoteConnectionService {
49
46
  }
50
47
  }
51
48
  };
52
- exports.RemoteConnectionService = RemoteConnectionService;
53
- tslib_1.__decorate([
54
- (0, inversify_1.inject)(remote_copy_service_1.RemoteCopyService),
55
- tslib_1.__metadata("design:type", remote_copy_service_1.RemoteCopyService)
49
+ __decorate([
50
+ inject(RemoteCopyService)
56
51
  ], RemoteConnectionService.prototype, "copyService", void 0);
57
- tslib_1.__decorate([
58
- (0, inversify_1.inject)(remote_setup_service_1.RemoteSetupService),
59
- tslib_1.__metadata("design:type", remote_setup_service_1.RemoteSetupService)
52
+ __decorate([
53
+ inject(RemoteSetupService)
60
54
  ], RemoteConnectionService.prototype, "remoteSetupService", void 0);
61
- exports.RemoteConnectionService = RemoteConnectionService = tslib_1.__decorate([
62
- (0, inversify_1.injectable)()
55
+ RemoteConnectionService = __decorate([
56
+ injectable()
63
57
  ], RemoteConnectionService);
58
+ export { RemoteConnectionService };
64
59
  //# sourceMappingURL=remote-connection-service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-connection-service.js","sourceRoot":"","sources":["../../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AC;YAAA,CAAC;QACN,CAAC;IACL,CAAC;CACJ,CAAA;AAnCY,0DAAuB;AAGb;IADlB,IAAA,kBAAM,EAAC,uCAAiB,CAAC;sCACM,uCAAiB;4DAAC;AAI/B;IADlB,IAAA,kBAAM,EAAC,yCAAkB,CAAC;sCACY,yCAAkB;mEAAC;kCAPjD,uBAAuB;IADnC,IAAA,sBAAU,GAAE;GACA,uBAAuB,CAmCnC"}
1
+ {"version":3,"file":"remote-connection-service.js","sourceRoot":"","sources":["../../src/electron-node/remote-connection-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,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAG9D,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAA7B;QASgB,gBAAW,GAAG,IAAI,GAAG,EAA4B,CAAC;IA0BzE,CAAC;IAxBG,aAAa,CAAC,EAAU;QACpB,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IAED,qBAAqB,CAAC,IAAY;QAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC;IACnG,CAAC;IAED,QAAQ,CAAC,UAA4B;QACjC,IAAI,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