Skip to content

Support '.jsonc' file extension for files inside '.vscode' #79744

@kripod

Description

@kripod

Currently, parsers struggle to read JSON comments when coming across the '.json' extension. Using the '.jsonc' extension implies that the given file is allowed to have comments, e.g.:

.vscode/extensions.json -> .vscode/extensions.jsonc
.vscode/settings.json -> .vscode/settings.jsonc

As a temporary workaround, a .gitattributes file like below could be used to signal GitHub's parser that files inside the '.vscode' directory use JSONC syntax:

.vscode/*.json linguist-language=jsonc

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions