Skip to content

Conversation

@jonah-iden
Copy link
Contributor

What it does

This adds support for workspaceMount and workspaceFolder options for devcontainer.json files

How to test

Create a devcontainer.json with content like this:

{
    "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
    "forwardPorts": [3000],
    "workspaceFolder": "/workspace/testfolder/someTestfolderInWorkspace",
    "workspaceMount": "dst=/workspace/testfolder,type=bind",
    "containerEnv": {
        "TESTVAR": "testValue"
    }
}

optionally you can also add source and readonly options to the workspaceMount property.

this should then put the workspace at the specified location and open the folder defined by workspaceFolder

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
@jonah-iden jonah-iden requested a review from jbicker March 25, 2025 09:27
@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Waiting on reviewers

Development

Successfully merging this pull request may close these issues.

2 participants