Skip to content

🐛 JSON and JSONC formatting with VS Code extension: "Extension 'Biome' is configured as formatter but it cannot format 'JSON with Comments'-files" #908

@epicwhale

Description

@epicwhale

VS Code version

1.108.0-insider (Universal)

Extension version

2025.11.271431

Biome version

2.2.4 installed in frontend/nodule_modules directory

Operating system

  • Windows
  • macOS
  • Linux

Description

I am struggling to use Biome to format any JSON or JSONC in my vscode with the extension

In my project's settings.json, I have also configured:

    "[json]": {
        "editor.defaultFormatter": "biomejs.biome"
    },
    "[jsonc]": {
        "editor.defaultFormatter": "biomejs.biome"
    },

"Extension 'Biome' is configured as formatter but it cannot format 'JSON with Comments'-files"
Image

or I select the "Format Document" option for any json file in the project

Image

Steps to reproduce

Try formatting any json with Biome extension installed

Expected behavior

Work as a formatter like Prettier VSCode did.

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Link to a minimal reproduction

No response

Logs


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions