Skip to content

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

Closed

Description

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

Activity

  1. added
    feature-request
    on Aug 26, 2019
  2. joaomoreno commented on Aug 30, 2019

    @joaomoreno
    Contributor

    Closing this down. If this is useful, just create a PR for it and ping me in it.

  3. locked and limited conversation to collaborators on Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions