biomejs / biome-zed

Biome extension for Zed
https://biomejs.dev
MIT License
169 stars 6 forks source link

`JSON standard does not allow comments.` squiggly lines in json files with comments #37

Closed sparrowsl closed 3 months ago

sparrowsl commented 3 months ago

I get the annoying squiggly line if I open json files that has comments (eg: tsconfig, jsconfig) but in VSCode there's no warning or any lines and biome just works.

In zed (image below) from-zed

in VSCode (image below) from-vscode

luckydye commented 3 months ago

This is a Zed issue, vscode by default detects json files with comments as jsonc, zed does not. See https://zed.dev/docs/configuring-zed#file-types for configuration.

{
  "file_types": {
    "JSONC": ["tsconfig.json", "jsconfig.json", etc....],
  }
}