Skip to content

jsconfig.json with suffix in file name is not opened in JSONC mode #103240

@pastelmind

Description

@pastelmind
  • VSCode Version: 1.47.2 (user setup)
  • OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

  1. Create a file named jsconfig.build.json in any directory.
  2. Open the file with VS Code.
  3. The file is opened with the "JSON" language mode (instead of the expected "JSON with Comments" mode).

Other file names, e.g. jsconfig.test.json, are also opened in "JSON" language mode.

In contrast, tsconfig.json is opened in "JSON with Comments" mode even if the file name contains suffixes, e.g. tsconfig.build.json.

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersjavascriptJavaScript support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions