spec icon indicating copy to clipboard operation
spec copied to clipboard

Allow the use of workspaceFolder without specifying workspaceMount

Open Chuxel opened this issue 3 years ago • 1 comments

Today the workspaceFolder property requires workspaceMount to be in non-dockerCompose scenarios. Given processing for devcontainer.json should mount the location of the .git folder unless workspaceMount is set, it is reasonable to allow this property to be set independently.

In this scenario, the following syntax could be used to connect to a relative path to the detected auto-mount location.

"workspaceFolder": "${containerWorkspaceFolder}/some/sub/path" 

To avoid confusion, if workspaceMount is specified, or this is a Docker Compose scenario, ${containerWorkspaceFolder} would be treated like "". We could also introduce a different variable here instead (e.g. defaultContainerWorkspaceFolder) that had these same smarts in it.

Chuxel avatar Jan 21 '22 15:01 Chuxel

@Santiagosaiz4

Santiagosaiz avatar Dec 21 '22 09:12 Santiagosaiz