Closed
Description
It's a bit inadequate to search docker container only with project name and services when project name is the basename of the working directory.
cli/src/spec-node/dockerCompose.ts
Line 613 in 71180e7
Can I suggest to either use longer name for project:
cli/src/spec-node/dockerCompose.ts
Lines 643 to 645 in 71180e7
like replace the use of basename with a representation of the full path where each subdirectory is connected with an underscore (_)
function pathToUnderscore(p: string): string {
return p.split(path.sep).join('_');
}
...
...
if (equalPaths(cliHost.platform, workingDir, cliHost.path.join(configDir, '.devcontainer'))) {
return toProjectName(`${pathToUnderscore(configDir)}_devcontainer`, newProjectName);
}
return toProjectName(pathToUnderscore(workingDir), newProjectName);
Metadata
Metadata
Assignees
Labels
No labels