Skip to content
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

[devcontainers] Extension does not accept .devcontainer.json as a symlink #10536

Open
svenengstrom-vaderstad opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers

Comments

@svenengstrom-vaderstad
Copy link

I have a few common configuration files stored in a submodule in my repo, among them is a devcontainer config file.
If i link to this file (ln -sr <sub-module>/devcontainer.json <repo-root>/.devcontainer.json) and open VS Code I don't get the "Folder contains a Dev Container configuration file"-popup. It does however work to create the symlink inside a .devcontainer-folder (ln -sr <sub-module>/devcontainer.json <repo-root>/.devcontainer/devcontainer.json).

To sum up:
✅ File named .devcontainer.json: Works
✅ File named .devcontainer/devcontainer.json: Works
✅ Symlink named .devcontainer/devcontainer.json: Works
❌ Symlink named .devcontainer.json: Doesn't work

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Dec 5, 2024
@chrmarti chrmarti added the bug Issue identified by VS Code Team member as probable bug label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

2 participants