Find `.devcontainer` in parent folders

Open
#9,425 1 comment 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jan 24, 2024.

Assessment

This issue has not been assessed yet.

Description

containers feature-request

Follow-up to https://github.com/orgs/devcontainers/discussions/104#discussioncomment-8223544.

It would be very useful to me if VSCode searched for .devcontainer in the current folder's parents until it found one.

The use case is a large monorepo containing separate Python projects in subfolders. The user usually needs to open one of these projects for the Python extensions to configure themselves correctly. They all share the same dev environment, settings, extensions, etc.

The current method is:

  • open the monorepo's root folder in VSCode,
  • start a dev container (here VSCode finds .devcontainer in the root folder),
  • Add folder to workspace for the project we actually want to contribute to.

The new method could be:

  • open the subfolder containing the project,
  • start a dev container (here VSCode searches in parent folders and finds .devcontainer in the repo's root).

This would work like e.g. clang-format's configuration file, except we stop when we find one configuration instead of cascading settings from multiple levels.

Is this easy to implement?

Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

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.

More from microsoft/vscode-remote-release

All issues in microsoft/vscode-remote-release

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.