@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) 2026 Tom Aviv.
4
3
  //
@@ -14,22 +13,22 @@
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 tslib_1 = require("tslib");
19
- const chai_1 = require("chai");
20
- const ssh_config_1 = tslib_1.__importDefault(require("ssh-config"));
21
- const remote_ssh_connection_provider_1 = require("./remote-ssh-connection-provider");
16
+ import { expect } from 'chai';
17
+ import SshConfigModule from 'ssh-config';
18
+ import { RemoteSSHConnectionProviderImpl } from './remote-ssh-connection-provider.js';
19
+ // `ssh-config` is a CommonJS module that provides the class as `default` export of `module.exports`.
20
+ const SshConfig = SshConfigModule.default;
22
21
  /**
23
22
  * Parses the SSH config from an in-memory string instead of a file,
24
23
  * so tests don't need to touch the file system.
25
24
  */
26
- class TestableRemoteSSHConnectionProvider extends remote_ssh_connection_provider_1.RemoteSSHConnectionProviderImpl {
25
+ class TestableRemoteSSHConnectionProvider extends RemoteSSHConnectionProviderImpl {
27
26
  constructor() {
28
27
  super(...arguments);
29
28
  this.configContent = '';
30
29
  }
31
30
  async doGetSSHConfig() {
32
- return ssh_config_1.default.parse(this.configContent);
31
+ return SshConfig.parse(this.configContent);
33
32
  }
34
33
  }
35
34
  describe('RemoteSSHConnectionProviderImpl#matchSSHConfigHost', () => {
@@ -43,78 +42,78 @@ describe('RemoteSSHConnectionProviderImpl#matchSSHConfigHost', () => {
43
42
  HostName %h.example.com
44
43
  `);
45
44
  const record = await provider.matchSSHConfigHost('my-server');
46
- (0, chai_1.expect)(record?.hostname).to.equal('server.example.com');
45
+ expect(record?.hostname).to.equal('server.example.com');
47
46
  });
48
47
  it('should replace the host pattern with the concrete host on match', async () => {
49
48
  const provider = createProvider(`Host my-*
50
49
  Port 2200
51
50
  `);
52
51
  const record = await provider.matchSSHConfigHost('my-server');
53
- (0, chai_1.expect)(record?.host).to.equal('my-server');
52
+ expect(record?.host).to.equal('my-server');
54
53
  });
55
54
  it('should handle a multi-pattern host entry (host as string array)', async () => {
56
55
  const provider = createProvider(`Host web-* db-*
57
56
  Port 2022
58
57
  `);
59
58
  const record = await provider.matchSSHConfigHost('web-1');
60
- (0, chai_1.expect)(record?.host).to.equal('web-1');
61
- (0, chai_1.expect)(record?.port).to.equal('2022');
59
+ expect(record?.host).to.equal('web-1');
60
+ expect(record?.port).to.equal('2022');
62
61
  });
63
62
  it('should match against subsequent patterns of a multi-pattern host entry', async () => {
64
63
  const provider = createProvider(`Host web-* db-*
65
64
  HostName %h.cluster.local
66
65
  `);
67
66
  const record = await provider.matchSSHConfigHost('db-3');
68
- (0, chai_1.expect)(record?.host).to.equal('db-3');
69
- (0, chai_1.expect)(record?.hostname).to.equal('3.cluster.local');
67
+ expect(record?.host).to.equal('db-3');
68
+ expect(record?.hostname).to.equal('3.cluster.local');
70
69
  });
71
70
  it('should match a non-glob host entry', async () => {
72
71
  const provider = createProvider(`Host build-server
73
72
  HostName 192.168.1.10
74
73
  `);
75
74
  const record = await provider.matchSSHConfigHost('build-server');
76
- (0, chai_1.expect)(record?.host).to.equal('build-server');
77
- (0, chai_1.expect)(record?.hostname).to.equal('192.168.1.10');
75
+ expect(record?.host).to.equal('build-server');
76
+ expect(record?.hostname).to.equal('192.168.1.10');
78
77
  });
79
78
  it('should match a multi-pattern host entry with non-glob values', async () => {
80
79
  const provider = createProvider(`Host alpha beta
81
80
  Port 2022
82
81
  `);
83
82
  const first = await provider.matchSSHConfigHost('alpha');
84
- (0, chai_1.expect)(first?.host).to.equal('alpha');
85
- (0, chai_1.expect)(first?.port).to.equal('2022');
83
+ expect(first?.host).to.equal('alpha');
84
+ expect(first?.port).to.equal('2022');
86
85
  const second = await provider.matchSSHConfigHost('beta');
87
- (0, chai_1.expect)(second?.host).to.equal('beta');
88
- (0, chai_1.expect)(second?.port).to.equal('2022');
86
+ expect(second?.host).to.equal('beta');
87
+ expect(second?.port).to.equal('2022');
89
88
  });
90
89
  it('should expand ? wildcards', async () => {
91
90
  const provider = createProvider(`Host server-??
92
91
  HostName %h.internal
93
92
  `);
94
93
  const record = await provider.matchSSHConfigHost('server-01');
95
- (0, chai_1.expect)(record?.host).to.equal('server-01');
96
- (0, chai_1.expect)(record?.hostname).to.equal('01.internal');
94
+ expect(record?.host).to.equal('server-01');
95
+ expect(record?.hostname).to.equal('01.internal');
97
96
  });
98
97
  it('should apply the port from the host string', async () => {
99
98
  const provider = createProvider(`Host my-*
100
99
  HostName %h.example.com
101
100
  `);
102
101
  const record = await provider.matchSSHConfigHost('my-server:2222');
103
- (0, chai_1.expect)(record?.hostname).to.equal('server.example.com');
104
- (0, chai_1.expect)(record?.port).to.equal('2222');
102
+ expect(record?.hostname).to.equal('server.example.com');
103
+ expect(record?.port).to.equal('2222');
105
104
  });
106
105
  it('should return an empty record when no host entry matches', async () => {
107
106
  const provider = createProvider(`Host my-*
108
107
  HostName %h.example.com
109
108
  `);
110
109
  const record = await provider.matchSSHConfigHost('other-host');
111
- (0, chai_1.expect)(record?.host).to.equal(undefined);
112
- (0, chai_1.expect)(record?.hostname).to.equal(undefined);
110
+ expect(record?.host).to.equal(undefined);
111
+ expect(record?.hostname).to.equal(undefined);
113
112
  });
114
113
  it('should return an empty record for an empty config', async () => {
115
114
  const provider = createProvider('');
116
115
  const record = await provider.matchSSHConfigHost('any-host');
117
- (0, chai_1.expect)(record).to.deep.equal({});
116
+ expect(record).to.deep.equal({});
118
117
  });
119
118
  });
120
119
  //# sourceMappingURL=remote-ssh-connection-provider.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-ssh-connection-provider.spec.js","sourceRoot":"","sources":["../../../src/electron-node/ssh/remote-ssh-connection-provider.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+BAA+B;AAC/B,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,oEAAmC;AACnC,qFAAmF;AAEnF;;;GAGG;AACH,MAAM,mCAAoC,SAAQ,gEAA+B;IAAjF;;QACI,kBAAa,GAAG,EAAE,CAAC;IAKvB,CAAC;IAHY,KAAK,CAAC,cAAc;QACzB,OAAO,oBAAS,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC/C,CAAC;CACJ;AAED,QAAQ,CAAC,oDAAoD,EAAE,GAAG,EAAE;IAEhE,SAAS,cAAc,CAAC,aAAqB;QACzC,MAAM,QAAQ,GAAG,IAAI,mCAAmC,EAAE,CAAC;QAC3D,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC;QACvC,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,EAAE,CAAC,wDAAwD,EAAE,KAAK,IAAI,EAAE;QACpE,MAAM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AC/D,MAAM,QAAQ,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"remote-ssh-connection-provider.spec.js","sourceRoot":"","sources":["../../../src/electron-node/ssh/remote-ssh-connection-provider.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,+BAA+B;AAC/B,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,MAAM,MAAM,CAAC;AAC9B,OAAO,eAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AAEtF,qGAAqG;AACrG,MAAM,SAAS,GAAG,eAAe,CAAC,OAAO,CAAC;AAG1C;;;GAGG;AACH,MAAM,mCAAoC,SAAQ,+BAA+B;IAAjF;;QACI,kBAAa,GAAG,EAAE,CAAC;IAKvB,CAAC;IAHY,KAAK,CAAC,cAAc;QACzB,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC/C,CAAC;CACJ;AAED,QAAQ,CAAC,oDAAoD,EAAE,GAAG,EAAE;IAEhE,SAAS,cAAc,CAAC,aAAqB;QACzC,MAAM,QAAQ,GAAG,IAAI,mCAAmC,EAAE,CAAC;QAC3D,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC;QACvC,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,EAA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ACpC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC7D,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ssh-identity-file-collector.d.ts","sourceRoot":"","sources":["../../../src/electron-node/ssh/ssh-identity-file-collector.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGjC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,MAAM;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBACa,wBAAwB;IAGjC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,SAAS,CAAC,uBAAuB,IAAI,MAAM,EAAE;IAqBvC,mBAAmB,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAgFxG"}
1
+ {"version":3,"file":"ssh-identity-file-collector.d.ts","sourceRoot":"","sources":["../../../src/electron-node/ssh/ssh-identity-file-collector.ts"],"names":[],"mappings":"AAoBA,OAAa,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGvC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,MAAM;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBACa,wBAAwB;IAGjC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,SAAS,CAAC,uBAAuB,IAAI,MAAM,EAAE;IAqBvC,mBAAmB,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAgFxG"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2023 TypeFox and others.
4
3
  //
@@ -14,16 +13,15 @@
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.SSHIdentityFileCollector = void 0;
19
- const tslib_1 = require("tslib");
20
- const fs = tslib_1.__importStar(require("@theia/core/shared/fs-extra"));
21
- const os = tslib_1.__importStar(require("os"));
22
- const path = tslib_1.__importStar(require("path"));
23
- const crypto = tslib_1.__importStar(require("crypto"));
24
- const ssh2 = tslib_1.__importStar(require("ssh2"));
25
- const inversify_1 = require("@theia/core/shared/inversify");
26
- const core_1 = require("@theia/core");
16
+ import { __decorate } from "tslib";
17
+ import * as fs from '@theia/core/shared/fs-extra';
18
+ import * as os from 'os';
19
+ import * as path from 'path';
20
+ import * as crypto from 'crypto';
21
+ import ssh2 from 'ssh2';
22
+ // A CommonJS module whose exports cannot be detected statically, so it is imported as a whole.
23
+ import { injectable, inject, named } from '@theia/core/shared/inversify';
24
+ import { ILogger } from '@theia/core';
27
25
  let SSHIdentityFileCollector = class SSHIdentityFileCollector {
28
26
  getDefaultIdentityFiles() {
29
27
  const homeDir = os.homedir();
@@ -121,13 +119,12 @@ let SSHIdentityFileCollector = class SSHIdentityFileCollector {
121
119
  return preferredIdentityKeys;
122
120
  }
123
121
  };
124
- exports.SSHIdentityFileCollector = SSHIdentityFileCollector;
125
- tslib_1.__decorate([
126
- (0, inversify_1.inject)(core_1.ILogger),
127
- (0, inversify_1.named)('remote:SSHIdentityFileCollector'),
128
- tslib_1.__metadata("design:type", Object)
122
+ __decorate([
123
+ inject(ILogger),
124
+ named('remote:SSHIdentityFileCollector')
129
125
  ], SSHIdentityFileCollector.prototype, "logger", void 0);
130
- exports.SSHIdentityFileCollector = SSHIdentityFileCollector = tslib_1.__decorate([
131
- (0, inversify_1.injectable)()
126
+ SSHIdentityFileCollector = __decorate([
127
+ injectable()
132
128
  ], SSHIdentityFileCollector);
129
+ export { SSHIdentityFileCollector };
133
130
  //# sourceMappingURL=ssh-identity-file-collector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ssh-identity-file-collector.js","sourceRoot":"","sources":["../../../src/electron-node/ssh/ssh-identity-file-collector.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,wEAAkD;AAClD,+CAAyB;AACzB,mDAA6B;AAC7B,uDAAiC;AAEjC,mDAA6B;AAC7B,4DAAyE;AACzE,sCAAsC;AAW/B,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAKvB,uBAAuB;QAC7B,MAAM,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;QAC7B,MAAM,sBAAsB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QACrE,MAAM,wBAAwB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QACzE,MAAM,sBAAsB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAA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,CAAC,CAAC;gBAC1E,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACjC,CAAC;iBAAM,CAAC;gBACJ,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC7B,CAAC;QACL,CAAC;QACD,qBAAqB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QACzC,qBAAqB,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;QAExC,OAAO,qBAAqB,CAAC;IACjC,CAAC;CACJ,CAAA;AA1GY,4DAAwB;AAGd;IADlB,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,iCAAiC,CAAC;;wDACvB;mCAH1B,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CA0GpC"}
1
+ {"version":3,"file":"ssh-identity-file-collector.js","sourceRoot":"","sources":["../../../src/electron-node/ssh/ssh-identity-file-collector.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,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,IAAmB,MAAM,MAAM,CAAC;AACvC,+FAA+F;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAW/B,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAKvB,uBAAu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,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,IAAI,QAAQ,CAAC,WAAW,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;YACjI,IAAI,QAAQ,IAAI,CAAC,EAAE,CAAC;gBAChB,qBAAqB,CAAC,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC1E,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YACjC,CAAC;iBAAM,CAAC;gBACJ,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC7B,CAAC;QACL,CAAC;QACD,qBAAqB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QACzC,qBAAqB,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;QAExC,OAAO,qBAAqB,CAAC;IACjC,CAAC;CACJ,CAAA;AAvGsB;IADlB,MAAM,CAAC,OAAO,CAAC;IAAE,KAAK,CAAC,iCAAiC,CAAC;wDACvB;AAH1B,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CA0GpC"}
@@ -1 +1,2 @@
1
+ export {};
1
2
  //# sourceMappingURL=package.spec.d.ts.map
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2023 TypeFox and others.
4
3
  //
@@ -24,4 +23,5 @@
24
23
  describe('remote package', () => {
25
24
  it('support code coverage statistics', () => true);
26
25
  });
26
+ export {};
27
27
  //# sourceMappingURL=package.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.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;;;;;;qBAMqB;AAErB,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAE5B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.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;;;;;;qBAMqB;AAErB,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAE5B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "@theia/remote",
3
- "version": "1.77.0-next.99+2a7305415",
3
+ "version": "1.77.0",
4
4
  "description": "Theia - Remote",
5
+ "type": "module",
5
6
  "dependencies": {
6
- "@theia/core": "1.77.0-next.99+2a7305415",
7
- "@theia/filesystem": "1.77.0-next.99+2a7305415",
8
- "@theia/userstorage": "1.77.0-next.99+2a7305415",
9
- "@theia/variable-resolver": "1.77.0-next.99+2a7305415",
10
- "@theia/workspace": "1.77.0-next.99+2a7305415",
7
+ "@theia/core": "1.77.0",
8
+ "@theia/filesystem": "1.77.0",
9
+ "@theia/userstorage": "1.77.0",
10
+ "@theia/variable-resolver": "1.77.0",
11
+ "@theia/workspace": "1.77.0",
11
12
  "archiver": "^5.3.2",
12
- "decompress": "^4.2.1",
13
- "decompress-tar": "^4.1.1",
14
- "decompress-targz": "^4.1.1",
15
- "decompress-unzip": "^4.0.1",
16
13
  "express-http-proxy": "^2.1.2",
17
14
  "glob": "^8.1.0",
18
15
  "socket.io": "^4.8.4",
@@ -56,9 +53,8 @@
56
53
  "watch": "theiaext watch"
57
54
  },
58
55
  "devDependencies": {
59
- "@theia/ext-scripts": "1.76.0",
56
+ "@theia/ext-scripts": "1.77.0",
60
57
  "@types/archiver": "^5.3.4",
61
- "@types/decompress": "^4.2.7",
62
58
  "@types/express-http-proxy": "^1.6.7",
63
59
  "@types/glob": "^8.1.0",
64
60
  "@types/ssh2": "^1.15.6",
@@ -67,5 +63,12 @@
67
63
  "nyc": {
68
64
  "extends": "../../configs/nyc.json"
69
65
  },
70
- "gitHead": "2a73054157f8bf0d3969a98d6292f15f6c45404a"
66
+ "gitHead": "9c6d81590b559ee8a78a7808203674f3127411f1",
67
+ "exports": {
68
+ "./package.json": "./package.json",
69
+ "./lib/*.json": "./lib/*.json",
70
+ "./lib/*.js": "./lib/*.js",
71
+ "./lib/*": "./lib/*.js",
72
+ "./*": "./*"
73
+ }
71
74
  }
@@ -17,7 +17,7 @@
17
17
  import { Command, nls } from '@theia/core';
18
18
  import { AbstractViewContribution } from '@theia/core/lib/browser';
19
19
  import { injectable } from '@theia/core/shared/inversify';
20
- import { PortForwardingWidget, PORT_FORWARDING_WIDGET_ID } from './port-forwarding-widget';
20
+ import { PortForwardingWidget, PORT_FORWARDING_WIDGET_ID } from './port-forwarding-widget.js';
21
21
 
22
22
  export namespace PortForwardingCommands {
23
23
  export const TOGGLE = Command.toLocalizedCommand({
@@ -16,7 +16,7 @@
16
16
 
17
17
  import { Emitter } from '@theia/core';
18
18
  import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
19
- import { RemotePortForwardingProvider } from '../../electron-common/remote-port-forwarding-provider';
19
+ import { RemotePortForwardingProvider } from '../../electron-common/remote-port-forwarding-provider.js';
20
20
  import { getCurrentPort } from '@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source';
21
21
 
22
22
  export interface ForwardedPort {
@@ -19,7 +19,7 @@ import { ReactNode } from '@theia/core/shared/react';
19
19
  import { OpenerService, ReactWidget } from '@theia/core/lib/browser';
20
20
  import { nls, URI } from '@theia/core';
21
21
  import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
22
- import { ForwardedPort, PortForwardingService } from './port-forwarding-service';
22
+ import { ForwardedPort, PortForwardingService } from './port-forwarding-service.js';
23
23
  import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
24
24
 
25
25
  export const PORT_FORWARDING_WIDGET_ID = 'port-forwarding-widget';
@@ -16,7 +16,7 @@
16
16
 
17
17
  import { expect } from 'chai';
18
18
  import { RemoteCliArgsContribution } from '@theia/core/lib/common/remote-cli-args-contribution';
19
- import { RemoteCliArgsCollector } from './remote-cli-args-collector';
19
+ import { RemoteCliArgsCollector } from './remote-cli-args-collector.js';
20
20
 
21
21
  function collectorWith(contributions: RemoteCliArgsContribution[]): RemoteCliArgsCollector {
22
22
  const collector = new RemoteCliArgsCollector();
@@ -20,8 +20,8 @@ import { AdditionalButtonDefinition, OpenFileDialogProps, SaveFileDialogProps }
20
20
  import { FileStat } from '@theia/filesystem/lib/common/files';
21
21
  import { DefaultFileDialogService } from '@theia/filesystem/lib/browser/file-dialog/file-dialog-service';
22
22
  import { ElectronFileDialogService } from '@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service';
23
- import { RemoteService } from './remote-service';
24
- import { LOCAL_FILE_SCHEME } from './local-backend-services';
23
+ import { RemoteService } from './remote-service.js';
24
+ import { LOCAL_FILE_SCHEME } from './local-backend-services.js';
25
25
 
26
26
  @injectable()
27
27
  export class RemoteElectronFileDialogService extends ElectronFileDialogService {
@@ -17,9 +17,9 @@
17
17
  import { Command, CommandContribution, CommandRegistry, ContributionProvider, nls, QuickInputService, QuickPickInput } from '@theia/core';
18
18
  import { FrontendApplicationContribution, StatusBar, StatusBarAlignment, StatusBarEntry } from '@theia/core/lib/browser';
19
19
  import { inject, injectable, named, optional } from '@theia/core/shared/inversify';
20
- import { RemoteStatus, RemoteStatusService } from '../electron-common/remote-status-service';
21
- import { RemoteRegistry, RemoteRegistryContribution } from './remote-registry-contribution';
22
- import { RemoteService } from './remote-service';
20
+ import { RemoteStatus, 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
23
  import { WindowService } from '@theia/core/lib/browser/window/window-service';
24
24
  import { getLocalPort, getCurrentPort } from '@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source';
25
25
 
@@ -17,30 +17,30 @@
17
17
  import { bindRootContributionProvider, CommandContribution } from '@theia/core';
18
18
  import { ContainerModule } from '@theia/core/shared/inversify';
19
19
  import { bindViewContribution, FrontendApplicationContribution, isRemote, WidgetFactory } from '@theia/core/lib/browser';
20
- import { RemoteSSHContribution } from './remote-ssh-contribution';
21
- import { RemoteSSHConnectionProvider, RemoteSSHConnectionProviderPath } from '../electron-common/remote-ssh-connection-provider';
22
- import { RemoteFrontendContribution } from './remote-frontend-contribution';
23
- import { RemoteRegistryContribution } from './remote-registry-contribution';
24
- import { RemoteService } from './remote-service';
25
- import { RemoteStatusService, RemoteStatusServicePath } from '../electron-common/remote-status-service';
20
+ import { RemoteSSHContribution } from './remote-ssh-contribution.js';
21
+ import { RemoteSSHConnectionProvider, RemoteSSHConnectionProviderPath } from '../electron-common/remote-ssh-connection-provider.js';
22
+ import { RemoteFrontendContribution } from './remote-frontend-contribution.js';
23
+ import { RemoteRegistryContribution } from './remote-registry-contribution.js';
24
+ import { RemoteService } from './remote-service.js';
25
+ import { RemoteStatusService, RemoteStatusServicePath } from '../electron-common/remote-status-service.js';
26
26
  import { ElectronFileDialogService } from '@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service';
27
- import { RemoteElectronFileDialogService } from './remote-electron-file-dialog-service';
28
- import { bindRemotePreferences } from '../electron-common/remote-preferences';
29
- import { PortForwardingWidget, PORT_FORWARDING_WIDGET_ID } from './port-forwarding/port-forwarding-widget';
30
- import { PortForwardingContribution } from './port-forwarding/port-forwading-contribution';
31
- import { PortForwardingService } from './port-forwarding/port-forwarding-service';
32
- import { RemotePortForwardingProvider, RemoteRemotePortForwardingProviderPath } from '../electron-common/remote-port-forwarding-provider';
27
+ import { RemoteElectronFileDialogService } from './remote-electron-file-dialog-service.js';
28
+ import { bindRemotePreferences } from '../electron-common/remote-preferences.js';
29
+ import { PortForwardingWidget, PORT_FORWARDING_WIDGET_ID } from './port-forwarding/port-forwarding-widget.js';
30
+ import { PortForwardingContribution } from './port-forwarding/port-forwading-contribution.js';
31
+ import { PortForwardingService } from './port-forwarding/port-forwarding-service.js';
32
+ import { RemotePortForwardingProvider, RemoteRemotePortForwardingProviderPath } from '../electron-common/remote-port-forwarding-provider.js';
33
33
  import { ServiceConnectionProvider } from '@theia/core/lib/browser/messaging/service-connection-provider';
34
34
  import '../../src/electron-browser/style/port-forwarding-widget.css';
35
35
  import { UserStorageContribution } from '@theia/userstorage/lib/browser/user-storage-contribution';
36
- import { RemoteUserStorageContribution } from './remote-user-storage-provider';
36
+ import { RemoteUserStorageContribution } from './remote-user-storage-provider.js';
37
37
  import { RemoteFileSystemProvider, remoteFileSystemPath, RemoteFileSystemProxyFactory, RemoteFileSystemServer } from '@theia/filesystem/lib/common/remote-file-system-provider';
38
- import { LocalEnvVariablesServer, LocalRemoteFileSystemContribution, LocalRemoteFileSystemProvider, LocalRemoteFileSytemServer } from './local-backend-services';
38
+ import { LocalEnvVariablesServer, LocalRemoteFileSystemContribution, LocalRemoteFileSystemProvider, LocalRemoteFileSytemServer } from './local-backend-services.js';
39
39
  import { envVariablesPath, EnvVariablesServer } from '@theia/core/lib/common/env-variables';
40
40
  import { WorkspaceHandlingContribution, WorkspaceOpenHandlerContribution } from '@theia/workspace/lib/browser';
41
- import { RemoteLocalWorkspaceContribution } from './remote-local-workspace-contribution';
41
+ import { RemoteLocalWorkspaceContribution } from './remote-local-workspace-contribution.js';
42
42
  import { FileServiceContribution } from '@theia/filesystem/lib/browser/file-service';
43
- import { RemoteCliArgsCollector } from './remote-cli-args-collector';
43
+ import { RemoteCliArgsCollector } from './remote-cli-args-collector.js';
44
44
 
45
45
  export default new ContainerModule((bind, _, __, rebind) => {
46
46
  bind(RemoteFrontendContribution).toSelf().inSingletonScope();
@@ -17,9 +17,9 @@
17
17
  import { ILogger, MaybePromise, URI } from '@theia/core';
18
18
  import { inject, injectable, named } from '@theia/core/shared/inversify';
19
19
  import { WorkspaceHandlingContribution, WorkspaceInput, WorkspaceOpenHandlerContribution } from '@theia/workspace/lib/browser';
20
- import { LOCAL_FILE_SCHEME } from './local-backend-services';
20
+ import { LOCAL_FILE_SCHEME } from './local-backend-services.js';
21
21
  import { CURRENT_PORT_PARAM, LOCAL_PORT_PARAM, getCurrentPort, getLocalPort } from '@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source';
22
- import { RemoteStatusService } from '../electron-common/remote-status-service';
22
+ import { RemoteStatusService } from '../electron-common/remote-status-service.js';
23
23
  import { WindowService } from '@theia/core/lib/browser/window/window-service';
24
24
  import { WorkspacePreferences } from '@theia/workspace/lib/common';
25
25
 
@@ -17,10 +17,13 @@
17
17
  import { Command, MessageService, nls, QuickInputService, QuickPickInput } from '@theia/core';
18
18
  import { inject, injectable } from '@theia/core/shared/inversify';
19
19
  import { VariableResolverService } from '@theia/variable-resolver/lib/browser';
20
- import { RemoteSSHConnectionProvider } from '../electron-common/remote-ssh-connection-provider';
21
- import { AbstractRemoteRegistryContribution, RemoteRegistry } from './remote-registry-contribution';
22
- import { RemotePreferences } from '../electron-common/remote-preferences';
23
- import SSHConfig, { Directive } from 'ssh-config';
20
+ import { RemoteSSHConnectionProvider } from '../electron-common/remote-ssh-connection-provider.js';
21
+ import { AbstractRemoteRegistryContribution, RemoteRegistry } from './remote-registry-contribution.js';
22
+ import { RemotePreferences } from '../electron-common/remote-preferences.js';
23
+ import SSHConfigModule, { Directive } from 'ssh-config';
24
+
25
+ // `ssh-config` is a CommonJS module that provides the class as `default` export of `module.exports`.
26
+ const SSHConfig = SSHConfigModule.default;
24
27
 
25
28
  export namespace RemoteSSHCommands {
26
29
  export const CONNECT: Command = Command.toLocalizedCommand({
@@ -18,8 +18,8 @@ import { injectable, inject, postConstruct } from '@theia/core/shared/inversify'
18
18
  import { FileService } from '@theia/filesystem/lib/browser/file-service';
19
19
  import { FileSystemProvider } from '@theia/filesystem/lib/common/files';
20
20
  import { UserStorageContribution } from '@theia/userstorage/lib/browser/user-storage-contribution';
21
- import { RemoteStatusService } from '../electron-common/remote-status-service';
22
- import { LocalEnvVariablesServer, LocalRemoteFileSystemProvider } from './local-backend-services';
21
+ import { RemoteStatusService } from '../electron-common/remote-status-service.js';
22
+ import { LocalEnvVariablesServer, LocalRemoteFileSystemProvider } from './local-backend-services.js';
23
23
  import { Deferred } from '@theia/core/lib/common/promise-util';
24
24
  import { URI } from '@theia/core';
25
25
  import { EnvVariablesServer } from '@theia/core/lib/common/env-variables';
@@ -15,7 +15,7 @@
15
15
  // *****************************************************************************
16
16
 
17
17
  import { expect } from 'chai';
18
- import { RemoteAutoShutdownService } from './remote-auto-shutdown-service';
18
+ import { RemoteAutoShutdownService } from './remote-auto-shutdown-service.js';
19
19
  import { ILogger } from '@theia/core';
20
20
  import { Arguments } from '@theia/core/shared/yargs';
21
21
  import * as http from 'http';
@@ -17,33 +17,33 @@
17
17
  import { ContainerModule } from '@theia/core/shared/inversify';
18
18
  import { BackendApplicationContribution, CliContribution } from '@theia/core/lib/node';
19
19
  import { MessagingListenerContribution } from '@theia/core/lib/node/messaging/messaging-listeners';
20
- import { RemoteAutoShutdownService } from './remote-auto-shutdown-service';
20
+ import { RemoteAutoShutdownService } from './remote-auto-shutdown-service.js';
21
21
  import { RemoteCliContribution } from '@theia/core/lib/node/remote/remote-cli-contribution';
22
- import { RemoteConnectionService } from './remote-connection-service';
23
- import { RemoteProxyServerProvider } from './remote-proxy-server-provider';
24
- import { RemoteConnectionSocketProvider } from './remote-connection-socket-provider';
22
+ import { RemoteConnectionService } from './remote-connection-service.js';
23
+ import { RemoteProxyServerProvider } from './remote-proxy-server-provider.js';
24
+ import { RemoteConnectionSocketProvider } from './remote-connection-socket-provider.js';
25
25
  import { ConnectionContainerModule } from '@theia/core/lib/node/messaging/connection-container-module';
26
- import { RemoteSSHConnectionProvider, RemoteSSHConnectionProviderPath } from '../electron-common/remote-ssh-connection-provider';
27
- import { RemoteSSHConnectionProviderImpl } from './ssh/remote-ssh-connection-provider';
28
- import { SSHIdentityFileCollector } from './ssh/ssh-identity-file-collector';
29
- import { RemoteCopyService } from './setup/remote-copy-service';
30
- import { RemoteSetupService } from './setup/remote-setup-service';
31
- import { RemoteNativeDependencyService } from './setup/remote-native-dependency-service';
32
- import { BackendRemoteServiceImpl } from './backend-remote-service-impl';
26
+ import { RemoteSSHConnectionProvider, RemoteSSHConnectionProviderPath } from '../electron-common/remote-ssh-connection-provider.js';
27
+ import { RemoteSSHConnectionProviderImpl } from './ssh/remote-ssh-connection-provider.js';
28
+ import { SSHIdentityFileCollector } from './ssh/ssh-identity-file-collector.js';
29
+ import { RemoteCopyService } from './setup/remote-copy-service.js';
30
+ import { RemoteSetupService } from './setup/remote-setup-service.js';
31
+ import { RemoteNativeDependencyService } from './setup/remote-native-dependency-service.js';
32
+ import { BackendRemoteServiceImpl } from './backend-remote-service-impl.js';
33
33
  import { BackendRemoteService } from '@theia/core/lib/node/remote/backend-remote-service';
34
- import { RemoteNodeSetupService } from './setup/remote-node-setup-service';
35
- import { RemotePosixScriptStrategy, RemoteSetupScriptService, RemoteWindowsScriptStrategy } from './setup/remote-setup-script-service';
36
- import { RemoteStatusService, RemoteStatusServicePath } from '../electron-common/remote-status-service';
37
- import { RemoteStatusServiceImpl } from './remote-status-service';
34
+ import { RemoteNodeSetupService } from './setup/remote-node-setup-service.js';
35
+ import { RemotePosixScriptStrategy, RemoteSetupScriptService, RemoteWindowsScriptStrategy } from './setup/remote-setup-script-service.js';
36
+ import { RemoteStatusService, RemoteStatusServicePath } from '../electron-common/remote-status-service.js';
37
+ import { RemoteStatusServiceImpl } from './remote-status-service.js';
38
38
  import { ConnectionHandler, RpcConnectionHandler, bindRootContributionProvider } from '@theia/core';
39
- import { RemoteCopyRegistryImpl } from './setup/remote-copy-contribution';
39
+ import { RemoteCopyRegistryImpl } from './setup/remote-copy-contribution.js';
40
40
  import { RemoteCopyContribution } from '@theia/core/lib/node/remote/remote-copy-contribution';
41
- import { MainCopyContribution } from './setup/main-copy-contribution';
42
- import { RemoteNativeDependencyContribution } from './setup/remote-native-dependency-contribution';
43
- import { AppNativeDependencyContribution } from './setup/app-native-dependency-contribution';
44
- import { RemotePortForwardingProviderImpl } from './remote-port-forwarding-provider';
45
- import { RemotePortForwardingProvider, RemoteRemotePortForwardingProviderPath } from '../electron-common/remote-port-forwarding-provider';
46
- import { bindRemotePreferences } from '../electron-common/remote-preferences';
41
+ import { MainCopyContribution } from './setup/main-copy-contribution.js';
42
+ import { RemoteNativeDependencyContribution } from './setup/remote-native-dependency-contribution.js';
43
+ import { AppNativeDependencyContribution } from './setup/app-native-dependency-contribution.js';
44
+ import { RemotePortForwardingProviderImpl } from './remote-port-forwarding-provider.js';
45
+ import { RemotePortForwardingProvider, RemoteRemotePortForwardingProviderPath } from '../electron-common/remote-port-forwarding-provider.js';
46
+ import { bindRemotePreferences } from '../electron-common/remote-preferences.js';
47
47
 
48
48
  export const remoteConnectionModule = ConnectionContainerModule.create(({ bind, bindBackendService }) => {
49
49
  bind(RemoteSSHConnectionProviderImpl).toSelf().inSingletonScope();
@@ -15,11 +15,11 @@
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable } from '@theia/core/shared/inversify';
18
- import { RemoteConnection } from './remote-types';
18
+ import { RemoteConnection } from './remote-types.js';
19
19
  import { Disposable } from '@theia/core';
20
- import { RemoteCopyService } from './setup/remote-copy-service';
20
+ import { RemoteCopyService } from './setup/remote-copy-service.js';
21
21
  import { BackendApplicationContribution } from '@theia/core/lib/node';
22
- import { RemoteSetupService } from './setup/remote-setup-service';
22
+ import { RemoteSetupService } from './setup/remote-setup-service.js';
23
23
 
24
24
  @injectable()
25
25
  export class RemoteConnectionService implements BackendApplicationContribution {
@@ -15,10 +15,10 @@
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable } from '@theia/core/shared/inversify';
18
- import { ForwardedPort, RemotePortForwardingProvider } from '../electron-common/remote-port-forwarding-provider';
18
+ import { ForwardedPort, RemotePortForwardingProvider } from '../electron-common/remote-port-forwarding-provider.js';
19
19
  import { createServer, Server } from 'net';
20
- import { RemoteConnectionService } from './remote-connection-service';
21
- import { RemoteConnection } from './remote-types';
20
+ import { RemoteConnectionService } from './remote-connection-service.js';
21
+ import { RemoteConnection } from './remote-types.js';
22
22
 
23
23
  interface ForwardInfo {
24
24
  connection: RemoteConnection
@@ -15,8 +15,8 @@
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable } from '@theia/core/shared/inversify';
18
- import { RemoteStatus, RemoteStatusService } from '../electron-common/remote-status-service';
19
- import { RemoteConnectionService } from './remote-connection-service';
18
+ import { RemoteStatus, RemoteStatusService } from '../electron-common/remote-status-service.js';
19
+ import { RemoteConnectionService } from './remote-connection-service.js';
20
20
 
21
21
  @injectable()
22
22
  export class RemoteStatusServiceImpl implements RemoteStatusService {
@@ -17,7 +17,7 @@
17
17
  import { expect } from 'chai';
18
18
  import { OS } from '@theia/core';
19
19
  import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
20
- import { AppNativeDependencyContribution } from './app-native-dependency-contribution';
20
+ import { AppNativeDependencyContribution } from './app-native-dependency-contribution.js';
21
21
 
22
22
  class TestableAppNativeDependencyContribution extends AppNativeDependencyContribution {
23
23
  publicGetDefaultURLForFile(remotePlatform: RemotePlatform, theiaVersion: string): string {