@theia/remote 1.77.0-next.95 → 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.
- package/lib/electron-browser/local-backend-services.js +21 -26
- package/lib/electron-browser/local-backend-services.js.map +1 -1
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts +1 -1
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.d.ts.map +1 -1
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.js +14 -18
- package/lib/electron-browser/port-forwarding/port-forwading-contribution.js.map +1 -1
- package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts +1 -1
- package/lib/electron-browser/port-forwarding/port-forwarding-service.d.ts.map +1 -1
- package/lib/electron-browser/port-forwarding/port-forwarding-service.js +14 -21
- package/lib/electron-browser/port-forwarding/port-forwarding-service.js.map +1 -1
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts +1 -1
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.d.ts.map +1 -1
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.js +34 -43
- package/lib/electron-browser/port-forwarding/port-forwarding-widget.js.map +1 -1
- package/lib/electron-browser/remote-cli-args-collector.js +13 -18
- package/lib/electron-browser/remote-cli-args-collector.js.map +1 -1
- package/lib/electron-browser/remote-cli-args-collector.spec.js +5 -7
- package/lib/electron-browser/remote-cli-args-collector.spec.js.map +1 -1
- package/lib/electron-browser/remote-electron-file-dialog-service.d.ts +1 -1
- package/lib/electron-browser/remote-electron-file-dialog-service.d.ts.map +1 -1
- package/lib/electron-browser/remote-electron-file-dialog-service.js +17 -21
- package/lib/electron-browser/remote-electron-file-dialog-service.js.map +1 -1
- package/lib/electron-browser/remote-frontend-contribution.d.ts +3 -3
- package/lib/electron-browser/remote-frontend-contribution.d.ts.map +1 -1
- package/lib/electron-browser/remote-frontend-contribution.js +38 -48
- package/lib/electron-browser/remote-frontend-contribution.js.map +1 -1
- package/lib/electron-browser/remote-frontend-module.js +61 -63
- package/lib/electron-browser/remote-frontend-module.js.map +1 -1
- package/lib/electron-browser/remote-local-workspace-contribution.d.ts +1 -1
- package/lib/electron-browser/remote-local-workspace-contribution.d.ts.map +1 -1
- package/lib/electron-browser/remote-local-workspace-contribution.js +26 -33
- package/lib/electron-browser/remote-local-workspace-contribution.js.map +1 -1
- package/lib/electron-browser/remote-registry-contribution.js +12 -17
- package/lib/electron-browser/remote-registry-contribution.js.map +1 -1
- package/lib/electron-browser/remote-service.js +5 -8
- package/lib/electron-browser/remote-service.js.map +1 -1
- package/lib/electron-browser/remote-ssh-contribution.d.ts +3 -3
- package/lib/electron-browser/remote-ssh-contribution.d.ts.map +1 -1
- package/lib/electron-browser/remote-ssh-contribution.js +41 -47
- package/lib/electron-browser/remote-ssh-contribution.js.map +1 -1
- package/lib/electron-browser/remote-user-storage-provider.d.ts +2 -2
- package/lib/electron-browser/remote-user-storage-provider.d.ts.map +1 -1
- package/lib/electron-browser/remote-user-storage-provider.js +23 -33
- package/lib/electron-browser/remote-user-storage-provider.js.map +1 -1
- package/lib/electron-common/remote-port-forwarding-provider.js +2 -5
- package/lib/electron-common/remote-port-forwarding-provider.js.map +1 -1
- package/lib/electron-common/remote-preferences.js +20 -24
- package/lib/electron-common/remote-preferences.js.map +1 -1
- package/lib/electron-common/remote-ssh-connection-provider.js +2 -5
- package/lib/electron-common/remote-ssh-connection-provider.js.map +1 -1
- package/lib/electron-common/remote-status-service.js +2 -5
- package/lib/electron-common/remote-status-service.js.map +1 -1
- package/lib/electron-node/backend-remote-service-impl.js +10 -13
- package/lib/electron-node/backend-remote-service-impl.js.map +1 -1
- package/lib/electron-node/remote-auto-shutdown-service.js +15 -19
- package/lib/electron-node/remote-auto-shutdown-service.js.map +1 -1
- package/lib/electron-node/remote-auto-shutdown-service.spec.js +28 -30
- package/lib/electron-node/remote-auto-shutdown-service.spec.js.map +1 -1
- package/lib/electron-node/remote-backend-module.js +69 -72
- package/lib/electron-node/remote-backend-module.js.map +1 -1
- package/lib/electron-node/remote-connection-service.d.ts +3 -3
- package/lib/electron-node/remote-connection-service.d.ts.map +1 -1
- package/lib/electron-node/remote-connection-service.js +13 -18
- package/lib/electron-node/remote-connection-service.js.map +1 -1
- package/lib/electron-node/remote-connection-socket-provider.js +7 -10
- package/lib/electron-node/remote-connection-socket-provider.js.map +1 -1
- package/lib/electron-node/remote-port-forwarding-provider.d.ts +3 -3
- package/lib/electron-node/remote-port-forwarding-provider.d.ts.map +1 -1
- package/lib/electron-node/remote-port-forwarding-provider.js +10 -14
- package/lib/electron-node/remote-port-forwarding-provider.js.map +1 -1
- package/lib/electron-node/remote-proxy-server-provider.js +8 -11
- package/lib/electron-node/remote-proxy-server-provider.js.map +1 -1
- package/lib/electron-node/remote-status-service.d.ts +2 -2
- package/lib/electron-node/remote-status-service.d.ts.map +1 -1
- package/lib/electron-node/remote-status-service.js +8 -12
- package/lib/electron-node/remote-status-service.js.map +1 -1
- package/lib/electron-node/remote-types.js +1 -2
- package/lib/electron-node/remote-types.js.map +1 -1
- package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +1 -1
- package/lib/electron-node/setup/app-native-dependency-contribution.d.ts.map +1 -1
- package/lib/electron-node/setup/app-native-dependency-contribution.js +13 -16
- package/lib/electron-node/setup/app-native-dependency-contribution.js.map +1 -1
- package/lib/electron-node/setup/app-native-dependency-contribution.spec.js +14 -16
- package/lib/electron-node/setup/app-native-dependency-contribution.spec.js.map +1 -1
- package/lib/electron-node/setup/main-copy-contribution.d.ts.map +1 -1
- package/lib/electron-node/setup/main-copy-contribution.js +8 -8
- package/lib/electron-node/setup/main-copy-contribution.js.map +1 -1
- package/lib/electron-node/setup/main-copy-contribution.spec.d.ts +2 -0
- package/lib/electron-node/setup/main-copy-contribution.spec.d.ts.map +1 -0
- package/lib/electron-node/setup/main-copy-contribution.spec.js +54 -0
- package/lib/electron-node/setup/main-copy-contribution.spec.js.map +1 -0
- package/lib/electron-node/setup/remote-copy-contribution.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-copy-contribution.js +13 -16
- package/lib/electron-node/setup/remote-copy-contribution.js.map +1 -1
- package/lib/electron-node/setup/remote-copy-service.d.ts +3 -3
- package/lib/electron-node/setup/remote-copy-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-copy-service.js +24 -31
- package/lib/electron-node/setup/remote-copy-service.js.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-contribution.js +8 -11
- package/lib/electron-node/setup/remote-native-dependency-contribution.js.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-service.d.ts +3 -1
- package/lib/electron-node/setup/remote-native-dependency-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-service.js +30 -50
- package/lib/electron-node/setup/remote-native-dependency-service.js.map +1 -1
- package/lib/electron-node/setup/remote-native-dependency-service.spec.d.ts +2 -0
- package/lib/electron-node/setup/remote-native-dependency-service.spec.d.ts.map +1 -0
- package/lib/electron-node/setup/remote-native-dependency-service.spec.js +96 -0
- package/lib/electron-node/setup/remote-native-dependency-service.spec.js.map +1 -0
- package/lib/electron-node/setup/remote-node-setup-service.d.ts +1 -1
- package/lib/electron-node/setup/remote-node-setup-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-node-setup-service.js +25 -30
- package/lib/electron-node/setup/remote-node-setup-service.js.map +1 -1
- package/lib/electron-node/setup/remote-setup-script-service.js +17 -22
- package/lib/electron-node/setup/remote-setup-script-service.js.map +1 -1
- package/lib/electron-node/setup/remote-setup-service.d.ts +5 -5
- package/lib/electron-node/setup/remote-setup-service.d.ts.map +1 -1
- package/lib/electron-node/setup/remote-setup-service.js +33 -42
- package/lib/electron-node/setup/remote-setup-service.js.map +1 -1
- package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +12 -9
- package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
- package/lib/electron-node/ssh/remote-ssh-connection-provider.js +43 -51
- package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
- package/lib/electron-node/ssh/remote-ssh-connection-provider.spec.js +26 -27
- package/lib/electron-node/ssh/remote-ssh-connection-provider.spec.js.map +1 -1
- package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts.map +1 -1
- package/lib/electron-node/ssh/ssh-identity-file-collector.js +15 -18
- package/lib/electron-node/ssh/ssh-identity-file-collector.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -1
- package/lib/package.spec.js.map +1 -1
- package/package.json +16 -13
- package/src/electron-browser/port-forwarding/port-forwading-contribution.ts +1 -1
- package/src/electron-browser/port-forwarding/port-forwarding-service.ts +1 -1
- package/src/electron-browser/port-forwarding/port-forwarding-widget.tsx +1 -1
- package/src/electron-browser/remote-cli-args-collector.spec.ts +1 -1
- package/src/electron-browser/remote-electron-file-dialog-service.ts +2 -2
- package/src/electron-browser/remote-frontend-contribution.ts +3 -3
- package/src/electron-browser/remote-frontend-module.ts +16 -16
- package/src/electron-browser/remote-local-workspace-contribution.ts +2 -2
- package/src/electron-browser/remote-ssh-contribution.ts +7 -4
- package/src/electron-browser/remote-user-storage-provider.ts +2 -2
- package/src/electron-node/remote-auto-shutdown-service.spec.ts +1 -1
- package/src/electron-node/remote-backend-module.ts +22 -22
- package/src/electron-node/remote-connection-service.ts +3 -3
- package/src/electron-node/remote-port-forwarding-provider.ts +3 -3
- package/src/electron-node/remote-status-service.ts +2 -2
- package/src/electron-node/setup/app-native-dependency-contribution.spec.ts +1 -1
- package/src/electron-node/setup/app-native-dependency-contribution.ts +1 -1
- package/src/electron-node/setup/main-copy-contribution.spec.ts +62 -0
- package/src/electron-node/setup/main-copy-contribution.ts +3 -0
- package/src/electron-node/setup/remote-copy-contribution.ts +3 -2
- package/src/electron-node/setup/remote-copy-service.ts +3 -3
- package/src/electron-node/setup/remote-native-dependency-service.spec.ts +106 -0
- package/src/electron-node/setup/remote-native-dependency-service.ts +10 -24
- package/src/electron-node/setup/remote-node-setup-service.ts +1 -1
- package/src/electron-node/setup/remote-setup-service.ts +5 -5
- package/src/electron-node/ssh/remote-ssh-connection-provider.spec.ts +6 -2
- package/src/electron-node/ssh/remote-ssh-connection-provider.ts +14 -9
- package/src/electron-node/ssh/ssh-identity-file-collector.ts +2 -2
- 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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
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(
|
|
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[
|
|
33
|
+
this.isRemote = Boolean(args[REMOTE_START]);
|
|
37
34
|
}
|
|
38
35
|
isRemoteServer() {
|
|
39
36
|
return this.isRemote;
|
|
40
37
|
}
|
|
41
38
|
};
|
|
42
|
-
|
|
43
|
-
|
|
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":"
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
const
|
|
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(
|
|
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(
|
|
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[
|
|
52
|
-
const timeout = Number(args[
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
(
|
|
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
|
-
|
|
108
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"remote-auto-shutdown-service.js","sourceRoot":"","sources":["../../src/electron-node/remote-auto-shutdown-service.ts"],"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AAG,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;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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
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
|
-
|
|
92
|
-
|
|
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
|
-
|
|
98
|
-
|
|
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
|
-
|
|
101
|
+
expect(service.hasScheduledTimer).to.equal(true);
|
|
104
102
|
connectSocket(service);
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
110
|
+
expect(service.hasScheduledTimer).to.equal(false);
|
|
113
111
|
socket.disconnect();
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
120
|
+
expect(service.connections).to.equal(2);
|
|
123
121
|
socket1.disconnect();
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
expect(service.connections).to.equal(1);
|
|
123
|
+
expect(service.hasScheduledTimer).to.equal(false);
|
|
126
124
|
socket2.disconnect();
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
133
|
+
expect(service.hasScheduledTimer).to.equal(true);
|
|
136
134
|
// New connection cancels the timer
|
|
137
135
|
const socket2 = connectSocket(service);
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
expect(service.hasScheduledTimer).to.equal(false);
|
|
137
|
+
expect(service.shutdownRequested).to.equal(false);
|
|
140
138
|
socket2.disconnect();
|
|
141
|
-
|
|
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
|
-
|
|
146
|
+
expect(service.shutdownRequested).to.equal(false);
|
|
149
147
|
service.fireTimer();
|
|
150
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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":"
|
|
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,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAI9E,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGtC,MAAM,UAAW,SAAQ,YAAY;IACjC,UAAU;QACN,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;CACJ;AAED,SAAS,gBA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,EAAE;QACpE,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;QAChC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAE5B,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,CAAC,UAAU,EAAE,CAAC;QACpB,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAElD,OAAO,CAAC,SAAS,EAAE,CAAC;QACpB,MAAM,CAAC,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,MAAM,CAAC,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,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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
bind(
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
58
|
-
bind(
|
|
59
|
-
bind(
|
|
60
|
-
bind(
|
|
61
|
-
bind(
|
|
62
|
-
bind(
|
|
63
|
-
bind(
|
|
64
|
-
bind(
|
|
65
|
-
bind(
|
|
66
|
-
bind(
|
|
67
|
-
bind(
|
|
68
|
-
bind(
|
|
69
|
-
bind(
|
|
70
|
-
bind(
|
|
71
|
-
bind(
|
|
72
|
-
bind(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
bind(
|
|
76
|
-
bind(
|
|
77
|
-
bind(
|
|
78
|
-
bind(
|
|
79
|
-
bind(
|
|
80
|
-
bind(
|
|
81
|
-
rebind(
|
|
82
|
-
bind(
|
|
83
|
-
bind(
|
|
84
|
-
|
|
85
|
-
bind(
|
|
86
|
-
bind(
|
|
87
|
-
bind(
|
|
88
|
-
bind(
|
|
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":"
|
|
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,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qB,CAAC,IAAI,CAAC,CAAC;IAE5B,IAAI,CAAC,yBAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,eAAe,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,
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
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
|
-
|
|
53
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
tslib_1.__metadata("design:type", remote_setup_service_1.RemoteSetupService)
|
|
52
|
+
__decorate([
|
|
53
|
+
inject(RemoteSetupService)
|
|
60
54
|
], RemoteConnectionService.prototype, "remoteSetupService", void 0);
|
|
61
|
-
|
|
62
|
-
|
|
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":["../../src/electron-node/remote-connection-service.ts"],"names":[],"mappings":"
|
|
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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