@theia/remote 1.77.0-next.1 → 1.77.0-next.108
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 +23 -30
- 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 +1 -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 +25 -30
- package/lib/electron-node/setup/remote-native-dependency-service.js.map +1 -1
- package/lib/electron-node/setup/remote-node-setup-service.d.ts +2 -2
- 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 -26
- 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 -0
- package/package.json +17 -9
- 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 +4 -4
- package/src/electron-node/setup/remote-native-dependency-service.ts +5 -6
- package/src/electron-node/setup/remote-node-setup-service.ts +2 -2
- 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,9 +1,9 @@
|
|
|
1
1
|
import { ApplicationPackage } from '@theia/core/shared/@theia/application-package';
|
|
2
|
-
import { RemoteConnection } from '../remote-types';
|
|
2
|
+
import { RemoteConnection } from '../remote-types.js';
|
|
3
3
|
import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
|
|
4
|
-
import { RemoteNativeDependencyService } from './remote-native-dependency-service';
|
|
4
|
+
import { RemoteNativeDependencyService } from './remote-native-dependency-service.js';
|
|
5
5
|
import { ContributionProvider } from '@theia/core';
|
|
6
|
-
import { RemoteCopyRegistryImpl } from './remote-copy-contribution';
|
|
6
|
+
import { RemoteCopyRegistryImpl } from './remote-copy-contribution.js';
|
|
7
7
|
import { RemoteCopyContribution, RemoteFile } from '@theia/core/lib/node/remote/remote-copy-contribution';
|
|
8
8
|
export declare class RemoteCopyService {
|
|
9
9
|
protected readonly applicationPackage: ApplicationPackage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-copy-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-copy-service.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAEnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"remote-copy-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-copy-service.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAEnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAE1G,qBACa,iBAAiB;IAG1B,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAG1D,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAGxD,SAAS,CAAC,QAAQ,CAAC,uBAAuB,EAAE,6BAA6B,CAAC;IAG1E,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;IAEnF,SAAS,CAAC,WAAW,UAAS;IAExB,YAAY,CAAC,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;cA+BhG,QAAQ,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;cAQhF,qBAAqB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;cAU9C,sBAAsB,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;cAW9F,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;cAM7B,yBAAyB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAG3E"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2023 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,19 +13,17 @@
|
|
|
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
|
-
const remote_copy_contribution_1 = require("./remote-copy-contribution");
|
|
29
|
-
const remote_copy_contribution_2 = require("@theia/core/lib/node/remote/remote-copy-contribution");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import archiver from 'archiver';
|
|
18
|
+
import * as path from 'path';
|
|
19
|
+
import * as fs from 'fs';
|
|
20
|
+
import * as os from 'os';
|
|
21
|
+
import { ApplicationPackage } from '@theia/core/shared/@theia/application-package';
|
|
22
|
+
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
23
|
+
import { RemoteNativeDependencyService } from './remote-native-dependency-service.js';
|
|
24
|
+
import { ContributionProvider } from '@theia/core';
|
|
25
|
+
import { RemoteCopyRegistryImpl } from './remote-copy-contribution.js';
|
|
26
|
+
import { RemoteCopyContribution } from '@theia/core/lib/node/remote/remote-copy-contribution';
|
|
30
27
|
let RemoteCopyService = class RemoteCopyService {
|
|
31
28
|
constructor() {
|
|
32
29
|
this.initialized = false;
|
|
@@ -95,25 +92,21 @@ let RemoteCopyService = class RemoteCopyService {
|
|
|
95
92
|
return undefined;
|
|
96
93
|
}
|
|
97
94
|
};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(0, inversify_1.inject)(application_package_1.ApplicationPackage),
|
|
101
|
-
tslib_1.__metadata("design:type", application_package_1.ApplicationPackage)
|
|
95
|
+
__decorate([
|
|
96
|
+
inject(ApplicationPackage)
|
|
102
97
|
], RemoteCopyService.prototype, "applicationPackage", void 0);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
tslib_1.__metadata("design:type", remote_copy_contribution_1.RemoteCopyRegistryImpl)
|
|
98
|
+
__decorate([
|
|
99
|
+
inject(RemoteCopyRegistryImpl)
|
|
106
100
|
], RemoteCopyService.prototype, "copyRegistry", void 0);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
tslib_1.__metadata("design:type", remote_native_dependency_service_1.RemoteNativeDependencyService)
|
|
101
|
+
__decorate([
|
|
102
|
+
inject(RemoteNativeDependencyService)
|
|
110
103
|
], RemoteCopyService.prototype, "nativeDependencyService", void 0);
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
tslib_1.__metadata("design:type", Object)
|
|
104
|
+
__decorate([
|
|
105
|
+
inject(ContributionProvider),
|
|
106
|
+
named(RemoteCopyContribution)
|
|
115
107
|
], RemoteCopyService.prototype, "copyContributions", void 0);
|
|
116
|
-
|
|
117
|
-
|
|
108
|
+
RemoteCopyService = __decorate([
|
|
109
|
+
injectable()
|
|
118
110
|
], RemoteCopyService);
|
|
111
|
+
export { RemoteCopyService };
|
|
119
112
|
//# sourceMappingURL=remote-copy-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-copy-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-copy-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-copy-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-copy-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,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,sBAAs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;YACnB,OAAO,EAAE;gBACL,IAAI,EAAE,IAAI,CAAC,IAAI;aAClB;SACJ,CAAC,CAAC,CAAC;IACR,CAAC;IAES,KAAK,CAAC,UAAU;QACtB,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC;QACpD,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC/C,OAAO,OAAO,CAAC;IACnB,CAAC;IAES,KAAK,CAAC,yBAAyB;QACrC,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ,CAAA;AAlFsB;IADlB,MAAM,CAAC,kBAAkB,CAAC;6DAC+B;AAGvC;IADlB,MAAM,CAAC,sBAAsB,CAAC;uDACyB;AAGrC;IADlB,MAAM,CAAC,6BAA6B,CAAC;kEACoC;AAGvD;IADlB,MAAM,CAAC,oBAAoB,CAAC;IAAE,KAAK,CAAC,sBAAsB,CAAC;4DACuB;AAZ1E,iBAAiB;IAD7B,UAAU,EAAE;GACA,iBAAiB,CAqF7B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2023 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,22 +13,20 @@
|
|
|
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
|
-
const core_1 = require("@theia/core");
|
|
20
|
-
var FileDependencyResult;
|
|
16
|
+
import { isObject } from '@theia/core';
|
|
17
|
+
export var FileDependencyResult;
|
|
21
18
|
(function (FileDependencyResult) {
|
|
22
19
|
function is(item) {
|
|
23
|
-
return
|
|
20
|
+
return isObject(item) && 'buffer' in item && 'file' in item;
|
|
24
21
|
}
|
|
25
22
|
FileDependencyResult.is = is;
|
|
26
|
-
})(FileDependencyResult || (
|
|
27
|
-
var DirectoryDependencyDownload;
|
|
23
|
+
})(FileDependencyResult || (FileDependencyResult = {}));
|
|
24
|
+
export var DirectoryDependencyDownload;
|
|
28
25
|
(function (DirectoryDependencyDownload) {
|
|
29
26
|
function is(item) {
|
|
30
|
-
return
|
|
27
|
+
return isObject(item) && 'buffer' in item && 'archive' in item;
|
|
31
28
|
}
|
|
32
29
|
DirectoryDependencyDownload.is = is;
|
|
33
|
-
})(DirectoryDependencyDownload || (
|
|
34
|
-
|
|
30
|
+
})(DirectoryDependencyDownload || (DirectoryDependencyDownload = {}));
|
|
31
|
+
export const RemoteNativeDependencyContribution = Symbol('RemoteNativeDependencyContribution');
|
|
35
32
|
//# sourceMappingURL=remote-native-dependency-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-native-dependency-contribution.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-native-dependency-contribution.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-contribution.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAgBvC,MAAM,KAAW,oBAAoB,CAIpC;AAJD,WAAiB,oBAAoB;IACjC,SAAgB,EAAE,CAAC,IAAa;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,CAAC;IAChE,CAAC;IAFe,uBAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,oBAAoB,KAApB,oBAAoB,QAIpC;AAOD,MAAM,KAAW,2BAA2B,CAI3C;AAJD,WAAiB,2BAA2B;IACxC,SAAgB,EAAE,CAAC,IAAa;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,CAAC;IACnE,CAAC;IAFe,8BAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,2BAA2B,KAA3B,2BAA2B,QAI3C;AAQD,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,oCAAoC,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContributionProvider } from '@theia/core';
|
|
2
2
|
import { RequestService, RequestOptions } from '@theia/core/shared/@theia/request';
|
|
3
|
-
import { DependencyDownload, RemoteNativeDependencyContribution } from './remote-native-dependency-contribution';
|
|
3
|
+
import { DependencyDownload, RemoteNativeDependencyContribution } from './remote-native-dependency-contribution.js';
|
|
4
4
|
import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
|
|
5
5
|
export declare const DEFAULT_HTTP_OPTIONS: {
|
|
6
6
|
method: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-native-dependency-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAiB,MAAM,aAAa,CAAC;AAElE,OAAO,EAAkB,cAAc,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInG,OAAO,EAAE,kBAAkB,EAA+B,kCAAkC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"remote-native-dependency-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,oBAAoB,EAAiB,MAAM,aAAa,CAAC;AAElE,OAAO,EAAkB,cAAc,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInG,OAAO,EAAE,kBAAkB,EAA+B,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AACjJ,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAKrF,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBACa,6BAA6B;IAGtC,SAAS,CAAC,6BAA6B,EAAE,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;IAGlG,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEnC,oBAAoB,CAAC,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;cAc9F,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;cAgBzE,eAAe,CAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAiCtH"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2023 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,20 +13,18 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
const decompressUnzip = require('decompress-unzip');
|
|
30
|
-
exports.DEFAULT_HTTP_OPTIONS = {
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { ContributionProvider, THEIA_VERSION } from '@theia/core';
|
|
18
|
+
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
19
|
+
import { RequestContext, RequestService } from '@theia/core/shared/@theia/request';
|
|
20
|
+
import decompress from 'decompress';
|
|
21
|
+
import * as path from 'path';
|
|
22
|
+
import * as fs from 'fs/promises';
|
|
23
|
+
import { DirectoryDependencyDownload, RemoteNativeDependencyContribution } from './remote-native-dependency-contribution.js';
|
|
24
|
+
import decompressTar from 'decompress-tar';
|
|
25
|
+
import decompressTargz from 'decompress-targz';
|
|
26
|
+
import decompressUnzip from 'decompress-unzip';
|
|
27
|
+
export const DEFAULT_HTTP_OPTIONS = {
|
|
31
28
|
method: 'GET',
|
|
32
29
|
headers: {
|
|
33
30
|
Accept: 'application/octet-stream'
|
|
@@ -39,7 +36,7 @@ let RemoteNativeDependencyService = class RemoteNativeDependencyService {
|
|
|
39
36
|
.map(async (contribution) => {
|
|
40
37
|
const result = await contribution.download({
|
|
41
38
|
remotePlatform,
|
|
42
|
-
theiaVersion:
|
|
39
|
+
theiaVersion: THEIA_VERSION,
|
|
43
40
|
download: requestInfo => this.downloadDependency(requestInfo)
|
|
44
41
|
});
|
|
45
42
|
const dependency = await this.storeDependency(result, directory);
|
|
@@ -49,10 +46,10 @@ let RemoteNativeDependencyService = class RemoteNativeDependencyService {
|
|
|
49
46
|
}
|
|
50
47
|
async downloadDependency(downloadURI) {
|
|
51
48
|
const options = typeof downloadURI === 'string'
|
|
52
|
-
? { url: downloadURI, ...
|
|
53
|
-
: { ...
|
|
49
|
+
? { url: downloadURI, ...DEFAULT_HTTP_OPTIONS }
|
|
50
|
+
: { ...DEFAULT_HTTP_OPTIONS, ...downloadURI };
|
|
54
51
|
const req = await this.requestService.request(options);
|
|
55
|
-
if (
|
|
52
|
+
if (RequestContext.isSuccess(req)) {
|
|
56
53
|
if (typeof req.buffer === 'string') {
|
|
57
54
|
return Buffer.from(req.buffer, 'utf8');
|
|
58
55
|
}
|
|
@@ -65,7 +62,7 @@ let RemoteNativeDependencyService = class RemoteNativeDependencyService {
|
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
64
|
async storeDependency(dependency, directory) {
|
|
68
|
-
if (
|
|
65
|
+
if (DirectoryDependencyDownload.is(dependency)) {
|
|
69
66
|
const archiveBuffer = dependency.buffer;
|
|
70
67
|
const plugins = [];
|
|
71
68
|
if (dependency.archive === 'tar') {
|
|
@@ -100,17 +97,15 @@ let RemoteNativeDependencyService = class RemoteNativeDependencyService {
|
|
|
100
97
|
}
|
|
101
98
|
}
|
|
102
99
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
(
|
|
106
|
-
(0, inversify_1.named)(remote_native_dependency_contribution_1.RemoteNativeDependencyContribution),
|
|
107
|
-
tslib_1.__metadata("design:type", Object)
|
|
100
|
+
__decorate([
|
|
101
|
+
inject(ContributionProvider),
|
|
102
|
+
named(RemoteNativeDependencyContribution)
|
|
108
103
|
], RemoteNativeDependencyService.prototype, "nativeDependencyContributions", void 0);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
tslib_1.__metadata("design:type", Object)
|
|
104
|
+
__decorate([
|
|
105
|
+
inject(RequestService)
|
|
112
106
|
], RemoteNativeDependencyService.prototype, "requestService", void 0);
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
RemoteNativeDependencyService = __decorate([
|
|
108
|
+
injectable()
|
|
115
109
|
], RemoteNativeDependencyService);
|
|
110
|
+
export { RemoteNativeDependencyService };
|
|
116
111
|
//# sourceMappingURL=remote-native-dependency-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-native-dependency-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-native-dependency-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-native-dependency-service.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,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;CAEJ,CAAA;AApEa;IADT,MAAM,CAAC,oBAAoB,CAAC;IAAE,KAAK,CAAC,kCAAkC,CAAC;oFAC0B;AAGxF;IADT,MAAM,CAAC,cAAc,CAAC;qEACkB;AANhC,6BAA6B;IADzC,UAAU,EAAE;GACA,6BAA6B,CAuEzC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RequestService } from '@theia/core/shared/@theia/request';
|
|
2
|
-
import { RemoteSetupScriptService } from './remote-setup-script-service';
|
|
2
|
+
import { RemoteSetupScriptService } from './remote-setup-script-service.js';
|
|
3
3
|
import { RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
|
|
4
4
|
/**
|
|
5
5
|
* The current node version that Theia recommends.
|
|
6
6
|
*
|
|
7
7
|
* Native dependencies are compiled against this version.
|
|
8
8
|
*/
|
|
9
|
-
export declare const REMOTE_NODE_VERSION = "24.
|
|
9
|
+
export declare const REMOTE_NODE_VERSION = "24.21.0";
|
|
10
10
|
export declare class RemoteNodeSetupService {
|
|
11
11
|
protected readonly requestService: RequestService;
|
|
12
12
|
protected readonly scriptService: RemoteSetupScriptService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-node-setup-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-node-setup-service.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"remote-node-setup-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-node-setup-service.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAGrF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C,qBACa,sBAAsB;IAG/B,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,wBAAwB,CAAC;IAE3D,oBAAoB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAItD,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAY3D,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAU1D,SAAS,CAAC,kBAAkB,CAAC,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,GAAG,KAAK;IAIpF,SAAS,CAAC,oBAAoB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAYhE,eAAe,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM;IAI3C,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAexF,sBAAsB,CAAC,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM;IAUvG,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM;CASzF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2023 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,32 +13,30 @@
|
|
|
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
|
-
const remote_setup_script_service_1 = require("./remote-setup-script-service");
|
|
26
|
-
const core_1 = require("@theia/core");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import * as path from 'path';
|
|
18
|
+
import * as fs from '@theia/core/shared/fs-extra';
|
|
19
|
+
import * as os from 'os';
|
|
20
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
21
|
+
import { RequestService } from '@theia/core/shared/@theia/request';
|
|
22
|
+
import { RemoteSetupScriptService } from './remote-setup-script-service.js';
|
|
23
|
+
import { OS } from '@theia/core';
|
|
27
24
|
/**
|
|
28
25
|
* The current node version that Theia recommends.
|
|
29
26
|
*
|
|
30
27
|
* Native dependencies are compiled against this version.
|
|
31
28
|
*/
|
|
32
|
-
|
|
29
|
+
export const REMOTE_NODE_VERSION = '24.21.0';
|
|
33
30
|
let RemoteNodeSetupService = class RemoteNodeSetupService {
|
|
34
31
|
getNodeDirectoryName(platform) {
|
|
35
|
-
return `node-v${
|
|
32
|
+
return `node-v${REMOTE_NODE_VERSION}-${this.getPlatformName(platform)}-${platform.arch}`;
|
|
36
33
|
}
|
|
37
34
|
getPlatformName(platform) {
|
|
38
35
|
let platformId;
|
|
39
|
-
if (platform.os ===
|
|
36
|
+
if (platform.os === OS.Type.Windows) {
|
|
40
37
|
platformId = 'win';
|
|
41
38
|
}
|
|
42
|
-
else if (platform.os ===
|
|
39
|
+
else if (platform.os === OS.Type.OSX) {
|
|
43
40
|
platformId = 'darwin';
|
|
44
41
|
}
|
|
45
42
|
else {
|
|
@@ -48,13 +45,13 @@ let RemoteNodeSetupService = class RemoteNodeSetupService {
|
|
|
48
45
|
return platformId;
|
|
49
46
|
}
|
|
50
47
|
validatePlatform(platform) {
|
|
51
|
-
if (platform.os ===
|
|
48
|
+
if (platform.os === OS.Type.Windows && !platform.arch.match(/^x(64|86)$/)) {
|
|
52
49
|
this.throwPlatformError(platform, 'x64 and x86');
|
|
53
50
|
}
|
|
54
|
-
else if (platform.os ===
|
|
51
|
+
else if (platform.os === OS.Type.Linux && !platform.arch.match(/^(x64|armv7l|arm64)$/)) {
|
|
55
52
|
this.throwPlatformError(platform, 'x64, armv7l and arm64');
|
|
56
53
|
}
|
|
57
|
-
else if (platform.os ===
|
|
54
|
+
else if (platform.os === OS.Type.OSX && !platform.arch.match(/^(x64|arm64)$/)) {
|
|
58
55
|
this.throwPlatformError(platform, 'x64 and arm64');
|
|
59
56
|
}
|
|
60
57
|
}
|
|
@@ -63,10 +60,10 @@ let RemoteNodeSetupService = class RemoteNodeSetupService {
|
|
|
63
60
|
}
|
|
64
61
|
getNodeFileExtension(platform) {
|
|
65
62
|
let fileExtension;
|
|
66
|
-
if (platform.os ===
|
|
63
|
+
if (platform.os === OS.Type.Windows) {
|
|
67
64
|
fileExtension = 'zip';
|
|
68
65
|
}
|
|
69
|
-
else if (platform.os ===
|
|
66
|
+
else if (platform.os === OS.Type.OSX) {
|
|
70
67
|
fileExtension = 'tar.gz';
|
|
71
68
|
}
|
|
72
69
|
else {
|
|
@@ -103,23 +100,21 @@ let RemoteNodeSetupService = class RemoteNodeSetupService {
|
|
|
103
100
|
getDownloadPath(platform, downloadTemplate) {
|
|
104
101
|
const template = downloadTemplate || 'https://nodejs.org/dist/v{version}/node-v{version}-{os}-{arch}.{ext}';
|
|
105
102
|
const downloadPath = template
|
|
106
|
-
.replace(/{version}/g,
|
|
103
|
+
.replace(/{version}/g, REMOTE_NODE_VERSION)
|
|
107
104
|
.replace(/{os}/g, this.getPlatformName(platform))
|
|
108
105
|
.replace(/{arch}/g, platform.arch)
|
|
109
106
|
.replace(/{ext}/g, this.getNodeFileExtension(platform));
|
|
110
107
|
return downloadPath;
|
|
111
108
|
}
|
|
112
109
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
(0, inversify_1.inject)(request_1.RequestService),
|
|
116
|
-
tslib_1.__metadata("design:type", Object)
|
|
110
|
+
__decorate([
|
|
111
|
+
inject(RequestService)
|
|
117
112
|
], RemoteNodeSetupService.prototype, "requestService", void 0);
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
tslib_1.__metadata("design:type", remote_setup_script_service_1.RemoteSetupScriptService)
|
|
113
|
+
__decorate([
|
|
114
|
+
inject(RemoteSetupScriptService)
|
|
121
115
|
], RemoteNodeSetupService.prototype, "scriptService", void 0);
|
|
122
|
-
|
|
123
|
-
|
|
116
|
+
RemoteNodeSetupService = __decorate([
|
|
117
|
+
injectable()
|
|
124
118
|
], RemoteNodeSetupService);
|
|
119
|
+
export { RemoteNodeSetupService };
|
|
125
120
|
//# sourceMappingURL=remote-node-setup-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-node-setup-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-node-setup-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-node-setup-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-node-setup-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,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAGtC,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAQ/B,oBAA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YAAY,CAAC;IACxB,CAAC;CACJ,CAAA;AArFsB;IADlB,MAAM,CAAC,cAAc,CAAC;8DAC2B;AAG/B;IADlB,MAAM,CAAC,wBAAwB,CAAC;6DAC0B;AANlD,sBAAsB;IADlC,UAAU,EAAE;GACA,sBAAsB,CAwFlC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2023 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,11 +13,9 @@
|
|
|
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 core_1 = require("@theia/core");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { OS } from '@theia/core';
|
|
18
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
22
19
|
let RemoteWindowsScriptStrategy = class RemoteWindowsScriptStrategy {
|
|
23
20
|
home() {
|
|
24
21
|
return 'PowerShell -Command $HOME';
|
|
@@ -42,10 +39,10 @@ let RemoteWindowsScriptStrategy = class RemoteWindowsScriptStrategy {
|
|
|
42
39
|
return segments.join('\r\n');
|
|
43
40
|
}
|
|
44
41
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
(0, inversify_1.injectable)()
|
|
42
|
+
RemoteWindowsScriptStrategy = __decorate([
|
|
43
|
+
injectable()
|
|
48
44
|
], RemoteWindowsScriptStrategy);
|
|
45
|
+
export { RemoteWindowsScriptStrategy };
|
|
49
46
|
let RemotePosixScriptStrategy = class RemotePosixScriptStrategy {
|
|
50
47
|
home() {
|
|
51
48
|
return 'eval echo ~';
|
|
@@ -80,13 +77,13 @@ fi
|
|
|
80
77
|
return segments.join('\n');
|
|
81
78
|
}
|
|
82
79
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(0, inversify_1.injectable)()
|
|
80
|
+
RemotePosixScriptStrategy = __decorate([
|
|
81
|
+
injectable()
|
|
86
82
|
], RemotePosixScriptStrategy);
|
|
83
|
+
export { RemotePosixScriptStrategy };
|
|
87
84
|
let RemoteSetupScriptService = class RemoteSetupScriptService {
|
|
88
85
|
getStrategy(platform) {
|
|
89
|
-
return platform.os ===
|
|
86
|
+
return platform.os === OS.Type.Windows ? this.windowsStrategy : this.posixStrategy;
|
|
90
87
|
}
|
|
91
88
|
home(platform) {
|
|
92
89
|
return this.getStrategy(platform).home();
|
|
@@ -110,16 +107,14 @@ let RemoteSetupScriptService = class RemoteSetupScriptService {
|
|
|
110
107
|
return this.getStrategy(platform).joinScript(...segments);
|
|
111
108
|
}
|
|
112
109
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
(0, inversify_1.inject)(RemoteWindowsScriptStrategy),
|
|
116
|
-
tslib_1.__metadata("design:type", RemoteWindowsScriptStrategy)
|
|
110
|
+
__decorate([
|
|
111
|
+
inject(RemoteWindowsScriptStrategy)
|
|
117
112
|
], RemoteSetupScriptService.prototype, "windowsStrategy", void 0);
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
tslib_1.__metadata("design:type", RemotePosixScriptStrategy)
|
|
113
|
+
__decorate([
|
|
114
|
+
inject(RemotePosixScriptStrategy)
|
|
121
115
|
], RemoteSetupScriptService.prototype, "posixStrategy", void 0);
|
|
122
|
-
|
|
123
|
-
|
|
116
|
+
RemoteSetupScriptService = __decorate([
|
|
117
|
+
injectable()
|
|
124
118
|
], RemoteSetupScriptService);
|
|
119
|
+
export { RemoteSetupScriptService };
|
|
125
120
|
//# sourceMappingURL=remote-setup-script-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-setup-script-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-setup-script-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-setup-script-service.js","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-setup-script-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,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAc3D,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAEpC,IAAI;QACA,OAAO,2BAA2B,CAAC;IACvC,CAAC;IAED,IAAI;QACA,OAAO,qBAAqB,CAAC;IACjC,CAAC;IAED,YAAY,CAAC,GAAW,EAAE,MAAc;QACpC,OAAO,+CAA+C,GAAG,cAAc,MAAM,EAAE,CAAC;IACpF,CAAC;IAED,KAAK,CAAC,IAAY,EAAE,SAAiB;QACjC,OAAO,YAAY,IAAI,SAAS,SAAS,GAAG,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,IAAY;QACd,OAAO,kEAAkE,IAAI,GAAG,CAAC;IACrF,CAAC;IAED,QAAQ,CAAC,GAAG,QAAkB;QAC1B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,UAAU,CAAC,GAAG,QAAkB;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;CACJ,CAAA;AA7BY,2BAA2B;IADvC,UAAU,EAAE;GACA,2BAA2B,CA6BvC;;AAGM,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAElC,IAAI;QACA,OAAO,aAAa,CAAC;IACzB,CAAC;IAED,IAAI;QACA,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,GAA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,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,QAAwB,EAAE,IAAY;QACxC,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,QAAQ,CAAC,QAAwB,EAAE,GAAG,QAAkB;QACpD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,GAAG,QAAkB;QACtD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC9D,CAAC;CACJ,CAAA;AApCa;IADT,MAAM,CAAC,2BAA2B,CAAC;iEACmB;AAG7C;IADT,MAAM,CAAC,yBAAyB,CAAC;+DACiB;AAN1C,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CAuCpC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RemoteConnection, RemoteExecResult, RemoteStatusReport } from '../remote-types';
|
|
1
|
+
import { RemoteConnection, RemoteExecResult, RemoteStatusReport } from '../remote-types.js';
|
|
2
2
|
import { RemoteCliContribution, RemotePlatform } from '@theia/core/lib/node/remote/remote-cli-contribution';
|
|
3
3
|
import { ApplicationPackage } from '@theia/core/shared/@theia/application-package';
|
|
4
|
-
import { RemoteCopyService } from './remote-copy-service';
|
|
5
|
-
import { RemoteNativeDependencyService } from './remote-native-dependency-service';
|
|
4
|
+
import { RemoteCopyService } from './remote-copy-service.js';
|
|
5
|
+
import { RemoteNativeDependencyService } from './remote-native-dependency-service.js';
|
|
6
6
|
import { ContributionProvider } from '@theia/core';
|
|
7
|
-
import { RemoteNodeSetupService } from './remote-node-setup-service';
|
|
8
|
-
import { RemoteSetupScriptService } from './remote-setup-script-service';
|
|
7
|
+
import { RemoteNodeSetupService } from './remote-node-setup-service.js';
|
|
8
|
+
import { RemoteSetupScriptService } from './remote-setup-script-service.js';
|
|
9
9
|
export interface RemoteSetupOptions {
|
|
10
10
|
connection: RemoteConnection;
|
|
11
11
|
report: RemoteStatusReport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-setup-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-setup-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"remote-setup-service.d.ts","sourceRoot":"","sources":["../../../src/electron-node/setup/remote-setup-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAoB,qBAAqB,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAC9H,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAqB,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,MAAM,WAAW,kBAAkB;IAC/B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,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