Skip to content

"Comments not permitted in JSON" with devcontainer.json #139599

@jkopczyn

Description

@jkopczyn

The precreated devcontainer.json does not raise errors for containing comments, but creating any other file with the same structure does. E.G. storing multiple versions of the file in the tree (./.devcontainer/devcontainer.json, but also ./.devcontainer/alternate-specs/devcontainer.json and/or ./.devcontainer/devcontainer.v1.json, ./.devcontainer/devcontainer.v2.json), so that it can be customized for later users, every comment line is marked as a problem.

Maybe there is a setting to disable this, but I cannot find it, so in that case I suggest making it more prominent in the documentation.

Version: 1.63.2
Commit: 899d46d
User Agent: Chrome/96.0.4664.110 (AppleWebKit/537.36 (KHTML, like Gecko) may also be relevant)
Embedder: codespaces

Metadata

Metadata

Assignees

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions