@theia/remote-wsl 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/remote-wsl-frontend-module.js +11 -13
- package/lib/electron-browser/remote-wsl-frontend-module.js.map +1 -1
- package/lib/electron-browser/wsl-connection-contribution.d.ts +1 -1
- package/lib/electron-browser/wsl-connection-contribution.d.ts.map +1 -1
- package/lib/electron-browser/wsl-connection-contribution.js +39 -49
- package/lib/electron-browser/wsl-connection-contribution.js.map +1 -1
- package/lib/electron-common/remote-wsl-connection-provider.js +2 -5
- package/lib/electron-common/remote-wsl-connection-provider.js.map +1 -1
- package/lib/electron-common/wsl-workspaces.js +1 -4
- package/lib/electron-common/wsl-workspaces.js.map +1 -1
- package/lib/electron-node/remote-wsl-backend-module.js +16 -19
- package/lib/electron-node/remote-wsl-backend-module.js.map +1 -1
- package/lib/electron-node/remote-wsl-connection-provider.d.ts +1 -1
- package/lib/electron-node/remote-wsl-connection-provider.d.ts.map +1 -1
- package/lib/electron-node/remote-wsl-connection-provider.js +22 -29
- package/lib/electron-node/remote-wsl-connection-provider.js.map +1 -1
- package/lib/electron-node/remote-wsl-connection.js +14 -18
- package/lib/electron-node/remote-wsl-connection.js.map +1 -1
- package/lib/electron-node/wsl-workspace-handler.js +2 -6
- package/lib/electron-node/wsl-workspace-handler.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -0
- package/package.json +13 -5
- package/src/electron-browser/remote-wsl-frontend-module.ts +2 -2
- package/src/electron-browser/wsl-connection-contribution.ts +2 -2
- package/src/electron-node/remote-wsl-backend-module.ts +3 -3
- package/src/electron-node/remote-wsl-connection-provider.ts +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,17 +13,16 @@
|
|
|
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
|
-
bind(
|
|
26
|
-
bind(
|
|
27
|
-
bind(
|
|
28
|
-
bind(remote_wsl_connection_provider_1.RemoteWslConnectionProvider).toDynamicValue(ctx => service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_wsl_connection_provider_1.RemoteWslConnectionProviderPath)).inSingletonScope();
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { RemoteRegistryContribution } from '@theia/remote/lib/electron-browser/remote-registry-contribution';
|
|
18
|
+
import { RemoteWslConnectionProvider, RemoteWslConnectionProviderPath } from '../electron-common/remote-wsl-connection-provider.js';
|
|
19
|
+
import { WslConnectionContribution } from './wsl-connection-contribution.js';
|
|
20
|
+
import { ServiceConnectionProvider } from '@theia/core/lib/browser/messaging/service-connection-provider';
|
|
21
|
+
import { WorkspaceOpenHandlerContribution } from '@theia/workspace/lib/browser/workspace-service';
|
|
22
|
+
export default new ContainerModule(bind => {
|
|
23
|
+
bind(WslConnectionContribution).toSelf().inSingletonScope();
|
|
24
|
+
bind(RemoteRegistryContribution).toService(WslConnectionContribution);
|
|
25
|
+
bind(WorkspaceOpenHandlerContribution).toService(WslConnectionContribution);
|
|
26
|
+
bind(RemoteWslConnectionProvider).toDynamicValue(ctx => ServiceConnectionProvider.createLocalProxy(ctx.container, RemoteWslConnectionProviderPath)).inSingletonScope();
|
|
29
27
|
});
|
|
30
28
|
//# sourceMappingURL=remote-wsl-frontend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-wsl-frontend-module.js","sourceRoot":"","sources":["../../src/electron-browser/remote-wsl-frontend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-wsl-frontend-module.js","sourceRoot":"","sources":["../../src/electron-browser/remote-wsl-frontend-module.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iEAAiE,CAAC;AAC7G,OAAO,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACpI,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAC1G,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAElG,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,yBAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,0BAA0B,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IACtE,IAAI,CAAC,gCAAgC,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;IAE5E,IAAI,CAAC,2BAA2B,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CACnD,yBAAyB,CAAC,gBAAgB,CAA8B,GAAG,CAAC,SAAS,EAAE,+BAA+B,CAAC,CAC1H,CAAC,gBAAgB,EAAE,CAAC;AACzB,CAAC,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { WorkspaceStorageService } from '@theia/workspace/lib/browser/workspace-
|
|
|
3
3
|
import { Command, MessageService, QuickInputService, URI } from '@theia/core';
|
|
4
4
|
import { WorkspaceInput, WorkspaceOpenHandlerContribution, WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
|
|
5
5
|
import { WorkspaceServer } from '@theia/workspace/lib/common';
|
|
6
|
-
import { RemoteWslConnectionProvider, WslDistribution } from '../electron-common/remote-wsl-connection-provider';
|
|
6
|
+
import { RemoteWslConnectionProvider, WslDistribution } from '../electron-common/remote-wsl-connection-provider.js';
|
|
7
7
|
import { RemotePreferences } from '@theia/remote/lib/electron-common/remote-preferences';
|
|
8
8
|
export declare namespace RemoteWslCommands {
|
|
9
9
|
const CONNECT_TO_WSL: Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wsl-connection-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/wsl-connection-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kCAAkC,EAAE,cAAc,EAAE,MAAM,iEAAiE,CAAC;AACrI,OAAO,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,EAAkB,MAAM,aAAa,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACpI,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"wsl-connection-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/wsl-connection-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kCAAkC,EAAE,cAAc,EAAE,MAAM,iEAAiE,CAAC;AACrI,OAAO,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,EAAkB,MAAM,aAAa,CAAC;AAC9F,OAAO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IAAI,CAAC;IAc5E,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI9D,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAKjD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,39 +13,37 @@
|
|
|
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_preferences_1 = require("@theia/remote/lib/electron-common/remote-preferences");
|
|
29
|
-
var RemoteWslCommands;
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { AbstractRemoteRegistryContribution } from '@theia/remote/lib/electron-browser/remote-registry-contribution';
|
|
19
|
+
import { WorkspaceStorageService } from '@theia/workspace/lib/browser/workspace-storage-service';
|
|
20
|
+
import { Command, MessageService, QuickInputService, isWindows, nls } from '@theia/core';
|
|
21
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
|
|
22
|
+
import { WorkspaceServer } from '@theia/workspace/lib/common';
|
|
23
|
+
import { RemoteWslConnectionProvider } from '../electron-common/remote-wsl-connection-provider.js';
|
|
24
|
+
import { WSL_WORKSPACE_SCHEME } from '../electron-common/wsl-workspaces.js';
|
|
25
|
+
import { RemotePreferences } from '@theia/remote/lib/electron-common/remote-preferences';
|
|
26
|
+
export var RemoteWslCommands;
|
|
30
27
|
(function (RemoteWslCommands) {
|
|
31
|
-
RemoteWslCommands.CONNECT_TO_WSL =
|
|
28
|
+
RemoteWslCommands.CONNECT_TO_WSL = Command.toLocalizedCommand({
|
|
32
29
|
id: 'remote-wsl.connect-to-wsl',
|
|
33
30
|
label: 'Connect to WSL',
|
|
34
31
|
category: 'WSL'
|
|
35
32
|
}, 'theia/remote/wsl/connectToWsl');
|
|
36
|
-
RemoteWslCommands.CONNECT_TO_WSL_WITH_DISTRO =
|
|
33
|
+
RemoteWslCommands.CONNECT_TO_WSL_WITH_DISTRO = Command.toLocalizedCommand({
|
|
37
34
|
id: 'remote-wsl.connect-to-wsl-with-distro',
|
|
38
35
|
label: 'Connect to WSL using Distro...',
|
|
39
36
|
category: 'WSL'
|
|
40
37
|
}, 'theia/remote/wsl/connectToWslUsingDistro');
|
|
41
|
-
RemoteWslCommands.OPEN_CURRENT_FOLDER_IN_WSL =
|
|
38
|
+
RemoteWslCommands.OPEN_CURRENT_FOLDER_IN_WSL = Command.toLocalizedCommand({
|
|
42
39
|
id: 'remote-wsl.open-current-folder-in-wsl',
|
|
43
40
|
label: 'Reopen Folder in WSL',
|
|
44
41
|
category: 'WSL'
|
|
45
42
|
}, 'theia/remote/wsl/reopenInWsl');
|
|
46
|
-
})(RemoteWslCommands || (
|
|
47
|
-
let WslConnectionContribution = class WslConnectionContribution extends
|
|
43
|
+
})(RemoteWslCommands || (RemoteWslCommands = {}));
|
|
44
|
+
let WslConnectionContribution = class WslConnectionContribution extends AbstractRemoteRegistryContribution {
|
|
48
45
|
registerRemoteCommands(registry) {
|
|
49
|
-
if (!
|
|
46
|
+
if (!isWindows) {
|
|
50
47
|
// ignore this feature on non-Windows platforms
|
|
51
48
|
return;
|
|
52
49
|
}
|
|
@@ -93,14 +90,14 @@ let WslConnectionContribution = class WslConnectionContribution extends remote_r
|
|
|
93
90
|
workspacePath: this.workspaceService.workspace?.resource.path?.fsPath()
|
|
94
91
|
});
|
|
95
92
|
if (workspace) {
|
|
96
|
-
this.workspaceServer.setMostRecentlyUsedWorkspace(`${
|
|
93
|
+
this.workspaceServer.setMostRecentlyUsedWorkspace(`${WSL_WORKSPACE_SCHEME}:${workspace}?distro=${distribution.name}`);
|
|
97
94
|
}
|
|
98
95
|
this.openRemote(connectionResult.port.toString(), !preserveWindow, workspace);
|
|
99
96
|
}
|
|
100
97
|
async getOrSelectWslDistribution() {
|
|
101
98
|
const distributions = await this.connectionProvider.getWslDistributions();
|
|
102
99
|
if (distributions.length === 0) {
|
|
103
|
-
this.messageService.error(
|
|
100
|
+
this.messageService.error(nls.localize('theia/remote/wsl/noWslDistroFound', 'No WSL distributions found. Please install a WSL distribution first.'));
|
|
104
101
|
return undefined;
|
|
105
102
|
}
|
|
106
103
|
if (distributions.length === 1) {
|
|
@@ -109,14 +106,14 @@ let WslConnectionContribution = class WslConnectionContribution extends remote_r
|
|
|
109
106
|
return (await this.quickInputService.pick(distributions.map(dist => ({
|
|
110
107
|
type: 'item',
|
|
111
108
|
label: dist.name,
|
|
112
|
-
description: dist.default ?
|
|
109
|
+
description: dist.default ? nls.localizeByDefault('Default') : dist.version,
|
|
113
110
|
distribution: dist,
|
|
114
111
|
})), {
|
|
115
|
-
title:
|
|
112
|
+
title: nls.localize('theia/remote/wsl/selectWSLDistro', 'Select a WSL distribution')
|
|
116
113
|
}))?.distribution;
|
|
117
114
|
}
|
|
118
115
|
canHandle(uri) {
|
|
119
|
-
return uri.scheme ===
|
|
116
|
+
return uri.scheme === WSL_WORKSPACE_SCHEME; // WSL doesn't use a special URI scheme
|
|
120
117
|
}
|
|
121
118
|
async openWorkspace(uri, options) {
|
|
122
119
|
const workspacePath = uri.path.toString();
|
|
@@ -140,37 +137,30 @@ let WslConnectionContribution = class WslConnectionContribution extends remote_r
|
|
|
140
137
|
return wslPath.replace(/\\/g, '/');
|
|
141
138
|
}
|
|
142
139
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
(0, inversify_1.inject)(remote_wsl_connection_provider_1.RemoteWslConnectionProvider),
|
|
146
|
-
tslib_1.__metadata("design:type", Object)
|
|
140
|
+
__decorate([
|
|
141
|
+
inject(RemoteWslConnectionProvider)
|
|
147
142
|
], WslConnectionContribution.prototype, "connectionProvider", void 0);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
tslib_1.__metadata("design:type", Object)
|
|
143
|
+
__decorate([
|
|
144
|
+
inject(RemotePreferences)
|
|
151
145
|
], WslConnectionContribution.prototype, "remotePreferences", void 0);
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
tslib_1.__metadata("design:type", workspace_storage_service_1.WorkspaceStorageService)
|
|
146
|
+
__decorate([
|
|
147
|
+
inject(WorkspaceStorageService)
|
|
155
148
|
], WslConnectionContribution.prototype, "workspaceStorageService", void 0);
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
tslib_1.__metadata("design:type", workspace_service_1.WorkspaceService)
|
|
149
|
+
__decorate([
|
|
150
|
+
inject(WorkspaceService)
|
|
159
151
|
], WslConnectionContribution.prototype, "workspaceService", void 0);
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
tslib_1.__metadata("design:type", Object)
|
|
152
|
+
__decorate([
|
|
153
|
+
inject(WorkspaceServer)
|
|
163
154
|
], WslConnectionContribution.prototype, "workspaceServer", void 0);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
tslib_1.__metadata("design:type", Object)
|
|
155
|
+
__decorate([
|
|
156
|
+
inject(QuickInputService)
|
|
167
157
|
], WslConnectionContribution.prototype, "quickInputService", void 0);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
tslib_1.__metadata("design:type", core_1.MessageService)
|
|
158
|
+
__decorate([
|
|
159
|
+
inject(MessageService)
|
|
171
160
|
], WslConnectionContribution.prototype, "messageService", void 0);
|
|
172
|
-
|
|
173
|
-
|
|
161
|
+
WslConnectionContribution = __decorate([
|
|
162
|
+
injectable()
|
|
174
163
|
], WslConnectionContribution);
|
|
164
|
+
export { WslConnectionContribution };
|
|
175
165
|
;
|
|
176
166
|
//# sourceMappingURL=wsl-connection-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wsl-connection-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/wsl-connection-contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wsl-connection-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/wsl-connection-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,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAkB,MAAM,iEAAiE,CAAC;AACrI,OAAO,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAO,SAAS,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC9F,OAAO,EAAoD,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACpI,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAmB,MAAM,sDAAsD,CAAC;AACpH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AAEzF,MAAM,KAAW,iBAAiB,CAkBjC;AAlBD,WAAiB,iBAAiB;IACjB,gCAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACrD,EAAE,EAAE,2BAA2B;QAC/B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,KAAK;KAClB,EAAE,+BAA+B,CAAC,CAAC;IAEvB,4CAA0B,GAAG,OAAO,CAAC,kBAAkB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M,CAAC,eAAe,CAAC;kEAC4B;AAGjC;IADlB,MAAM,CAAC,iBAAiB,CAAC;oEAC8B;AAGrC;IADlB,MAAM,CAAC,cAAc,CAAC;iEAC2B;AAtBzC,yBAAyB;IADrC,UAAU,EAAE;GACA,yBAAyB,CAoIrC;;AAAA,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,8 +13,6 @@
|
|
|
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
|
-
exports.RemoteWslConnectionProviderPath = '/remote/wsl';
|
|
20
|
-
exports.RemoteWslConnectionProvider = Symbol('RemoteWslConnectionProvider');
|
|
16
|
+
export const RemoteWslConnectionProviderPath = '/remote/wsl';
|
|
17
|
+
export const RemoteWslConnectionProvider = Symbol('RemoteWslConnectionProvider');
|
|
21
18
|
//# sourceMappingURL=remote-wsl-connection-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-wsl-connection-provider.js","sourceRoot":"","sources":["../../src/electron-common/remote-wsl-connection-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-wsl-connection-provider.js","sourceRoot":"","sources":["../../src/electron-common/remote-wsl-connection-provider.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;AAkBhF,MAAM,CAAC,MAAM,+BAA+B,GAAG,aAAa,CAAC;AAE7D,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,7 +13,5 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
exports.WSL_WORKSPACE_SCHEME = void 0;
|
|
19
|
-
exports.WSL_WORKSPACE_SCHEME = 'wsl';
|
|
16
|
+
export const WSL_WORKSPACE_SCHEME = 'wsl';
|
|
20
17
|
//# sourceMappingURL=wsl-workspaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wsl-workspaces.js","sourceRoot":"","sources":["../../src/electron-common/wsl-workspaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wsl-workspaces.js","sourceRoot":"","sources":["../../src/electron-common/wsl-workspaces.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,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,26 +13,24 @@
|
|
|
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
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
bind(
|
|
28
|
-
|
|
29
|
-
bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.RpcConnectionHandler(remote_wsl_connection_provider_2.RemoteWslConnectionProviderPath, client => {
|
|
30
|
-
const server = ctx.container.get(remote_wsl_connection_provider_2.RemoteWslConnectionProvider);
|
|
16
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
17
|
+
import { RemoteWslConnectionProviderImpl } from './remote-wsl-connection-provider.js';
|
|
18
|
+
import { RemoteWslConnectionProvider, RemoteWslConnectionProviderPath } from '../electron-common/remote-wsl-connection-provider.js';
|
|
19
|
+
import { ConnectionContainerModule } from '@theia/core/lib/node/messaging/connection-container-module';
|
|
20
|
+
import { ConnectionHandler, RpcConnectionHandler } from '@theia/core';
|
|
21
|
+
import { WslWorkspaceHandler } from './wsl-workspace-handler.js';
|
|
22
|
+
import { WorkspaceHandlerContribution } from '@theia/workspace/lib/node/default-workspace-server';
|
|
23
|
+
export const wslRemoteConnectionModule = ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
24
|
+
bind(RemoteWslConnectionProviderImpl).toSelf().inSingletonScope();
|
|
25
|
+
bind(RemoteWslConnectionProvider).toService(RemoteWslConnectionProviderImpl);
|
|
26
|
+
bind(ConnectionHandler).toDynamicValue(ctx => new RpcConnectionHandler(RemoteWslConnectionProviderPath, client => {
|
|
27
|
+
const server = ctx.container.get(RemoteWslConnectionProvider);
|
|
31
28
|
return server;
|
|
32
29
|
}));
|
|
33
30
|
});
|
|
34
|
-
|
|
35
|
-
bind(
|
|
36
|
-
bind(
|
|
37
|
-
bind(
|
|
31
|
+
export default new ContainerModule(bind => {
|
|
32
|
+
bind(ConnectionContainerModule).toConstantValue(wslRemoteConnectionModule);
|
|
33
|
+
bind(WslWorkspaceHandler).toSelf().inSingletonScope();
|
|
34
|
+
bind(WorkspaceHandlerContribution).toService(WslWorkspaceHandler);
|
|
38
35
|
});
|
|
39
36
|
//# sourceMappingURL=remote-wsl-backend-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-wsl-backend-module.js","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-backend-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-wsl-backend-module.js","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-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,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACpI,OAAO,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAElG,MAAM,CAAC,MAAM,yBAAyB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACvG,IAAI,CAAC,+BAA+B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAClE,IAAI,CAAC,2BAA2B,CAAC,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC;IAC7E,IAAI,CAAC,iBAAiB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CACzC,IAAI,oBAAoB,CAA8B,+BAA+B,EAAE,MAAM,CAAC,EAAE;QAC5F,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAA8B,2BAA2B,CAAC,CAAC;QAC3F,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC,CAAC,CAAC;AACZ,CAAC,CAAC,CAAC;AAEH,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,yBAAyB,CAAC,CAAC,eAAe,CAAC,yBAAyB,CAAC,CAAC;IAE3E,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACtD,IAAI,CAAC,4BAA4B,CAAC,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;AAEtE,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RemoteWslConnectionProvider, WslDistribution, WslConnectionOptions, WslConnectionResult } from '../electron-common/remote-wsl-connection-provider';
|
|
1
|
+
import { RemoteWslConnectionProvider, WslDistribution, WslConnectionOptions, WslConnectionResult } from '../electron-common/remote-wsl-connection-provider.js';
|
|
2
2
|
import { RemoteConnectionService } from '@theia/remote/lib/electron-node/remote-connection-service';
|
|
3
3
|
import { RemoteSetupService } from '@theia/remote/lib/electron-node/setup/remote-setup-service';
|
|
4
4
|
import { MessageService, ILogger } from '@theia/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-wsl-connection-provider.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-connection-provider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"remote-wsl-connection-provider.d.ts","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-connection-provider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC/J,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAEhG,OAAO,EAAE,cAAc,EAAgB,OAAO,EAAE,MAAM,aAAa,CAAC;AAGpE,qBACa,+BAAgC,YAAW,2BAA2B;IAG/E,SAAS,CAAC,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAGpE,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC;IAGnD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,OAAO,IAAI,IAAI;IAGf;;;;;;;;;;;OAWG;IACG,mBAAmB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAgCjD,YAAY,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAsClF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,15 +13,13 @@
|
|
|
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
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
const remote_wsl_connection_1 = require("./remote-wsl-connection");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
18
|
+
import { RemoteConnectionService } from '@theia/remote/lib/electron-node/remote-connection-service';
|
|
19
|
+
import { RemoteSetupService } from '@theia/remote/lib/electron-node/setup/remote-setup-service';
|
|
20
|
+
import { exec } from 'child_process';
|
|
21
|
+
import { MessageService, generateUuid, ILogger } from '@theia/core';
|
|
22
|
+
import { RemoteWslConnection } from './remote-wsl-connection.js';
|
|
26
23
|
let RemoteWslConnectionProviderImpl = class RemoteWslConnectionProviderImpl {
|
|
27
24
|
dispose() {
|
|
28
25
|
}
|
|
@@ -40,7 +37,7 @@ let RemoteWslConnectionProviderImpl = class RemoteWslConnectionProviderImpl {
|
|
|
40
37
|
*/
|
|
41
38
|
async getWslDistributions() {
|
|
42
39
|
return new Promise((resolve, reject) => {
|
|
43
|
-
|
|
40
|
+
exec('wsl.exe --list --verbose --all', (error, stdout, stderr) => {
|
|
44
41
|
if (error) {
|
|
45
42
|
const errorMessage = `Error executing wsl.exe: ${error} \n ${stderr}`;
|
|
46
43
|
this.logger.error(errorMessage);
|
|
@@ -72,8 +69,8 @@ let RemoteWslConnectionProviderImpl = class RemoteWslConnectionProviderImpl {
|
|
|
72
69
|
text: 'Connecting to WSL'
|
|
73
70
|
});
|
|
74
71
|
try {
|
|
75
|
-
const connection = new
|
|
76
|
-
id:
|
|
72
|
+
const connection = new RemoteWslConnection({
|
|
73
|
+
id: generateUuid(),
|
|
77
74
|
name: options.distribution,
|
|
78
75
|
type: 'WSL',
|
|
79
76
|
distribution: options.distribution,
|
|
@@ -102,25 +99,21 @@ let RemoteWslConnectionProviderImpl = class RemoteWslConnectionProviderImpl {
|
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
101
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
(0, inversify_1.inject)(remote_connection_service_1.RemoteConnectionService),
|
|
108
|
-
tslib_1.__metadata("design:type", remote_connection_service_1.RemoteConnectionService)
|
|
102
|
+
__decorate([
|
|
103
|
+
inject(RemoteConnectionService)
|
|
109
104
|
], RemoteWslConnectionProviderImpl.prototype, "remoteConnectionService", void 0);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
tslib_1.__metadata("design:type", remote_setup_service_1.RemoteSetupService)
|
|
105
|
+
__decorate([
|
|
106
|
+
inject(RemoteSetupService)
|
|
113
107
|
], RemoteWslConnectionProviderImpl.prototype, "remoteSetup", void 0);
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
tslib_1.__metadata("design:type", core_1.MessageService)
|
|
108
|
+
__decorate([
|
|
109
|
+
inject(MessageService)
|
|
117
110
|
], RemoteWslConnectionProviderImpl.prototype, "messageService", void 0);
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
tslib_1.__metadata("design:type", Object)
|
|
111
|
+
__decorate([
|
|
112
|
+
inject(ILogger),
|
|
113
|
+
named('remote-wsl:RemoteWslConnectionProviderImpl')
|
|
122
114
|
], RemoteWslConnectionProviderImpl.prototype, "logger", void 0);
|
|
123
|
-
|
|
124
|
-
|
|
115
|
+
RemoteWslConnectionProviderImpl = __decorate([
|
|
116
|
+
injectable()
|
|
125
117
|
], RemoteWslConnectionProviderImpl);
|
|
118
|
+
export { RemoteWslConnectionProviderImpl };
|
|
126
119
|
//# sourceMappingURL=remote-wsl-connection-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-wsl-connection-provider.js","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-connection-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-wsl-connection-provider.js","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-connection-provider.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,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C,QAAQ,CAAC,UAAU,CAAC,CAAC;YAEvE,UAAU,CAAC,eAAe,CAAC,GAAG,EAAE;gBAC5B,YAAY,CAAC,OAAO,EAAE,CAAC;YAC3B,CAAC,CAAC,CAAC;YAEH,OAAO;gBACH,IAAI,EAAE,UAAU,CAAC,UAAU;aAC9B,CAAC;QACN,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;YACpE,MAAM,CAAC,CAAC;QACZ,CAAC;gBAAS,CAAC;YACP,QAAQ,CAAC,MAAM,EAAE,CAAC;QACtB,CAAC;IACL,CAAC;CACJ,CAAA;AAhGsB;IADlB,MAAM,CAAC,uBAAuB,CAAC;gFACoC;AAGjD;IADlB,MAAM,CAAC,kBAAkB,CAAC;oEACwB;AAGhC;IADlB,MAAM,CAAC,cAAc,CAAC;uEAC2B;AAG/B;IADlB,MAAM,CAAC,OAAO,CAAC;IAAE,KAAK,CAAC,4CAA4C,CAAC;+DAClC;AAZ1B,+BAA+B;IAD3C,UAAU,EAAE;GACA,+BAA+B,CAmG3C"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 TypeFox and others.
|
|
4
3
|
//
|
|
@@ -14,18 +13,16 @@
|
|
|
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 promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
23
|
-
class RemoteWslConnection {
|
|
16
|
+
import { Emitter } from '@theia/core';
|
|
17
|
+
import { Socket } from 'net';
|
|
18
|
+
import { exec, spawn } from 'child_process';
|
|
19
|
+
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
20
|
+
export class RemoteWslConnection {
|
|
24
21
|
get localPort() {
|
|
25
22
|
return this.remotePort;
|
|
26
23
|
}
|
|
27
24
|
constructor(options) {
|
|
28
|
-
this.onDidDisconnectEmitter = new
|
|
25
|
+
this.onDidDisconnectEmitter = new Emitter();
|
|
29
26
|
this.onDidDisconnect = this.onDidDisconnectEmitter.event;
|
|
30
27
|
this.id = options.id;
|
|
31
28
|
this.name = options.name;
|
|
@@ -33,15 +30,15 @@ class RemoteWslConnection {
|
|
|
33
30
|
this.distribution = options.distribution;
|
|
34
31
|
}
|
|
35
32
|
async forwardOut(socket, port) {
|
|
36
|
-
new
|
|
37
|
-
socket.pipe(new
|
|
33
|
+
new Socket().connect(port, 'localhost', () => {
|
|
34
|
+
socket.pipe(new Socket().connect(port, 'localhost'));
|
|
38
35
|
});
|
|
39
36
|
}
|
|
40
37
|
async exec(cmd, args, options) {
|
|
41
|
-
const deferred = new
|
|
38
|
+
const deferred = new Deferred();
|
|
42
39
|
const fullCommand = `wsl -d ${this.distribution} ${cmd} ${args?.join(' ') ?? ''}`;
|
|
43
40
|
try {
|
|
44
|
-
|
|
41
|
+
exec(fullCommand, { env: options?.env }, (error, stdout, stderr) => {
|
|
45
42
|
deferred.resolve({ stdout, stderr });
|
|
46
43
|
});
|
|
47
44
|
}
|
|
@@ -51,7 +48,7 @@ class RemoteWslConnection {
|
|
|
51
48
|
return deferred.promise;
|
|
52
49
|
}
|
|
53
50
|
async execPartial(cmd, tester, args, options) {
|
|
54
|
-
const deferred = new
|
|
51
|
+
const deferred = new Deferred();
|
|
55
52
|
try {
|
|
56
53
|
let cdPath = undefined;
|
|
57
54
|
if (cmd.startsWith('cd') && cmd.includes(';')) {
|
|
@@ -60,7 +57,7 @@ class RemoteWslConnection {
|
|
|
60
57
|
cmd = parts[1];
|
|
61
58
|
}
|
|
62
59
|
const fullCommand = `wsl -d ${this.distribution} ${cdPath ? `--cd ${cdPath} ${cmd}` : cmd} ${args?.join(' ') ?? ''}`;
|
|
63
|
-
const process =
|
|
60
|
+
const process = spawn(fullCommand, { env: options?.env, shell: 'powershell' });
|
|
64
61
|
let stdoutBuffer = '';
|
|
65
62
|
let stderrBuffer = '';
|
|
66
63
|
process.stdout.on('data', (data) => {
|
|
@@ -94,9 +91,9 @@ class RemoteWslConnection {
|
|
|
94
91
|
return deferred.promise;
|
|
95
92
|
}
|
|
96
93
|
async copy(localPath, remotePath) {
|
|
97
|
-
const deferred = new
|
|
94
|
+
const deferred = new Deferred();
|
|
98
95
|
const wslPath = `\\\\wsl$\\${this.distribution}\\${remotePath}`;
|
|
99
|
-
|
|
96
|
+
exec(`copy "${localPath}" "${wslPath}"`, error => {
|
|
100
97
|
if (error) {
|
|
101
98
|
deferred.reject(error);
|
|
102
99
|
}
|
|
@@ -113,5 +110,4 @@ class RemoteWslConnection {
|
|
|
113
110
|
// No special cleanup needed for WSL
|
|
114
111
|
}
|
|
115
112
|
}
|
|
116
|
-
exports.RemoteWslConnection = RemoteWslConnection;
|
|
117
113
|
//# sourceMappingURL=remote-wsl-connection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-wsl-connection.js","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-connection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-wsl-connection.js","sourceRoot":"","sources":["../../src/electron-node/remote-wsl-connection.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,KAA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AAiB,EAAE,UAAkB;QAC5C,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAQ,CAAC;QACtC,MAAM,OAAO,GAAG,aAAa,IAAI,CAAC,YAAY,KAAK,UAAU,EAAE,CAAC;QAEhE,IAAI,CAAC,SAAS,SAAS,MAAM,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE;YAC7C,IAAI,KAAK,EAAE,CAAC;gBACR,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC;iBAAM,CAAC;gBACJ,QAAQ,CAAC,OAAO,EAAE,CAAC;YACvB,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC5B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,CAAC;IAC1C,CAAC;IAED,WAAW;QACP,oCAAoC;IACxC,CAAC;CACJ"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.WslWorkspaceHandler = void 0;
|
|
4
|
-
const fs = require("@theia/core/shared/fs-extra");
|
|
5
|
-
class WslWorkspaceHandler {
|
|
1
|
+
import * as fs from '@theia/core/shared/fs-extra';
|
|
2
|
+
export class WslWorkspaceHandler {
|
|
6
3
|
canHandle(uri) {
|
|
7
4
|
return uri.scheme === 'wsl';
|
|
8
5
|
}
|
|
@@ -19,5 +16,4 @@ class WslWorkspaceHandler {
|
|
|
19
16
|
return path;
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
|
-
exports.WslWorkspaceHandler = WslWorkspaceHandler;
|
|
23
19
|
//# sourceMappingURL=wsl-workspace-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wsl-workspace-handler.js","sourceRoot":"","sources":["../../src/electron-node/wsl-workspace-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wsl-workspace-handler.js","sourceRoot":"","sources":["../../src/electron-node/wsl-workspace-handler.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAGlD,MAAM,OAAO,mBAAmB;IAC5B,SAAS,CAAC,GAAQ;QACd,OAAO,GAAG,CAAC,MAAM,KAAK,KAAK,CAAC;IAChC,CAAC;IACD,oBAAoB,CAAC,GAAQ;QACzB,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;IAEO,aAAa,CAAC,IAAY;QAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;QACnD,IAAI,KAAK,EAAE,CAAC;YACR,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;YAC3C,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAClD,OAAO,GAAG,WAAW,MAAM,WAAW,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CAEJ"}
|
package/lib/package.spec.d.ts
CHANGED
package/lib/package.spec.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/remote-wsl",
|
|
3
|
-
"version": "1.77.0-next.
|
|
3
|
+
"version": "1.77.0-next.108+30a548238",
|
|
4
4
|
"description": "Theia - Remote WSL",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.77.0-next.
|
|
7
|
-
"@theia/remote": "1.77.0-next.
|
|
8
|
-
"@theia/workspace": "1.77.0-next.
|
|
7
|
+
"@theia/core": "1.77.0-next.108+30a548238",
|
|
8
|
+
"@theia/remote": "1.77.0-next.108+30a548238",
|
|
9
|
+
"@theia/workspace": "1.77.0-next.108+30a548238",
|
|
9
10
|
"tslib": "^2.8.1"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
|
@@ -44,5 +45,12 @@
|
|
|
44
45
|
"nyc": {
|
|
45
46
|
"extends": "../../configs/nyc.json"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "30a5482386400715f42b541b4b142fd399ada7f3",
|
|
49
|
+
"exports": {
|
|
50
|
+
"./package.json": "./package.json",
|
|
51
|
+
"./lib/*.json": "./lib/*.json",
|
|
52
|
+
"./lib/*.js": "./lib/*.js",
|
|
53
|
+
"./lib/*": "./lib/*.js",
|
|
54
|
+
"./*": "./*"
|
|
55
|
+
}
|
|
48
56
|
}
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
18
|
import { RemoteRegistryContribution } from '@theia/remote/lib/electron-browser/remote-registry-contribution';
|
|
19
|
-
import { RemoteWslConnectionProvider, RemoteWslConnectionProviderPath } from '../electron-common/remote-wsl-connection-provider';
|
|
20
|
-
import { WslConnectionContribution } from './wsl-connection-contribution';
|
|
19
|
+
import { RemoteWslConnectionProvider, RemoteWslConnectionProviderPath } from '../electron-common/remote-wsl-connection-provider.js';
|
|
20
|
+
import { WslConnectionContribution } from './wsl-connection-contribution.js';
|
|
21
21
|
import { ServiceConnectionProvider } from '@theia/core/lib/browser/messaging/service-connection-provider';
|
|
22
22
|
import { WorkspaceOpenHandlerContribution } from '@theia/workspace/lib/browser/workspace-service';
|
|
23
23
|
|
|
@@ -20,8 +20,8 @@ import { WorkspaceStorageService } from '@theia/workspace/lib/browser/workspace-
|
|
|
20
20
|
import { Command, MessageService, QuickInputService, URI, isWindows, nls } from '@theia/core';
|
|
21
21
|
import { WorkspaceInput, WorkspaceOpenHandlerContribution, WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
|
|
22
22
|
import { WorkspaceServer } from '@theia/workspace/lib/common';
|
|
23
|
-
import { RemoteWslConnectionProvider, WslDistribution } from '../electron-common/remote-wsl-connection-provider';
|
|
24
|
-
import { WSL_WORKSPACE_SCHEME } from '../electron-common/wsl-workspaces';
|
|
23
|
+
import { RemoteWslConnectionProvider, WslDistribution } from '../electron-common/remote-wsl-connection-provider.js';
|
|
24
|
+
import { WSL_WORKSPACE_SCHEME } from '../electron-common/wsl-workspaces.js';
|
|
25
25
|
import { RemotePreferences } from '@theia/remote/lib/electron-common/remote-preferences';
|
|
26
26
|
|
|
27
27
|
export namespace RemoteWslCommands {
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { RemoteWslConnectionProviderImpl } from './remote-wsl-connection-provider';
|
|
19
|
-
import { RemoteWslConnectionProvider, RemoteWslConnectionProviderPath } from '../electron-common/remote-wsl-connection-provider';
|
|
18
|
+
import { RemoteWslConnectionProviderImpl } from './remote-wsl-connection-provider.js';
|
|
19
|
+
import { RemoteWslConnectionProvider, RemoteWslConnectionProviderPath } from '../electron-common/remote-wsl-connection-provider.js';
|
|
20
20
|
import { ConnectionContainerModule } from '@theia/core/lib/node/messaging/connection-container-module';
|
|
21
21
|
import { ConnectionHandler, RpcConnectionHandler } from '@theia/core';
|
|
22
|
-
import { WslWorkspaceHandler } from './wsl-workspace-handler';
|
|
22
|
+
import { WslWorkspaceHandler } from './wsl-workspace-handler.js';
|
|
23
23
|
import { WorkspaceHandlerContribution } from '@theia/workspace/lib/node/default-workspace-server';
|
|
24
24
|
|
|
25
25
|
export const wslRemoteConnectionModule = ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
18
|
-
import { RemoteWslConnectionProvider, WslDistribution, WslConnectionOptions, WslConnectionResult } from '../electron-common/remote-wsl-connection-provider';
|
|
18
|
+
import { RemoteWslConnectionProvider, WslDistribution, WslConnectionOptions, WslConnectionResult } from '../electron-common/remote-wsl-connection-provider.js';
|
|
19
19
|
import { RemoteConnectionService } from '@theia/remote/lib/electron-node/remote-connection-service';
|
|
20
20
|
import { RemoteSetupService } from '@theia/remote/lib/electron-node/setup/remote-setup-service';
|
|
21
21
|
import { exec } from 'child_process';
|
|
22
22
|
import { MessageService, generateUuid, ILogger } from '@theia/core';
|
|
23
|
-
import { RemoteWslConnection } from './remote-wsl-connection';
|
|
23
|
+
import { RemoteWslConnection } from './remote-wsl-connection.js';
|
|
24
24
|
|
|
25
25
|
@injectable()
|
|
26
26
|
export class RemoteWslConnectionProviderImpl implements RemoteWslConnectionProvider {
|