microsoft / microsoft/vscode-remote-release

Add tasks support to devcontainer.json

Open
#9,951 30 comments 50 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jun 5, 2024.

containers feature-request
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Looks like, currently, only launch configurations are supported inside devcontainer.json.

You can define launch configurations in devcontainer.json like:

{
  "customizations": {
    "vscode": {
      "settings": {
        "launch": {
          "configurations": [
          ]
        },
      }
    }
  }
}

It would be great to have the same but for tasks. Something like:

{
  "customizations": {
    "vscode": {
      "settings": {
        "tasks": [
        ],
      }
    }
  }
}

This way we could have a set of predefined launch and tasks configurations available in the devcontainer (and checked in the git repository, as they are inside the devcontainer.json file) and allow the user to "extend" those configurations locally (by adding them to .vscode folder that might be added to .gitignore).

NOTE: I suppose this should also be added to .code-workspace settings implementation (as, under the hood, looks like devcontainers are using the workspace settings mechanism) and documented in default settings.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.