Configuring multiple languages in a single repository devcontainer #129301
Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
This is how using the
Codespaces: Add Dev Container Configuration Files
command configured./.devcontainer/devcontainer.json
for a project being developed in Codespaces:Later on, the project required another programming language, but I could not figure out how to add another language configuration.
I read Introduction to devcontainers, the individual pages for each language and the devcontainers specification, but did not find anything relating to multiple language configurations.
I finally found an archived issue which alerted me to the solution using
features
:This works, although whether or not the additional languages are installed seems to be on-off (could just be an issue on my end).
Does it make any difference, then, where you define a language configuration? What’s the difference between something installed with
image
andfeatures
? What’s the standard way of configuring multiple languages for a single devcontainer?Furthermore, figuring out how to configure multiple languages was not easy given the lack of any mention at all in the docs. It seems like a pretty common thing you might need to do, so explicitly showing beginners how to do it would be helpful. Perhaps a section or note could added in Introduction to devcontainers detailing how to go about it?
Beta Was this translation helpful? Give feedback.
All reactions