Skip to content

Support for devcontainer workspaceMount & workspaceFolder #15276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

Sorry, something went wrong.

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.

1 participant