Microsoft/vscode

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

Open

#269.824 aberto em 4 de out. de 2025

Ver no GitHub
 (13 comments) (5 reactions) (1 assignee)TypeScript (10.221 forks)batch import
feature-requesthelp wantedsettings-editor

Métricas do repositório

Stars
 (74.848 stars)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

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. 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?

Guia do colaborador