@theia/dev-container 1.67.0-next.3 → 1.67.0-next.56
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/README.md +10 -1
- package/package.json +6 -6
- package/src/electron-browser/container-info-contribution.ts +2 -2
- package/src/electron-node/dev-container-backend-module.ts +3 -0
- package/src/electron-node/devcontainer-file.ts +4 -0
- package/src/electron-node/docker-compose/compose-service.ts +79 -0
- package/src/electron-node/docker-container-service.ts +18 -3
- package/src/electron-node/remote-container-connection-provider.ts +41 -7
- package/lib/dev-container-server/dev-container-server.d.ts +0 -2
- package/lib/dev-container-server/dev-container-server.d.ts.map +0 -1
- package/lib/dev-container-server/dev-container-server.js +0 -48
- package/lib/dev-container-server/dev-container-server.js.map +0 -1
- package/lib/electron-browser/container-connection-contribution.d.ts +0 -29
- package/lib/electron-browser/container-connection-contribution.d.ts.map +0 -1
- package/lib/electron-browser/container-connection-contribution.js +0 -156
- package/lib/electron-browser/container-connection-contribution.js.map +0 -1
- package/lib/electron-browser/container-info-contribution.d.ts +0 -20
- package/lib/electron-browser/container-info-contribution.d.ts.map +0 -1
- package/lib/electron-browser/container-info-contribution.js +0 -85
- package/lib/electron-browser/container-info-contribution.js.map +0 -1
- package/lib/electron-browser/container-output-provider.d.ts +0 -8
- package/lib/electron-browser/container-output-provider.d.ts.map +0 -1
- package/lib/electron-browser/container-output-provider.js +0 -41
- package/lib/electron-browser/container-output-provider.js.map +0 -1
- package/lib/electron-browser/dev-container-frontend-module.d.ts +0 -4
- package/lib/electron-browser/dev-container-frontend-module.d.ts.map +0 -1
- package/lib/electron-browser/dev-container-frontend-module.js +0 -42
- package/lib/electron-browser/dev-container-frontend-module.js.map +0 -1
- package/lib/electron-common/container-output-provider.d.ts +0 -4
- package/lib/electron-common/container-output-provider.d.ts.map +0 -1
- package/lib/electron-common/container-output-provider.js +0 -18
- package/lib/electron-common/container-output-provider.js.map +0 -1
- package/lib/electron-common/dev-container-workspaces.d.ts +0 -3
- package/lib/electron-common/dev-container-workspaces.d.ts.map +0 -1
- package/lib/electron-common/dev-container-workspaces.js +0 -21
- package/lib/electron-common/dev-container-workspaces.js.map +0 -1
- package/lib/electron-common/remote-container-connection-provider.d.ts +0 -30
- package/lib/electron-common/remote-container-connection-provider.d.ts.map +0 -1
- package/lib/electron-common/remote-container-connection-provider.js +0 -21
- package/lib/electron-common/remote-container-connection-provider.js.map +0 -1
- package/lib/electron-node/dev-container-backend-module.d.ts +0 -5
- package/lib/electron-node/dev-container-backend-module.d.ts.map +0 -1
- package/lib/electron-node/dev-container-backend-module.js +0 -61
- package/lib/electron-node/dev-container-backend-module.js.map +0 -1
- package/lib/electron-node/dev-container-file-service.d.ts +0 -15
- package/lib/electron-node/dev-container-file-service.d.ts.map +0 -1
- package/lib/electron-node/dev-container-file-service.js +0 -105
- package/lib/electron-node/dev-container-file-service.js.map +0 -1
- package/lib/electron-node/dev-container-workspace-handler.d.ts +0 -7
- package/lib/electron-node/dev-container-workspace-handler.d.ts.map +0 -1
- package/lib/electron-node/dev-container-workspace-handler.js +0 -21
- package/lib/electron-node/dev-container-workspace-handler.js.map +0 -1
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.d.ts +0 -17
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.d.ts.map +0 -1
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.js +0 -69
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.js.map +0 -1
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.d.ts +0 -41
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.d.ts.map +0 -1
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.js +0 -209
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.js.map +0 -1
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.d.ts +0 -11
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.d.ts.map +0 -1
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.js +0 -37
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.js.map +0 -1
- package/lib/electron-node/devcontainer-contributions/variable-resolver-contribution.d.ts +0 -18
- package/lib/electron-node/devcontainer-contributions/variable-resolver-contribution.d.ts.map +0 -1
- package/lib/electron-node/devcontainer-contributions/variable-resolver-contribution.js +0 -58
- package/lib/electron-node/devcontainer-contributions/variable-resolver-contribution.js.map +0 -1
- package/lib/electron-node/devcontainer-file.d.ts +0 -350
- package/lib/electron-node/devcontainer-file.d.ts.map +0 -1
- package/lib/electron-node/devcontainer-file.js +0 -18
- package/lib/electron-node/devcontainer-file.js.map +0 -1
- package/lib/electron-node/docker-container-service.d.ts +0 -30
- package/lib/electron-node/docker-container-service.d.ts.map +0 -1
- package/lib/electron-node/docker-container-service.js +0 -107
- package/lib/electron-node/docker-container-service.js.map +0 -1
- package/lib/electron-node/remote-container-connection-provider.d.ts +0 -82
- package/lib/electron-node/remote-container-connection-provider.d.ts.map +0 -1
- package/lib/electron-node/remote-container-connection-provider.js +0 -317
- package/lib/electron-node/remote-container-connection-provider.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-info-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/container-info-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,4EAA4E,CAAC;AAEnH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,qBACa,yBAA0B,YAAW,+BAA+B,EAAE,uBAAuB,EAAE,yBAAyB;IAEjI,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iCAAiC,CAAC;IAGzE,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAGhE,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAE5D,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC;IAC3C,SAAS,CAAC,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC1D,SAAS,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAc9B,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM;IAQ3E,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAelC,OAAO,CAAC,OAAO,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS;CAK5C"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ContainerInfoContribution = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const remote_status_service_1 = require("@theia/remote/lib/electron-common/remote-status-service");
|
|
22
|
-
const remote_container_connection_provider_1 = require("../electron-common/remote-container-connection-provider");
|
|
23
|
-
const port_forwarding_service_1 = require("@theia/remote/lib/electron-browser/port-forwarding/port-forwarding-service");
|
|
24
|
-
const dev_container_workspaces_1 = require("../electron-common/dev-container-workspaces");
|
|
25
|
-
const core_1 = require("@theia/core");
|
|
26
|
-
let ContainerInfoContribution = class ContainerInfoContribution {
|
|
27
|
-
async onStart() {
|
|
28
|
-
var _a, _b;
|
|
29
|
-
const containerPort = parseInt((_a = new URLSearchParams(location.search).get('port')) !== null && _a !== void 0 ? _a : '0');
|
|
30
|
-
const containerInfo = await this.connectionProvider.getCurrentContainerInfo(containerPort);
|
|
31
|
-
this.status = await this.remoteStatusService.getStatus(containerPort);
|
|
32
|
-
this.portForwardingService.forwardedPorts = Object.entries((_b = containerInfo === null || containerInfo === void 0 ? void 0 : containerInfo.NetworkSettings.Ports) !== null && _b !== void 0 ? _b : {}).flatMap(([_, ports]) => (ports.map(port => {
|
|
33
|
-
var _a, _b;
|
|
34
|
-
return ({
|
|
35
|
-
editing: false,
|
|
36
|
-
address: (_a = port.HostIp) !== null && _a !== void 0 ? _a : '',
|
|
37
|
-
localPort: parseInt((_b = port.HostPort) !== null && _b !== void 0 ? _b : '0'),
|
|
38
|
-
origin: 'container'
|
|
39
|
-
});
|
|
40
|
-
})));
|
|
41
|
-
}
|
|
42
|
-
enhanceTitle(title, parts) {
|
|
43
|
-
if (this.status && this.status.alive) {
|
|
44
|
-
const devcontainerName = this.status.name;
|
|
45
|
-
title = `${title} [Dev Container${devcontainerName ? ': ' + devcontainerName : ''}]`;
|
|
46
|
-
}
|
|
47
|
-
return title;
|
|
48
|
-
}
|
|
49
|
-
canHandle(element) {
|
|
50
|
-
if ('query' in element) {
|
|
51
|
-
let containerFilePath = new URLSearchParams(element.query).get(dev_container_workspaces_1.DEV_CONTAINER_PATH_QUERY);
|
|
52
|
-
if (containerFilePath) {
|
|
53
|
-
if (containerFilePath.startsWith(element.path.toString())) {
|
|
54
|
-
containerFilePath = containerFilePath.replace(element.path.toString(), '');
|
|
55
|
-
}
|
|
56
|
-
this.containerFilePath = containerFilePath;
|
|
57
|
-
return 100;
|
|
58
|
-
}
|
|
59
|
-
;
|
|
60
|
-
return 0;
|
|
61
|
-
}
|
|
62
|
-
return 0;
|
|
63
|
-
}
|
|
64
|
-
getName(element) {
|
|
65
|
-
const dir = new core_1.URI(this.containerFilePath).path.dir.base;
|
|
66
|
-
return `${element.path.base} [Dev Container${dir && dir !== '.devcontainer' ? `: ${dir}` : ''}]`;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
exports.ContainerInfoContribution = ContainerInfoContribution;
|
|
70
|
-
tslib_1.__decorate([
|
|
71
|
-
(0, inversify_1.inject)(remote_container_connection_provider_1.RemoteContainerConnectionProvider),
|
|
72
|
-
tslib_1.__metadata("design:type", Object)
|
|
73
|
-
], ContainerInfoContribution.prototype, "connectionProvider", void 0);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
(0, inversify_1.inject)(port_forwarding_service_1.PortForwardingService),
|
|
76
|
-
tslib_1.__metadata("design:type", port_forwarding_service_1.PortForwardingService)
|
|
77
|
-
], ContainerInfoContribution.prototype, "portForwardingService", void 0);
|
|
78
|
-
tslib_1.__decorate([
|
|
79
|
-
(0, inversify_1.inject)(remote_status_service_1.RemoteStatusService),
|
|
80
|
-
tslib_1.__metadata("design:type", Object)
|
|
81
|
-
], ContainerInfoContribution.prototype, "remoteStatusService", void 0);
|
|
82
|
-
exports.ContainerInfoContribution = ContainerInfoContribution = tslib_1.__decorate([
|
|
83
|
-
(0, inversify_1.injectable)()
|
|
84
|
-
], ContainerInfoContribution);
|
|
85
|
-
//# sourceMappingURL=container-info-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-info-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/container-info-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,4DAAkE;AAElE,mGAA4G;AAG5G,kHAA4G;AAC5G,wHAAmH;AACnH,0FAAuF;AACvF,sCAAkC;AAG3B,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAclC,KAAK,CAAC,OAAO;;QACT,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAA,IAAI,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,mCAAI,GAAG,CAAC,CAAC;QACxF,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC;QAC3F,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAEtE,IAAI,CAAC,qBAAqB,CAAC,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,eAAe,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAC3H,KAAK,C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ED,OAAO,CAAC,OAAY;QAChB,MAAM,GAAG,GAAG,IAAI,UAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;QAC1D,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,kBAAkB,GAAG,IAAI,GAAG,KAAK,eAAe,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IACrG,CAAC;CAEJ,CAAA;AAxDY,8DAAyB;AAEf;IADlB,IAAA,kBAAM,EAAC,wEAAiC,CAAC;;qEAC+B;AAGtD;IADlB,IAAA,kBAAM,EAAC,+CAAqB,CAAC;sCACY,+CAAqB;wEAAC;AAG7C;IADlB,IAAA,kBAAM,EAAC,2CAAmB,CAAC;;sEACgC;oCARnD,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAwDrC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { OutputChannel, OutputChannelManager } from '@theia/output/lib/browser/output-channel';
|
|
2
|
-
export declare class ContainerOutputProvider implements ContainerOutputProvider {
|
|
3
|
-
protected readonly outputChannelManager: OutputChannelManager;
|
|
4
|
-
protected currentChannel?: OutputChannel;
|
|
5
|
-
openChannel(): void;
|
|
6
|
-
onRemoteOutput(output: string): void;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=container-output-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-output-provider.d.ts","sourceRoot":"","sources":["../../src/electron-browser/container-output-provider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAE/F,qBACa,uBAAwB,YAAW,uBAAuB;IAGnE,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAE9D,SAAS,CAAC,cAAc,CAAC,EAAE,aAAa,CAAC;IAEzC,WAAW,IAAI,IAAI;IAKnB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGvC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ContainerOutputProvider = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const output_channel_1 = require("@theia/output/lib/browser/output-channel");
|
|
22
|
-
let ContainerOutputProvider = class ContainerOutputProvider {
|
|
23
|
-
openChannel() {
|
|
24
|
-
this.currentChannel = this.outputChannelManager.getChannel('Container');
|
|
25
|
-
this.currentChannel.show();
|
|
26
|
-
}
|
|
27
|
-
;
|
|
28
|
-
onRemoteOutput(output) {
|
|
29
|
-
var _a;
|
|
30
|
-
(_a = this.currentChannel) === null || _a === void 0 ? void 0 : _a.appendLine(output);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.ContainerOutputProvider = ContainerOutputProvider;
|
|
34
|
-
tslib_1.__decorate([
|
|
35
|
-
(0, inversify_1.inject)(output_channel_1.OutputChannelManager),
|
|
36
|
-
tslib_1.__metadata("design:type", output_channel_1.OutputChannelManager)
|
|
37
|
-
], ContainerOutputProvider.prototype, "outputChannelManager", void 0);
|
|
38
|
-
exports.ContainerOutputProvider = ContainerOutputProvider = tslib_1.__decorate([
|
|
39
|
-
(0, inversify_1.injectable)()
|
|
40
|
-
], ContainerOutputProvider);
|
|
41
|
-
//# sourceMappingURL=container-output-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-output-provider.js","sourceRoot":"","sources":["../../src/electron-browser/container-output-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,4DAAkE;AAClE,6EAA+F;AAGxF,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAOhC,WAAW;QACP,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACxE,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;IAAA,CAAC;IAEF,cAAc,CAAC,MAAc;;QACzB,MAAA,IAAI,CAAC,cAAc,0CAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AAfY,0DAAuB;AAGb;IADlB,IAAA,kBAAM,EAAC,qCAAoB,CAAC;sCACY,qCAAoB;qEAAC;kCAHrD,uBAAuB;IADnC,IAAA,sBAAU,GAAE;GACA,uBAAuB,CAenC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-frontend-module.d.ts","sourceRoot":"","sources":["../../src/electron-browser/dev-container-frontend-module.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAW/D,wBAgBG"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// *****************************************************************************
|
|
4
|
-
// Copyright (C) 2024 Typefox and others.
|
|
5
|
-
//
|
|
6
|
-
// This program and the accompanying materials are made available under the
|
|
7
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
-
//
|
|
10
|
-
// This Source Code may also be made available under the following Secondary
|
|
11
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
-
// with the GNU Classpath Exception which is available at
|
|
14
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
15
|
-
//
|
|
16
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
17
|
-
// *****************************************************************************
|
|
18
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
19
|
-
const remote_registry_contribution_1 = require("@theia/remote/lib/electron-browser/remote-registry-contribution");
|
|
20
|
-
const remote_container_connection_provider_1 = require("../electron-common/remote-container-connection-provider");
|
|
21
|
-
const container_connection_contribution_1 = require("./container-connection-contribution");
|
|
22
|
-
const service_connection_provider_1 = require("@theia/core/lib/browser/messaging/service-connection-provider");
|
|
23
|
-
const container_output_provider_1 = require("./container-output-provider");
|
|
24
|
-
const container_info_contribution_1 = require("./container-info-contribution");
|
|
25
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
26
|
-
const workspace_service_1 = require("@theia/workspace/lib/browser/workspace-service");
|
|
27
|
-
const window_title_service_1 = require("@theia/core/lib/browser/window/window-title-service");
|
|
28
|
-
exports.default = new inversify_1.ContainerModule(bind => {
|
|
29
|
-
bind(container_connection_contribution_1.ContainerConnectionContribution).toSelf().inSingletonScope();
|
|
30
|
-
bind(remote_registry_contribution_1.RemoteRegistryContribution).toService(container_connection_contribution_1.ContainerConnectionContribution);
|
|
31
|
-
bind(workspace_service_1.WorkspaceOpenHandlerContribution).toService(container_connection_contribution_1.ContainerConnectionContribution);
|
|
32
|
-
bind(container_output_provider_1.ContainerOutputProvider).toSelf().inSingletonScope();
|
|
33
|
-
bind(remote_container_connection_provider_1.RemoteContainerConnectionProvider).toDynamicValue(ctx => {
|
|
34
|
-
const outputProvider = ctx.container.get(container_output_provider_1.ContainerOutputProvider);
|
|
35
|
-
return service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_container_connection_provider_1.RemoteContainerConnectionProviderPath, outputProvider);
|
|
36
|
-
}).inSingletonScope();
|
|
37
|
-
bind(container_info_contribution_1.ContainerInfoContribution).toSelf().inSingletonScope();
|
|
38
|
-
bind(browser_1.FrontendApplicationContribution).toService(container_info_contribution_1.ContainerInfoContribution);
|
|
39
|
-
bind(window_title_service_1.WindowTitleContribution).toService(container_info_contribution_1.ContainerInfoContribution);
|
|
40
|
-
bind(browser_1.LabelProviderContribution).toService(container_info_contribution_1.ContainerInfoContribution);
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=dev-container-frontend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-frontend-module.js","sourceRoot":"","sources":["../../src/electron-browser/dev-container-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;AAChF,4DAA+D;AAC/D,kHAA6G;AAC7G,kHAAmJ;AACnJ,2FAAsF;AACtF,+GAA0G;AAC1G,2EAAsE;AACtE,+EAA0E;AAC1E,qDAAqG;AACrG,sFAAkG;AAClG,8FAA8F;AAE9F,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,mEAA+B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAClE,IAAI,CAAC,yDAA0B,CAAC,CAAC,SAAS,CAAC,mEAA+B,CAAC,CAAC;IAC5E,IAAI,CAAC,oDAAgC,CAAC,CAAC,SAAS,CAAC,mEAA+B,CAAC,CAAC;IAElF,IAAI,CAAC,mDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAE1D,IAAI,CAAC,wEAAiC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACzD,MAAM,cAAc,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAAuB,CAAC,CAAC;QAClE,OAAO,uDAAyB,CAAC,gBAAgB,CAAoC,GAAG,CAAC,SAAS,EAAE,4EAAqC,EAAE,cAAc,CAAC,CAAC;IAC/J,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAEtB,IAAI,CAAC,uDAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,yCAA+B,CAAC,CAAC,SAAS,CAAC,uDAAyB,CAAC,CAAC;IAC3E,IAAI,CAAC,8CAAuB,CAAC,CAAC,SAAS,CAAC,uDAAyB,CAAC,CAAC;IACnE,IAAI,CAAC,mCAAyB,CAAC,CAAC,SAAS,CAAC,uDAAyB,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-output-provider.d.ts","sourceRoot":"","sources":["../../src/electron-common/container-output-provider.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,uBAAuB;IACpC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
//# sourceMappingURL=container-output-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container-output-provider.js","sourceRoot":"","sources":["../../src/electron-common/container-output-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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-workspaces.d.ts","sourceRoot":"","sources":["../../src/electron-common/dev-container-workspaces.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,8BAA8B,iBAAiB,CAAC;AAC7D,eAAO,MAAM,wBAAwB,kBAAkB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DEV_CONTAINER_PATH_QUERY = exports.DEV_CONTAINER_WORKSPACE_SCHEME = void 0;
|
|
19
|
-
exports.DEV_CONTAINER_WORKSPACE_SCHEME = 'devcontainer';
|
|
20
|
-
exports.DEV_CONTAINER_PATH_QUERY = 'containerfile';
|
|
21
|
-
//# sourceMappingURL=dev-container-workspaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-workspaces.js","sourceRoot":"","sources":["../../src/electron-common/dev-container-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;;;AAEnE,QAAA,8BAA8B,GAAG,cAAc,CAAC;AAChD,QAAA,wBAAwB,GAAG,eAAe,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { RpcServer } from '@theia/core';
|
|
2
|
-
import { ContainerOutputProvider } from './container-output-provider';
|
|
3
|
-
import type { ContainerInspectInfo } from 'dockerode';
|
|
4
|
-
export declare const RemoteContainerConnectionProviderPath = "/remote/container";
|
|
5
|
-
export declare const RemoteContainerConnectionProvider: unique symbol;
|
|
6
|
-
export interface ContainerConnectionOptions {
|
|
7
|
-
nodeDownloadTemplate?: string;
|
|
8
|
-
lastContainerInfo?: LastContainerInfo;
|
|
9
|
-
devcontainerFile: string;
|
|
10
|
-
workspacePath?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface LastContainerInfo {
|
|
13
|
-
id: string;
|
|
14
|
-
lastUsed: number;
|
|
15
|
-
}
|
|
16
|
-
export interface ContainerConnectionResult {
|
|
17
|
-
port: string;
|
|
18
|
-
workspacePath: string;
|
|
19
|
-
containerId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface DevContainerFile {
|
|
22
|
-
name: string;
|
|
23
|
-
path: string;
|
|
24
|
-
}
|
|
25
|
-
export interface RemoteContainerConnectionProvider extends RpcServer<ContainerOutputProvider> {
|
|
26
|
-
connectToContainer(options: ContainerConnectionOptions): Promise<ContainerConnectionResult>;
|
|
27
|
-
getDevContainerFiles(workspacePath: string): Promise<DevContainerFile[]>;
|
|
28
|
-
getCurrentContainerInfo(port: number): Promise<ContainerInspectInfo | undefined>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=remote-container-connection-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-container-connection-provider.d.ts","sourceRoot":"","sources":["../../src/electron-common/remote-container-connection-provider.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAGtD,eAAO,MAAM,qCAAqC,sBAAsB,CAAC;AAEzE,eAAO,MAAM,iCAAiC,eAA8C,CAAC;AAE7F,MAAM,WAAW,0BAA0B;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iCAAkC,SAAQ,SAAS,CAAC,uBAAuB,CAAC;IACzF,kBAAkB,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC5F,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACzE,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAC;CACpF"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.RemoteContainerConnectionProvider = exports.RemoteContainerConnectionProviderPath = void 0;
|
|
18
|
-
// *****************************************************************************
|
|
19
|
-
exports.RemoteContainerConnectionProviderPath = '/remote/container';
|
|
20
|
-
exports.RemoteContainerConnectionProvider = Symbol('RemoteContainerConnectionProvider');
|
|
21
|
-
//# sourceMappingURL=remote-container-connection-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-container-connection-provider.js","sourceRoot":"","sources":["../../src/electron-common/remote-container-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;;;AAMhF,gFAAgF;AACnE,QAAA,qCAAqC,GAAG,mBAAmB,CAAC;AAE5D,QAAA,iCAAiC,GAAG,MAAM,CAAC,mCAAmC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-backend-module.d.ts","sourceRoot":"","sources":["../../src/electron-node/dev-container-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAgB/D,eAAO,MAAM,sBAAsB,iBAkBjC,CAAC;;AAEH,wBAaG"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.remoteConnectionModule = void 0;
|
|
19
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
-
const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
|
|
21
|
-
const remote_container_connection_provider_1 = require("./remote-container-connection-provider");
|
|
22
|
-
const remote_container_connection_provider_2 = require("../electron-common/remote-container-connection-provider");
|
|
23
|
-
const docker_container_service_1 = require("./docker-container-service");
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
const main_container_creation_contributions_1 = require("./devcontainer-contributions/main-container-creation-contributions");
|
|
26
|
-
const dev_container_file_service_1 = require("./dev-container-file-service");
|
|
27
|
-
const cli_enhancing_creation_contributions_1 = require("./devcontainer-contributions/cli-enhancing-creation-contributions");
|
|
28
|
-
const remote_cli_contribution_1 = require("@theia/core/lib/node/remote/remote-cli-contribution");
|
|
29
|
-
const profile_file_modification_contribution_1 = require("./devcontainer-contributions/profile-file-modification-contribution");
|
|
30
|
-
const dev_container_workspace_handler_1 = require("./dev-container-workspace-handler");
|
|
31
|
-
const default_workspace_server_1 = require("@theia/workspace/lib/node/default-workspace-server");
|
|
32
|
-
const variable_resolver_contribution_1 = require("./devcontainer-contributions/variable-resolver-contribution");
|
|
33
|
-
exports.remoteConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
34
|
-
(0, core_1.bindContributionProvider)(bind, docker_container_service_1.ContainerCreationContribution);
|
|
35
|
-
(0, main_container_creation_contributions_1.registerContainerCreationContributions)(bind);
|
|
36
|
-
(0, cli_enhancing_creation_contributions_1.registerTheiaStartOptionsContributions)(bind);
|
|
37
|
-
(0, core_1.bindContributionProvider)(bind, variable_resolver_contribution_1.VariableResolverContribution);
|
|
38
|
-
(0, variable_resolver_contribution_1.registerVariableResolverContributions)(bind);
|
|
39
|
-
bind(profile_file_modification_contribution_1.ProfileFileModificationContribution).toSelf().inSingletonScope();
|
|
40
|
-
bind(docker_container_service_1.ContainerCreationContribution).toService(profile_file_modification_contribution_1.ProfileFileModificationContribution);
|
|
41
|
-
bind(remote_container_connection_provider_1.DevContainerConnectionProvider).toSelf().inSingletonScope();
|
|
42
|
-
bind(remote_container_connection_provider_2.RemoteContainerConnectionProvider).toService(remote_container_connection_provider_1.DevContainerConnectionProvider);
|
|
43
|
-
bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.RpcConnectionHandler(remote_container_connection_provider_2.RemoteContainerConnectionProviderPath, client => {
|
|
44
|
-
const server = ctx.container.get(remote_container_connection_provider_2.RemoteContainerConnectionProvider);
|
|
45
|
-
server.setClient(client);
|
|
46
|
-
client.onDidCloseConnection(() => server.dispose());
|
|
47
|
-
return server;
|
|
48
|
-
}));
|
|
49
|
-
});
|
|
50
|
-
exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
51
|
-
bind(docker_container_service_1.DockerContainerService).toSelf().inSingletonScope();
|
|
52
|
-
bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(exports.remoteConnectionModule);
|
|
53
|
-
bind(dev_container_file_service_1.DevContainerFileService).toSelf().inSingletonScope();
|
|
54
|
-
bind(cli_enhancing_creation_contributions_1.ExtensionsContribution).toSelf().inSingletonScope();
|
|
55
|
-
bind(cli_enhancing_creation_contributions_1.SettingsContribution).toSelf().inSingletonScope();
|
|
56
|
-
bind(remote_cli_contribution_1.RemoteCliContribution).toService(cli_enhancing_creation_contributions_1.ExtensionsContribution);
|
|
57
|
-
bind(remote_cli_contribution_1.RemoteCliContribution).toService(cli_enhancing_creation_contributions_1.SettingsContribution);
|
|
58
|
-
bind(dev_container_workspace_handler_1.DevContainerWorkspaceHandler).toSelf().inSingletonScope();
|
|
59
|
-
bind(default_workspace_server_1.WorkspaceHandlerContribution).toService(dev_container_workspace_handler_1.DevContainerWorkspaceHandler);
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=dev-container-backend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-backend-module.js","sourceRoot":"","sources":["../../src/electron-node/dev-container-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,4DAA+D;AAC/D,4GAAuG;AACvG,iGAAwF;AACxF,kHAAmJ;AACnJ,yEAAmG;AACnG,sCAAgG;AAChG,8HAA4H;AAC5H,6EAAuE;AAEvE,4HAAyK;AACzK,iGAA4F;AAC5F,gIAA0H;AAC1H,uFAAiF;AACjF,iGAAkG;AAClG,gHAAkJ;AAErI,QAAA,sBAAsB,GAAG,uDAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACpG,IAAA,+BAAwB,EAAC,IAAI,EAAE,wDAA6B,CAAC,CAAC;IAC9D,IAAA,8EAAsC,EAAC,IAAI,CAAC,CAAC;IAC7C,IAAA,6EAAsC,EAAC,IAAI,CAAC,CAAC;IAC7C,IAAA,+BAAwB,EAAC,IAAI,EAAE,6DAA4B,CAAC,CAAC;IAC7D,IAAA,sEAAqC,EAAC,IAAI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qB,CAAC,CAAC,SAAS,CAAC,6DAAsB,CAAC,CAAC;IAC9D,IAAI,CAAC,+CAAqB,CAAC,CAAC,SAAS,CAAC,2DAAoB,CAAC,CAAC;IAE5D,IAAI,CAAC,8DAA4B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC/D,IAAI,CAAC,uDAA4B,CAAC,CAAC,SAAS,CAAC,8DAA4B,CAAC,CAAC;AAC/E,CAAC,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { WorkspaceServer } from '@theia/workspace/lib/common';
|
|
2
|
-
import { DevContainerFile } from '../electron-common/remote-container-connection-provider';
|
|
3
|
-
import { DevContainerConfiguration } from './devcontainer-file';
|
|
4
|
-
import { ContributionProvider } from '@theia/core';
|
|
5
|
-
import { VariableResolverContribution } from './devcontainer-contributions/variable-resolver-contribution';
|
|
6
|
-
export declare class DevContainerFileService {
|
|
7
|
-
protected readonly workspaceServer: WorkspaceServer;
|
|
8
|
-
protected readonly variableResolverContributions: ContributionProvider<VariableResolverContribution>;
|
|
9
|
-
protected resolveVariable(value: string): string;
|
|
10
|
-
protected resolveVariablesRecursively<T>(obj: T): T;
|
|
11
|
-
getConfiguration(path: string): Promise<DevContainerConfiguration>;
|
|
12
|
-
getAvailableFiles(workspace: string): Promise<DevContainerFile[]>;
|
|
13
|
-
protected searchForDevontainerJsonFiles(directory: string, depth: number): Promise<string[]>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=dev-container-file-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-file-service.d.ts","sourceRoot":"","sources":["../../src/electron-node/dev-container-file-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,EAAE,oBAAoB,EAAa,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,6DAA6D,CAAC;AAI3G,qBACa,uBAAuB;IAGhC,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAGpD,SAAS,CAAC,QAAQ,CAAC,6BAA6B,EAAE,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;IAErG,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAahD,SAAS,CAAC,2BAA2B,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC;IAe7C,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAWlE,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;cAUvD,6BAA6B,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAgBrG"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 Typefox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DevContainerFileService = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const common_1 = require("@theia/workspace/lib/common");
|
|
22
|
-
const jsonc_parser_1 = require("jsonc-parser");
|
|
23
|
-
const fs = require("@theia/core/shared/fs-extra");
|
|
24
|
-
const core_1 = require("@theia/core");
|
|
25
|
-
const variable_resolver_contribution_1 = require("./devcontainer-contributions/variable-resolver-contribution");
|
|
26
|
-
const VARIABLE_REGEX = /^\$\{(.+?)(?::(.+))?\}$/;
|
|
27
|
-
let DevContainerFileService = class DevContainerFileService {
|
|
28
|
-
resolveVariable(value) {
|
|
29
|
-
const match = value.match(VARIABLE_REGEX);
|
|
30
|
-
if (match) {
|
|
31
|
-
const [, type, variable] = match;
|
|
32
|
-
for (const contribution of this.variableResolverContributions.getContributions()) {
|
|
33
|
-
if (contribution.canResolve(type)) {
|
|
34
|
-
return contribution.resolve(variable !== null && variable !== void 0 ? variable : type);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
resolveVariablesRecursively(obj) {
|
|
41
|
-
if (typeof obj === 'string') {
|
|
42
|
-
return this.resolveVariable(obj);
|
|
43
|
-
}
|
|
44
|
-
else if (Array.isArray(obj)) {
|
|
45
|
-
return obj.map(item => this.resolveVariablesRecursively(item));
|
|
46
|
-
}
|
|
47
|
-
else if (obj && typeof obj === 'object') {
|
|
48
|
-
const newObj = {};
|
|
49
|
-
for (const [key, value] of Object.entries(obj)) {
|
|
50
|
-
newObj[key] = this.resolveVariablesRecursively(value);
|
|
51
|
-
}
|
|
52
|
-
return newObj;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
async getConfiguration(path) {
|
|
57
|
-
let configuration = (0, jsonc_parser_1.parse)(await fs.readFile(path, 'utf-8').catch(() => '0'));
|
|
58
|
-
if (!configuration) {
|
|
59
|
-
throw new Error(`devcontainer file ${path} could not be parsed`);
|
|
60
|
-
}
|
|
61
|
-
configuration = this.resolveVariablesRecursively(configuration);
|
|
62
|
-
configuration.location = path;
|
|
63
|
-
return configuration;
|
|
64
|
-
}
|
|
65
|
-
async getAvailableFiles(workspace) {
|
|
66
|
-
const devcontainerPath = new core_1.URI(workspace).path.join('.devcontainer').fsPath();
|
|
67
|
-
return (await this.searchForDevontainerJsonFiles(devcontainerPath, 1)).map(file => {
|
|
68
|
-
var _a;
|
|
69
|
-
return ({
|
|
70
|
-
name: (_a = (0, jsonc_parser_1.parse)(fs.readFileSync(file, 'utf-8')).name) !== null && _a !== void 0 ? _a : 'devcontainer',
|
|
71
|
-
path: file
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
async searchForDevontainerJsonFiles(directory, depth) {
|
|
76
|
-
if (depth < 0 || !await fs.pathExists(directory)) {
|
|
77
|
-
return [];
|
|
78
|
-
}
|
|
79
|
-
const filesPaths = (await fs.readdir(directory)).map(file => new core_1.Path(directory).join(file).fsPath());
|
|
80
|
-
const devcontainerFiles = [];
|
|
81
|
-
for (const file of filesPaths) {
|
|
82
|
-
if (file.endsWith('devcontainer.json')) {
|
|
83
|
-
devcontainerFiles.push(file);
|
|
84
|
-
}
|
|
85
|
-
else if ((await fs.stat(file)).isDirectory()) {
|
|
86
|
-
devcontainerFiles.push(...await this.searchForDevontainerJsonFiles(file, depth - 1));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return devcontainerFiles;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
exports.DevContainerFileService = DevContainerFileService;
|
|
93
|
-
tslib_1.__decorate([
|
|
94
|
-
(0, inversify_1.inject)(common_1.WorkspaceServer),
|
|
95
|
-
tslib_1.__metadata("design:type", Object)
|
|
96
|
-
], DevContainerFileService.prototype, "workspaceServer", void 0);
|
|
97
|
-
tslib_1.__decorate([
|
|
98
|
-
(0, inversify_1.inject)(core_1.ContributionProvider),
|
|
99
|
-
(0, inversify_1.named)(variable_resolver_contribution_1.VariableResolverContribution),
|
|
100
|
-
tslib_1.__metadata("design:type", Object)
|
|
101
|
-
], DevContainerFileService.prototype, "variableResolverContributions", void 0);
|
|
102
|
-
exports.DevContainerFileService = DevContainerFileService = tslib_1.__decorate([
|
|
103
|
-
(0, inversify_1.injectable)()
|
|
104
|
-
], DevContainerFileService);
|
|
105
|
-
//# sourceMappingURL=dev-container-file-service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-file-service.js","sourceRoot":"","sources":["../../src/electron-node/dev-container-file-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,4DAAyE;AACzE,wDAA8D;AAG9D,+CAAqC;AACrC,kDAAkD;AAClD,sCAA8D;AAC9D,gHAA2G;AAE3G,MAAM,cAAc,GAAG,yBAAyB,CAAC;AAG1C,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAQtB,eAAe,CAAC,KAAa;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC1C,IAAI,KAAK,EAAE,CAAC;YACR,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;YACjC,KAAK,MAAM,YAAY,IAAI,IAAI,CAAC,6BAA6B,CAAC,gBAAgB,EAAE,EAAE,CAAC;gBAC/E,IAAI,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;oBAChC,OAAO,YAAY,CAAC,OAAO,CAAC,QAAQ,aAAR,QAAQ,cAAR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,iBAAiB,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,6BAA6B,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YACzF,CAAC;QACL,CAAC;QACD,OAAO,iBAAiB,CAAC;IAC7B,CAAC;CACJ,CAAA;AAzEY,0DAAuB;AAGb;IADlB,IAAA,kBAAM,EAAC,wBAAe,CAAC;;gEAC4B;AAGjC;IADlB,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,6DAA4B,CAAC;;8EACmC;kCAN5F,uBAAuB;IADnC,IAAA,sBAAU,GAAE;GACA,uBAAuB,CAyEnC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { URI } from '@theia/core';
|
|
2
|
-
import { WorkspaceHandlerContribution } from '@theia/workspace/lib/node/default-workspace-server';
|
|
3
|
-
export declare class DevContainerWorkspaceHandler implements WorkspaceHandlerContribution {
|
|
4
|
-
canHandle(uri: URI): boolean;
|
|
5
|
-
workspaceStillExists(uri: URI): Promise<boolean>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=dev-container-workspace-handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-workspace-handler.d.ts","sourceRoot":"","sources":["../../src/electron-node/dev-container-workspace-handler.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAGlC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAGlG,qBACa,4BAA6B,YAAW,4BAA4B;IAE7E,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAItB,oBAAoB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;CAIzD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DevContainerWorkspaceHandler = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const fs = require("@theia/core/shared/fs-extra");
|
|
6
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
7
|
-
const dev_container_workspaces_1 = require("../electron-common/dev-container-workspaces");
|
|
8
|
-
let DevContainerWorkspaceHandler = class DevContainerWorkspaceHandler {
|
|
9
|
-
canHandle(uri) {
|
|
10
|
-
return uri.scheme === dev_container_workspaces_1.DEV_CONTAINER_WORKSPACE_SCHEME;
|
|
11
|
-
}
|
|
12
|
-
async workspaceStillExists(uri) {
|
|
13
|
-
const devcontainerFile = new URLSearchParams(uri.query).get(dev_container_workspaces_1.DEV_CONTAINER_PATH_QUERY);
|
|
14
|
-
return await fs.pathExists(uri.path.fsPath()) && !!devcontainerFile && fs.pathExists(devcontainerFile);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
exports.DevContainerWorkspaceHandler = DevContainerWorkspaceHandler;
|
|
18
|
-
exports.DevContainerWorkspaceHandler = DevContainerWorkspaceHandler = tslib_1.__decorate([
|
|
19
|
-
(0, inversify_1.injectable)()
|
|
20
|
-
], DevContainerWorkspaceHandler);
|
|
21
|
-
//# sourceMappingURL=dev-container-workspace-handler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-container-workspace-handler.js","sourceRoot":"","sources":["../../src/electron-node/dev-container-workspace-handler.ts"],"names":[],"mappings":";;;;AAgBA,kDAAkD;AAClD,4DAA0D;AAE1D,0FAAuH;AAGhH,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAErC,SAAS,CAAC,GAAQ;QACd,OAAO,GAAG,CAAC,MAAM,KAAK,yDAA8B,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,GAAQ;QAC/B,MAAM,gBAAgB,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,mDAAwB,CAAC,CAAC;QACtF,OAAO,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,gBAAgB,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC3G,CAAC;CACJ,CAAA;AAVY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CAUxC"}
|