@theia/dev-container 1.46.0-next.241
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 +44 -0
- package/lib/dev-container-server/dev-container-server.d.ts +2 -0
- package/lib/dev-container-server/dev-container-server.d.ts.map +1 -0
- package/lib/dev-container-server/dev-container-server.js +48 -0
- package/lib/dev-container-server/dev-container-server.js.map +1 -0
- package/lib/electron-browser/container-connection-contribution.d.ts +28 -0
- package/lib/electron-browser/container-connection-contribution.d.ts.map +1 -0
- package/lib/electron-browser/container-connection-contribution.js +147 -0
- package/lib/electron-browser/container-connection-contribution.js.map +1 -0
- package/lib/electron-browser/container-info-contribution.d.ts +11 -0
- package/lib/electron-browser/container-info-contribution.d.ts.map +1 -0
- package/lib/electron-browser/container-info-contribution.js +51 -0
- package/lib/electron-browser/container-info-contribution.js.map +1 -0
- package/lib/electron-browser/container-output-provider.d.ts +8 -0
- package/lib/electron-browser/container-output-provider.d.ts.map +1 -0
- package/lib/electron-browser/container-output-provider.js +41 -0
- package/lib/electron-browser/container-output-provider.js.map +1 -0
- package/lib/electron-browser/dev-container-frontend-module.d.ts +4 -0
- package/lib/electron-browser/dev-container-frontend-module.d.ts.map +1 -0
- package/lib/electron-browser/dev-container-frontend-module.js +39 -0
- package/lib/electron-browser/dev-container-frontend-module.js.map +1 -0
- package/lib/electron-common/container-output-provider.d.ts +4 -0
- package/lib/electron-common/container-output-provider.d.ts.map +1 -0
- package/lib/electron-common/container-output-provider.js +18 -0
- package/lib/electron-common/container-output-provider.js.map +1 -0
- package/lib/electron-common/dev-container-workspaces.d.ts +3 -0
- package/lib/electron-common/dev-container-workspaces.d.ts.map +1 -0
- package/lib/electron-common/dev-container-workspaces.js +21 -0
- package/lib/electron-common/dev-container-workspaces.js.map +1 -0
- package/lib/electron-common/remote-container-connection-provider.d.ts +30 -0
- package/lib/electron-common/remote-container-connection-provider.d.ts.map +1 -0
- package/lib/electron-common/remote-container-connection-provider.js +21 -0
- package/lib/electron-common/remote-container-connection-provider.js.map +1 -0
- package/lib/electron-node/dev-container-backend-module.d.ts +5 -0
- package/lib/electron-node/dev-container-backend-module.d.ts.map +1 -0
- package/lib/electron-node/dev-container-backend-module.js +58 -0
- package/lib/electron-node/dev-container-backend-module.js.map +1 -0
- package/lib/electron-node/dev-container-file-service.d.ts +10 -0
- package/lib/electron-node/dev-container-file-service.d.ts.map +1 -0
- package/lib/electron-node/dev-container-file-service.js +69 -0
- package/lib/electron-node/dev-container-file-service.js.map +1 -0
- package/lib/electron-node/dev-container-workspace-handler.d.ts +7 -0
- package/lib/electron-node/dev-container-workspace-handler.d.ts.map +1 -0
- package/lib/electron-node/dev-container-workspace-handler.js +21 -0
- package/lib/electron-node/dev-container-workspace-handler.js.map +1 -0
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.d.ts +17 -0
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.d.ts.map +1 -0
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.js +69 -0
- package/lib/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.js.map +1 -0
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.d.ts +38 -0
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.d.ts.map +1 -0
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.js +192 -0
- package/lib/electron-node/devcontainer-contributions/main-container-creation-contributions.js.map +1 -0
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.d.ts +11 -0
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.d.ts.map +1 -0
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.js +37 -0
- package/lib/electron-node/devcontainer-contributions/profile-file-modification-contribution.js.map +1 -0
- package/lib/electron-node/devcontainer-file.d.ts +350 -0
- package/lib/electron-node/devcontainer-file.d.ts.map +1 -0
- package/lib/electron-node/devcontainer-file.js +18 -0
- package/lib/electron-node/devcontainer-file.js.map +1 -0
- package/lib/electron-node/docker-container-service.d.ts +29 -0
- package/lib/electron-node/docker-container-service.d.ts.map +1 -0
- package/lib/electron-node/docker-container-service.js +106 -0
- package/lib/electron-node/docker-container-service.js.map +1 -0
- package/lib/electron-node/remote-container-connection-provider.d.ts +79 -0
- package/lib/electron-node/remote-container-connection-provider.d.ts.map +1 -0
- package/lib/electron-node/remote-container-connection-provider.js +260 -0
- package/lib/electron-node/remote-container-connection-provider.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +26 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +55 -0
- package/src/dev-container-server/dev-container-server.ts +53 -0
- package/src/electron-browser/container-connection-contribution.ts +151 -0
- package/src/electron-browser/container-info-contribution.ts +47 -0
- package/src/electron-browser/container-output-provider.ts +36 -0
- package/src/electron-browser/dev-container-frontend-module.ts +40 -0
- package/src/electron-common/container-output-provider.ts +19 -0
- package/src/electron-common/dev-container-workspaces.ts +18 -0
- package/src/electron-common/remote-container-connection-provider.ts +52 -0
- package/src/electron-node/dev-container-backend-module.ts +63 -0
- package/src/electron-node/dev-container-file-service.ts +67 -0
- package/src/electron-node/dev-container-workspace-handler.ts +33 -0
- package/src/electron-node/devcontainer-contributions/cli-enhancing-creation-contributions.ts +68 -0
- package/src/electron-node/devcontainer-contributions/main-container-creation-contributions.ts +196 -0
- package/src/electron-node/devcontainer-contributions/profile-file-modification-contribution.ts +35 -0
- package/src/electron-node/devcontainer-file.ts +411 -0
- package/src/electron-node/docker-container-service.ts +131 -0
- package/src/electron-node/remote-container-connection-provider.ts +315 -0
- package/src/package.spec.ts +28 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<div align='center'>
|
|
2
|
+
|
|
3
|
+
<br />
|
|
4
|
+
|
|
5
|
+
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
+
|
|
7
|
+
<h2>ECLIPSE THEIA - DEV-CONTAINER EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
The `@theia/dev-container` extension provides functionality to create, start and connect to development containers similiar to the
|
|
16
|
+
[vscode Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
|
|
17
|
+
|
|
18
|
+
The full devcontainer.json Schema can be found [here](https://containers.dev/implementors/json_reference/).
|
|
19
|
+
Currently only a small number of configuration file properties are implemented. Those include the following:
|
|
20
|
+
|
|
21
|
+
- name
|
|
22
|
+
- Image
|
|
23
|
+
- dockerfile/build.dockerfile
|
|
24
|
+
- build.context
|
|
25
|
+
- location
|
|
26
|
+
- forwardPorts
|
|
27
|
+
- mounts
|
|
28
|
+
|
|
29
|
+
see `main-container-creation-contributions.ts` for how to implementations or how to implement additional ones.
|
|
30
|
+
|
|
31
|
+
## Additional Information
|
|
32
|
+
|
|
33
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
34
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
39
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
40
|
+
|
|
41
|
+
## Trademark
|
|
42
|
+
|
|
43
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
44
|
+
<https://www.eclipse.org/theia>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-container-server.d.ts","sourceRoot":"","sources":["../../src/dev-container-server/dev-container-server.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
const net_1 = require("net");
|
|
19
|
+
const process_1 = require("process");
|
|
20
|
+
/**
|
|
21
|
+
* this node.js Program is supposed to be executed by an docker exec session inside a docker container.
|
|
22
|
+
* It uses a tty session to listen on stdin and send on stdout all communication with the theia backend running inside the container.
|
|
23
|
+
*/
|
|
24
|
+
let backendPort = undefined;
|
|
25
|
+
process_1.argv.slice(2).forEach(arg => {
|
|
26
|
+
if (arg.startsWith('-target-port')) {
|
|
27
|
+
backendPort = parseInt(arg.split('=')[1]);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
if (!backendPort) {
|
|
31
|
+
throw new Error('please start with -target-port={port number}');
|
|
32
|
+
}
|
|
33
|
+
if (process_1.stdin.isTTY) {
|
|
34
|
+
process_1.stdin.setRawMode(true);
|
|
35
|
+
}
|
|
36
|
+
const connection = (0, net_1.createConnection)(backendPort, '0.0.0.0');
|
|
37
|
+
connection.pipe(process_1.stdout);
|
|
38
|
+
process_1.stdin.pipe(connection);
|
|
39
|
+
connection.on('error', error => {
|
|
40
|
+
console.error('connection error', error);
|
|
41
|
+
});
|
|
42
|
+
connection.on('close', () => {
|
|
43
|
+
console.log('connection closed');
|
|
44
|
+
process.exit(0);
|
|
45
|
+
});
|
|
46
|
+
// keep the process running
|
|
47
|
+
setInterval(() => { }, 1 << 30);
|
|
48
|
+
//# sourceMappingURL=dev-container-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-container-server.js","sourceRoot":"","sources":["../../src/dev-container-server/dev-container-server.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,6BAAuC;AACvC,qCAA8C;AAE9C;;;GAGG;AAEH,IAAI,WAAW,GAAuB,SAAS,CAAC;AAChD,cAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;IACxB,IAAI,GAAG,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;QACjC,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,WAAW,EAAE,CAAC;IACf,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;AACpE,CAAC;AACD,IAAI,eAAK,CAAC,KAAK,EAAE,CAAC;IACd,eAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC;AACD,MAAM,UAAU,GAAG,IAAA,sBAAgB,EAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAE5D,UAAU,CAAC,IAAI,CAAC,gBAAM,CAAC,CAAC;AACxB,eAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAEvB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;IAC3B,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;IACxB,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACjC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AAEH,2BAA2B;AAC3B,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AbstractRemoteRegistryContribution, RemoteRegistry } from '@theia/remote/lib/electron-browser/remote-registry-contribution';
|
|
2
|
+
import { DevContainerFile, RemoteContainerConnectionProvider } from '../electron-common/remote-container-connection-provider';
|
|
3
|
+
import { RemotePreferences } from '@theia/remote/lib/electron-browser/remote-preferences';
|
|
4
|
+
import { WorkspaceStorageService } from '@theia/workspace/lib/browser/workspace-storage-service';
|
|
5
|
+
import { Command, MaybePromise, QuickInputService, URI } from '@theia/core';
|
|
6
|
+
import { WorkspaceInput, WorkspaceOpenHandlerContribution, WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
|
|
7
|
+
import { ContainerOutputProvider } from './container-output-provider';
|
|
8
|
+
import { WorkspaceServer } from '@theia/workspace/lib/common';
|
|
9
|
+
export declare namespace RemoteContainerCommands {
|
|
10
|
+
const REOPEN_IN_CONTAINER: Command;
|
|
11
|
+
}
|
|
12
|
+
export declare class ContainerConnectionContribution extends AbstractRemoteRegistryContribution implements WorkspaceOpenHandlerContribution {
|
|
13
|
+
protected readonly connectionProvider: RemoteContainerConnectionProvider;
|
|
14
|
+
protected readonly remotePreferences: RemotePreferences;
|
|
15
|
+
protected readonly workspaceStorageService: WorkspaceStorageService;
|
|
16
|
+
protected readonly workspaceService: WorkspaceService;
|
|
17
|
+
protected readonly workspaceServer: WorkspaceServer;
|
|
18
|
+
protected readonly quickInputService: QuickInputService;
|
|
19
|
+
protected readonly containerOutputProvider: ContainerOutputProvider;
|
|
20
|
+
registerRemoteCommands(registry: RemoteRegistry): void;
|
|
21
|
+
canHandle(uri: URI): MaybePromise<boolean>;
|
|
22
|
+
openWorkspace(uri: URI, options?: WorkspaceInput | undefined): Promise<void>;
|
|
23
|
+
getWorkspaceLabel(uri: URI): Promise<string | undefined>;
|
|
24
|
+
openInContainer(): Promise<void>;
|
|
25
|
+
doOpenInContainer(devcontainerFile: DevContainerFile, workspaceUri?: string): Promise<void>;
|
|
26
|
+
getOrSelectDevcontainerFile(): Promise<DevContainerFile | undefined>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=container-connection-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-connection-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/container-connection-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kCAAkC,EAAE,cAAc,EAAE,MAAM,iEAAiE,CAAC;AACrI,OAAO,EAAE,gBAAgB,EAAqB,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AACjJ,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACpI,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,mBAAmB,SAIC,CAAC;CACrC;AAGD,qBACa,+BAAgC,SAAQ,kCAAmC,YAAW,gCAAgC;IAG/H,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iCAAiC,CAAC;IAGzE,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAGxD,SAAS,CAAC,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAGpE,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAGtD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAGpD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAGxD,SAAS,CAAC,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAEpE,sBAAsB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAMtD,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC;IAIpC,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB5E,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAUxD,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAQhC,iBAAiB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB3F,2BAA2B,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;CAqB7E"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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.ContainerConnectionContribution = exports.RemoteContainerCommands = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const remote_registry_contribution_1 = require("@theia/remote/lib/electron-browser/remote-registry-contribution");
|
|
22
|
+
const remote_container_connection_provider_1 = require("../electron-common/remote-container-connection-provider");
|
|
23
|
+
const remote_preferences_1 = require("@theia/remote/lib/electron-browser/remote-preferences");
|
|
24
|
+
const workspace_storage_service_1 = require("@theia/workspace/lib/browser/workspace-storage-service");
|
|
25
|
+
const core_1 = require("@theia/core");
|
|
26
|
+
const workspace_service_1 = require("@theia/workspace/lib/browser/workspace-service");
|
|
27
|
+
const container_output_provider_1 = require("./container-output-provider");
|
|
28
|
+
const common_1 = require("@theia/workspace/lib/common");
|
|
29
|
+
const dev_container_workspaces_1 = require("../electron-common/dev-container-workspaces");
|
|
30
|
+
var RemoteContainerCommands;
|
|
31
|
+
(function (RemoteContainerCommands) {
|
|
32
|
+
RemoteContainerCommands.REOPEN_IN_CONTAINER = core_1.Command.toLocalizedCommand({
|
|
33
|
+
id: 'dev-container:reopen-in-container',
|
|
34
|
+
label: 'Reopen in Container',
|
|
35
|
+
category: 'Dev Container'
|
|
36
|
+
}, 'theia/dev-container/connect');
|
|
37
|
+
})(RemoteContainerCommands || (exports.RemoteContainerCommands = RemoteContainerCommands = {}));
|
|
38
|
+
const LAST_USED_CONTAINER = 'lastUsedContainer';
|
|
39
|
+
let ContainerConnectionContribution = class ContainerConnectionContribution extends remote_registry_contribution_1.AbstractRemoteRegistryContribution {
|
|
40
|
+
registerRemoteCommands(registry) {
|
|
41
|
+
registry.registerCommand(RemoteContainerCommands.REOPEN_IN_CONTAINER, {
|
|
42
|
+
execute: () => this.openInContainer()
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
canHandle(uri) {
|
|
46
|
+
return uri.scheme === dev_container_workspaces_1.DEV_CONTAINER_WORKSPACE_SCHEME;
|
|
47
|
+
}
|
|
48
|
+
async openWorkspace(uri, options) {
|
|
49
|
+
const filePath = new URLSearchParams(uri.query).get(dev_container_workspaces_1.DEV_CONTAINER_PATH_QUERY);
|
|
50
|
+
if (!filePath) {
|
|
51
|
+
throw new Error('No devcontainer file specified for workspace');
|
|
52
|
+
}
|
|
53
|
+
const devcontainerFiles = await this.connectionProvider.getDevContainerFiles(uri.path.toString());
|
|
54
|
+
const devcontainerFile = devcontainerFiles.find(file => file.path === filePath);
|
|
55
|
+
if (!devcontainerFile) {
|
|
56
|
+
throw new Error(`Devcontainer file at ${filePath} not found in workspace`);
|
|
57
|
+
}
|
|
58
|
+
return this.doOpenInContainer(devcontainerFile, uri.toString());
|
|
59
|
+
}
|
|
60
|
+
async getWorkspaceLabel(uri) {
|
|
61
|
+
const containerFilePath = new URLSearchParams(uri.query).get(dev_container_workspaces_1.DEV_CONTAINER_PATH_QUERY);
|
|
62
|
+
if (!containerFilePath) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
;
|
|
66
|
+
const files = await this.connectionProvider.getDevContainerFiles(uri.path.toString());
|
|
67
|
+
const devcontainerFile = files.find(file => file.path === containerFilePath);
|
|
68
|
+
return `${uri.path.base} [Dev Container: ${devcontainerFile === null || devcontainerFile === void 0 ? void 0 : devcontainerFile.name}]`;
|
|
69
|
+
}
|
|
70
|
+
async openInContainer() {
|
|
71
|
+
const devcontainerFile = await this.getOrSelectDevcontainerFile();
|
|
72
|
+
if (!devcontainerFile) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this.doOpenInContainer(devcontainerFile);
|
|
76
|
+
}
|
|
77
|
+
async doOpenInContainer(devcontainerFile, workspaceUri) {
|
|
78
|
+
var _a;
|
|
79
|
+
const lastContainerInfoKey = `${LAST_USED_CONTAINER}:${devcontainerFile.path}`;
|
|
80
|
+
const lastContainerInfo = await this.workspaceStorageService.getData(lastContainerInfoKey);
|
|
81
|
+
this.containerOutputProvider.openChannel();
|
|
82
|
+
const connectionResult = await this.connectionProvider.connectToContainer({
|
|
83
|
+
nodeDownloadTemplate: this.remotePreferences['remote.nodeDownloadTemplate'],
|
|
84
|
+
lastContainerInfo,
|
|
85
|
+
devcontainerFile: devcontainerFile.path,
|
|
86
|
+
workspaceUri
|
|
87
|
+
});
|
|
88
|
+
this.workspaceStorageService.setData(lastContainerInfoKey, {
|
|
89
|
+
id: connectionResult.containerId,
|
|
90
|
+
lastUsed: Date.now()
|
|
91
|
+
});
|
|
92
|
+
this.workspaceServer.setMostRecentlyUsedWorkspace(`${dev_container_workspaces_1.DEV_CONTAINER_WORKSPACE_SCHEME}:${(_a = this.workspaceService.workspace) === null || _a === void 0 ? void 0 : _a.resource.path}?${dev_container_workspaces_1.DEV_CONTAINER_PATH_QUERY}=${devcontainerFile.path}`);
|
|
93
|
+
this.openRemote(connectionResult.port, false, connectionResult.workspacePath);
|
|
94
|
+
}
|
|
95
|
+
async getOrSelectDevcontainerFile() {
|
|
96
|
+
var _a;
|
|
97
|
+
const workspace = this.workspaceService.workspace;
|
|
98
|
+
if (!workspace) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const devcontainerFiles = await this.connectionProvider.getDevContainerFiles(workspace.resource.path.toString());
|
|
102
|
+
if (devcontainerFiles.length === 1) {
|
|
103
|
+
return devcontainerFiles[0];
|
|
104
|
+
}
|
|
105
|
+
return (_a = (await this.quickInputService.pick(devcontainerFiles.map(file => ({
|
|
106
|
+
type: 'item',
|
|
107
|
+
label: file.name,
|
|
108
|
+
description: file.path,
|
|
109
|
+
file: file,
|
|
110
|
+
})), {
|
|
111
|
+
title: 'Select a devcontainer.json file'
|
|
112
|
+
}))) === null || _a === void 0 ? void 0 : _a.file;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
exports.ContainerConnectionContribution = ContainerConnectionContribution;
|
|
116
|
+
tslib_1.__decorate([
|
|
117
|
+
(0, inversify_1.inject)(remote_container_connection_provider_1.RemoteContainerConnectionProvider),
|
|
118
|
+
tslib_1.__metadata("design:type", Object)
|
|
119
|
+
], ContainerConnectionContribution.prototype, "connectionProvider", void 0);
|
|
120
|
+
tslib_1.__decorate([
|
|
121
|
+
(0, inversify_1.inject)(remote_preferences_1.RemotePreferences),
|
|
122
|
+
tslib_1.__metadata("design:type", Object)
|
|
123
|
+
], ContainerConnectionContribution.prototype, "remotePreferences", void 0);
|
|
124
|
+
tslib_1.__decorate([
|
|
125
|
+
(0, inversify_1.inject)(workspace_storage_service_1.WorkspaceStorageService),
|
|
126
|
+
tslib_1.__metadata("design:type", workspace_storage_service_1.WorkspaceStorageService)
|
|
127
|
+
], ContainerConnectionContribution.prototype, "workspaceStorageService", void 0);
|
|
128
|
+
tslib_1.__decorate([
|
|
129
|
+
(0, inversify_1.inject)(workspace_service_1.WorkspaceService),
|
|
130
|
+
tslib_1.__metadata("design:type", workspace_service_1.WorkspaceService)
|
|
131
|
+
], ContainerConnectionContribution.prototype, "workspaceService", void 0);
|
|
132
|
+
tslib_1.__decorate([
|
|
133
|
+
(0, inversify_1.inject)(common_1.WorkspaceServer),
|
|
134
|
+
tslib_1.__metadata("design:type", Object)
|
|
135
|
+
], ContainerConnectionContribution.prototype, "workspaceServer", void 0);
|
|
136
|
+
tslib_1.__decorate([
|
|
137
|
+
(0, inversify_1.inject)(core_1.QuickInputService),
|
|
138
|
+
tslib_1.__metadata("design:type", Object)
|
|
139
|
+
], ContainerConnectionContribution.prototype, "quickInputService", void 0);
|
|
140
|
+
tslib_1.__decorate([
|
|
141
|
+
(0, inversify_1.inject)(container_output_provider_1.ContainerOutputProvider),
|
|
142
|
+
tslib_1.__metadata("design:type", container_output_provider_1.ContainerOutputProvider)
|
|
143
|
+
], ContainerConnectionContribution.prototype, "containerOutputProvider", void 0);
|
|
144
|
+
exports.ContainerConnectionContribution = ContainerConnectionContribution = tslib_1.__decorate([
|
|
145
|
+
(0, inversify_1.injectable)()
|
|
146
|
+
], ContainerConnectionContribution);
|
|
147
|
+
//# sourceMappingURL=container-connection-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-connection-contribution.js","sourceRoot":"","sources":["../../src/electron-browser/container-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,4DAAkE;AAClE,kHAAqI;AACrI,kHAAiJ;AACjJ,8FAA0F;AAC1F,sGAAiG;AACjG,sCAA4E;AAC5E,sFAAoI;AACpI,2EAAsE;AACtE,wDAA8D;AAC9D,0FAAuH;AAEvH,IAAiB,uBAAuB,CAMvC;AAND,WAAiB,uBAAuB;IACvB,2CAAmB,GAAG,cAAO,CAAC,kBAAkB,CAAC;QAC1D,EAAE,EAAE,mCAAmC;QACvC,KAAK,EAAE,qBAAqB;QAC5B,QAAQ,EAAE,eAAe;KAC5B,EAAE,6BAA6B,CAAC,CAAC;AACtC,CAAC,EANgB,uBAAuB,uCAAvB,uBAAuB,QAMvC;AAED,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEzC,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,iEAAkC;IAuBnF,sBAAsB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AGjD;IADlB,IAAA,kBAAM,EAAC,oCAAgB,CAAC;sCACY,oCAAgB;yEAAC;AAGnC;IADlB,IAAA,kBAAM,EAAC,wBAAe,CAAC;;wEAC4B;AAGjC;IADlB,IAAA,kBAAM,EAAC,wBAAiB,CAAC;;0EAC8B;AAGrC;IADlB,IAAA,kBAAM,EAAC,mDAAuB,CAAC;sCACY,mDAAuB;gFAAC;0CArB3D,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAiH3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
2
|
+
import type { ContainerInspectInfo } from 'dockerode';
|
|
3
|
+
import { RemoteContainerConnectionProvider } from '../electron-common/remote-container-connection-provider';
|
|
4
|
+
import { PortForwardingService } from '@theia/remote/lib/electron-browser/port-forwarding/port-forwarding-service';
|
|
5
|
+
export declare class ContainerInfoContribution implements FrontendApplicationContribution {
|
|
6
|
+
protected readonly connectionProvider: RemoteContainerConnectionProvider;
|
|
7
|
+
protected readonly portForwardingService: PortForwardingService;
|
|
8
|
+
containerInfo: ContainerInspectInfo | undefined;
|
|
9
|
+
onStart(): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=container-info-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container-info-contribution.d.ts","sourceRoot":"","sources":["../../src/electron-browser/container-info-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,iCAAiC,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,4EAA4E,CAAC;AAGnH,qBACa,yBAA0B,YAAW,+BAA+B;IAG7E,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,iCAAiC,CAAC;IAGzE,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAEhE,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAE1C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAYjC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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_container_connection_provider_1 = require("../electron-common/remote-container-connection-provider");
|
|
22
|
+
const port_forwarding_service_1 = require("@theia/remote/lib/electron-browser/port-forwarding/port-forwarding-service");
|
|
23
|
+
const electron_local_ws_connection_source_1 = require("@theia/core/lib/electron-browser/messaging/electron-local-ws-connection-source");
|
|
24
|
+
let ContainerInfoContribution = class ContainerInfoContribution {
|
|
25
|
+
async onStart() {
|
|
26
|
+
var _a, _b, _c;
|
|
27
|
+
this.containerInfo = await this.connectionProvider.getCurrentContainerInfo(parseInt((_a = (0, electron_local_ws_connection_source_1.getCurrentPort)()) !== null && _a !== void 0 ? _a : '0'));
|
|
28
|
+
this.portForwardingService.forwardedPorts = Object.entries((_c = (_b = this.containerInfo) === null || _b === void 0 ? void 0 : _b.NetworkSettings.Ports) !== null && _c !== void 0 ? _c : {}).flatMap(([_, ports]) => (ports.map(port => {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
return ({
|
|
31
|
+
editing: false,
|
|
32
|
+
address: (_a = port.HostIp) !== null && _a !== void 0 ? _a : '',
|
|
33
|
+
localPort: parseInt((_b = port.HostPort) !== null && _b !== void 0 ? _b : '0'),
|
|
34
|
+
origin: 'container'
|
|
35
|
+
});
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.ContainerInfoContribution = ContainerInfoContribution;
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, inversify_1.inject)(remote_container_connection_provider_1.RemoteContainerConnectionProvider),
|
|
42
|
+
tslib_1.__metadata("design:type", Object)
|
|
43
|
+
], ContainerInfoContribution.prototype, "connectionProvider", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, inversify_1.inject)(port_forwarding_service_1.PortForwardingService),
|
|
46
|
+
tslib_1.__metadata("design:type", port_forwarding_service_1.PortForwardingService)
|
|
47
|
+
], ContainerInfoContribution.prototype, "portForwardingService", void 0);
|
|
48
|
+
exports.ContainerInfoContribution = ContainerInfoContribution = tslib_1.__decorate([
|
|
49
|
+
(0, inversify_1.injectable)()
|
|
50
|
+
], ContainerInfoContribution);
|
|
51
|
+
//# sourceMappingURL=container-info-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAGlE,kHAA4G;AAC5G,wHAAmH;AACnH,wIAAgH;AAGzG,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAUlC,KAAK,CAAC,OAAO;;QACT,IAAI,CAAC,aAAa,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,QAAQ,CAAC,MAAA,IAAA,oDAAc,GAAE,mCAAI,GAAG,CAAC,CAAC,CAAC;QAE9G,IAAI,CAAC,qBAAqB,CAAC,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,MAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,eAAe,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAChI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;;YAAC,OAAA,CAAC;gBACf,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,MAAA,IAAI,CAAC,MAAM,mCAAI,EAAE;gBAC1B,SAAS,EAAE,QAAQ,CAAC,MAAA,IAAI,CAAC,QAAQ,mCAAI,GAAG,CAAC;gBACzC,MAAM,EAAE,WAAW;aACtB,CAAC,CAAA;SAAA,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;CAEJ,CAAA;AAtBY,8DAAyB;AAGf;IADlB,IAAA,kBAAM,EAAC,wEAAiC,CAAC;;qEAC+B;AAGtD;IADlB,IAAA,kBAAM,EAAC,+CAAqB,CAAC;sCACY,+CAAqB;wEAAC;oCANvD,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAsBrC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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;;AAU/D,wBAcG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
28
|
+
bind(container_connection_contribution_1.ContainerConnectionContribution).toSelf().inSingletonScope();
|
|
29
|
+
bind(remote_registry_contribution_1.RemoteRegistryContribution).toService(container_connection_contribution_1.ContainerConnectionContribution);
|
|
30
|
+
bind(workspace_service_1.WorkspaceOpenHandlerContribution).toService(container_connection_contribution_1.ContainerConnectionContribution);
|
|
31
|
+
bind(container_output_provider_1.ContainerOutputProvider).toSelf().inSingletonScope();
|
|
32
|
+
bind(remote_container_connection_provider_1.RemoteContainerConnectionProvider).toDynamicValue(ctx => {
|
|
33
|
+
const outputProvider = ctx.container.get(container_output_provider_1.ContainerOutputProvider);
|
|
34
|
+
return service_connection_provider_1.ServiceConnectionProvider.createLocalProxy(ctx.container, remote_container_connection_provider_1.RemoteContainerConnectionProviderPath, outputProvider);
|
|
35
|
+
}).inSingletonScope();
|
|
36
|
+
bind(container_info_contribution_1.ContainerInfoContribution).toSelf().inSingletonScope();
|
|
37
|
+
bind(browser_1.FrontendApplicationContribution).toService(container_info_contribution_1.ContainerInfoContribution);
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=dev-container-frontend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-container-frontend-module.js","sourceRoot":"","sources":["../../src/electron-browser/dev-container-frontend-module.ts"],"names":[],"mappings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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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
workspaceUri?: 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
|
|
@@ -0,0 +1 @@
|
|
|
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,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|