Skip to content

Add filename patterns for jsconfig.json#103360

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
pastelmind:patch-1
Jul 27, 2020
Merged

Add filename patterns for jsconfig.json#103360
mjbvz merged 1 commit intomicrosoft:masterfrom
pastelmind:patch-1

Conversation

@pastelmind
Copy link
Contributor

Add alternative filename patterns for jsconfig.json that will be recognized as JSONC when opened. This mirrors the accepted filename patterns for tsconfig.json.

This PR fixes #103240

Add alternative filename patterns for jsconfig.json that will be recognized as JSONC when opened. This mirrors the accepted filename patterns for tsconfig.json.
@mjbvz mjbvz added this to the July 2020 milestone Jul 27, 2020
@mjbvz mjbvz merged commit fcc2a49 into microsoft:master Jul 27, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 27, 2020

Thanks!

pastelmind added a commit to pastelmind/d2calc that referenced this pull request Aug 14, 2020
Since this file is used to emit type declarations from JavaScript files,
not TypeScript, the "tsconfig.*.json" file name was misleading.
Previously, however, I was forced to use "tsconfig.*.json" because VS
Code did not recognize "jsconfig.*.json" as JSONC (JSON with Comments).
This was fixed in microsoft/vscode#103360.
Now that the change is shipped in VS Code 1.48, we can safely rename the
file to jsconfig.build.json.

Note: VS Code complains about the "declarationMap" property, because the
JSON schema for jsconfig.json--provided by JSON Schema Store
(https://www.schemastore.org/json/)--does not have it. This seems to be
an oversight; I will submit a PR to remedy this.
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants