Improved workflow- scan for devcontainer configs in a workspace, and provide options to open them. #1239
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
Currently, when you click on the
Remote Host
button (green button in the lower left corner) when the current window is not connected to anything remote, you get options forRemote Containers: Reopen folder in container
,Remote Containers: Open folder in container..
etc. This is great for initial setup, but once you have all of your remote containers set up, launching them can be a bit cumbersome.I think this workflow (after setup) could be greatly improved, if VSCode were to scan the current non-connected workspace for any
.devcontainer
configs in its tree, and provide those as options, using the "name" parameter in the founddevcontainer.json
files. Additionally it would be nice to select "Open in new window", "Open in current window" and even "Open all".Combined with allowing specific services from a docker-compose file to be launched, as proposed in #211 , this would be an amazing workflow, for those of us who deal with monorepo type setups. An example. Lets say I have a monorepo for a project that includes the server-api code (Dependent on a database) and the client web-app code, and I have set up an appropriate set of root-level docker configurations for my developers. Lets say I have a root
docker-compose.yml
that looks like:This is intended to allow a developer to fire up a local version of the api, and a local version of the web app for development. Notice- the
dev-api
service is dependent on thedb
service. I could then go into each service's source directory, and create an appropriate.devcontainer
directory. If I could then specify only the services to launch (e.g.- launch 'dev-client' for the client code, and 'dev-api' for the api code (which should also launch 'db' as it is dependency) in the appropriate.devcontainer
files, and if scanning/launching from theRemote Host
button existed, I would then have the following workflow:.devcontainer
configs.Remote Host
button. I see 5 options at the top:Remote Container: Open Dev API in new window
,Remote Container: Open Dev API in this window
,Remote Container: Open Dev Client in new window
,Remote Container: Open Dev Client in this window
, andRemote Container: Open All Containers
.Remote Container: Open Dev API in new window
.dev-api
service (and docker launches the dependentdb
service), and attaches it to the window. Now I can edit/debug my api.Once this was set up, it would, IMO, be a great workflow.
The text was updated successfully, but these errors were encountered: