Microsoft/vscode

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

Open

#269.824 geöffnet am 4. Okt. 2025

Auf GitHub ansehen
 (13 Kommentare) (5 Reaktionen) (1 zugewiesene Person)TypeScript (74.848 Stars) (10.221 Forks)batch import
feature-requesthelp wantedsettings-editor

Beschreibung

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. https://github.com/pre-commit/pre-commit-hooks/issues/1196

This was already reported in https://github.com/microsoft/vscode/issues/79744 over 6+ years ago.

Would a PR to add support for this be welcome?

Contributor Guide