NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
From VSCode About:
Steps to Reproduce:
vscode-container-compose
vscode-container-compose
in VSCodevscode-container-compose
Command Pallete
->Reopen in Container
-> SelectC# (.NET) and PostgreSQL
workspace
vscode-container-compose
for window titleWhen open the folder locally, we see VSCode shows
workspace
for Window title:When open in Docker Compose container, we see VSCode shows
workspace
for Window title:When working with many projects that are
docker compose
based; it is difficult to differentiate which project at a glance.Recommend mounting the source with the
localWorkspaceFolderBasename
?https://github.com/microsoft/vscode-dev-containers/blob/9e13bc17809eedb0784321da3a2f859642f94523/container-templates/docker-compose/.devcontainer/devcontainer.json#L13
https://github.com/microsoft/vscode-dev-containers/blob/9e13bc17809eedb0784321da3a2f859642f94523/container-templates/docker-compose/.devcontainer/docker-compose.yml#L15
The issue here is
${localWorkspaceFolderBasename}
is not available indocker-compose
.I noticed a very similar issue reported previously https://github.com/microsoft/vscode-remote-release/issues/6844 for access to
${localWorkspaceFolder}
instead.I like the solution recommended here https://github.com/microsoft/vscode-remote-release/issues/6844#issuecomment-1160442092
Please advise.