Skip to content

Support naming settings.json as settings.jsonc (and others) #269824

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.104.2
  • OS Version: Linux

Steps to Reproduce:

  1. Create .vscode/settings.json, .vscode/extensions.json, etc.
  2. Put a comment into that "JSON", as allowed by https://jsonc.org, used implicitly by VSC
  3. Use any other of about a billion existing tool which assumes that *.json are https://www.json.org and not https://jsonc.org
  4. See that tool fail, e.g. Use json-with-comments or jsonc-parser instead of the Python standard library’s json module so that https://jsonc.org // comments in JSON don't make it trip pre-commit/pre-commit-hooks#1196

This was already reported in #79744 over 6+ years ago.

Would a PR to add support for this be welcome?

Activity

  1. vs-code-engineering commented on Oct 4, 2025

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.104.3. Please try upgrading to the latest version and checking whether this issue remains.

    Happy Coding!

  2. vorburger commented on Oct 4, 2025

    @vorburger
    Author

    @vs-code-engineering hello 👋🏽 there, friendly helpful AI, it's a pleasure to meet you!

    I hereby confirm that this issue also affects the latest stable release 1.104.3.

    Would a PR to add support for this be welcome?

  3. added
    feature-request
    help wanted
    settings-editor
    on Oct 6, 2025
  4. rzhao271 commented on Oct 6, 2025

    @rzhao271
    Collaborator

    PRs welcome. Added help wanted tag.

  5. Prhmma commented on Oct 11, 2025

    @Prhmma

    Hiya, I think I have a fix for this, lets see.

  6. youssefnabil2030 commented on Oct 11, 2025

    @youssefnabil2030

    Hi Michael Vorburger (@vorburger) 👋,

    I was working on adding support for settings.jsonc files in the VS Code settings editor and even prepared a branch to create a PR.
    However, it seems someone else has already implemented a fix, so my branch is now up-to-date with the latest changes.

    Glad to see the problem resolved! 🚀

    — Youssef Nabil

  7. Prhmma commented on Oct 11, 2025

    @Prhmma

    I am currently working on it

  8. youssefnabil2030 commented on Oct 11, 2025

    @youssefnabil2030

    Hi Parham MohammadAlizadeh (@Prhmma) 👋,

    I was working on adding support for settings.jsonc files in the VS Code settings editor and even prepared a branch to create a PR.
    However, it looks like you’ve already started working on a fix. My branch is now up-to-date with the latest changes.

    Glad to see the problem being addressed! 🚀

    — Youssef Nabil

  9. youssefnabil2030 commented on Oct 11, 2025

    @youssefnabil2030

    Parham MohammadAlizadeh (@Prhmma) what is the part you work in it ?

  10. Prhmma commented on Oct 11, 2025

    @Prhmma

    Youssef Nabil (@youssefnabil2030) adding JSONC support for config files under .vscode folder

  11. youssefnabil2030 commented on Oct 11, 2025

    @youssefnabil2030

    Parham MohammadAlizadeh (@Prhmma) ,

    Great to see you’re working on adding JSONC support for .vscode config files!
    I was experimenting with a branch to do the same, so happy to see it’s being implemented.
    If you need a hand testing or reviewing, I’d be glad to help! 🚀

    — Youssef Nabil

  12. youssefnabil2030 commented on Oct 11, 2025

    @youssefnabil2030

    Parham MohammadAlizadeh (@Prhmma) so I want to particapate in our work

  13. added 3 commits that reference this issue on Oct 11, 2025
    3c81291
    2481f36
    1264824
  14. Prhmma commented on Oct 11, 2025

    @Prhmma

    Thanks Youssef Nabil (@youssefnabil2030)
    I just pushed my branch. I would appreciate it if you could have a look, please.

    Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthelp wantedsettings-editor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions