Suggestion: tsconfig.*.json should be detected as jsonc
#50974
Labels
feature-request
Request for new features or functionality
json
JSON support issues
typescript
Typescript support issues
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
Since the addition of "extends" in tsconfigs, many projects now have
tsconfig.base.json
with their common configuration.I personally also saw cases of
tsconfig.browser.json
,tsconfig.build.json
, andtsconfig.publish.json
.VSCode currently detects
tsconfig.json
as "JSON With Comments" (jsonc
). All the examples above, on the other end, are auto detected as regularjson
, which makes the tsconfig comments appear as errors.I always configure my local VSCode with:
And it works as expected. Would be nice, however, if this was the default configuration. :)
The text was updated successfully, but these errors were encountered: