Skip to content

Open Workspace in Container... improve support for multi root workspacesΒ #387

@Chuxel

Description

@Chuxel

Currently opening a .codeworkspace in a container is a two step process. First you "Open Folder in Container", then File > Open Workspace (or by clicking the button in the toast that appears.)

This is partly because we do not currently support opening folders without a common root in a container or opening multiple containers at once. A workspace file could include multiple folders in entirely different parts of the local filesystem and each of these folders could have their own devcontainer.json files.

To start, we could support an open workspace command that is the equivalent of doing "Open Folder in Container" followed by "Open Workspace" but does not resolve these two limitations. Specifically it would:

  1. Look for a .devcontainer/devcontainer.json or .devcontainer.json file in the same folder as the .codeworkspace file.
  2. Mount this folder into the container and open the workspace. The .codeworkspace file would only be able to reference sub-folders.

Metadata

Metadata

Labels

containersIssue in vscode-remote containersfeature-requestRequest for new features or functionalityon-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions