Skip to content

🐛 biome extension in zed editor run without the biome.json for global ~/.config/zed/settings.json #6589

Description

@KhoaLee

Zed version

Zed 0.192.6

Extension version

0.2.0

Biome version

2.0.6

Operating system

  • Windows
  • macOS
  • Linux

Description

Currently, whenever I open the ~/.config/zed/settings.json file in Zed, biome will error me the biome parse due to the comments I have put in the settings.json at the mentioned path. This is not happend in previous version. biome is running on this path even without biome.json and with the:

"lsp": {
    "biome": {
      "settings": {
        "require_config_file": true
      }
    },
    //============= Rest of my global lsp config for Zed editor ===========
}
Image

Steps to reproduce

  1. Open zed editor
  2. Cmd + Shift + P and search for open settings file
  3. On that file open, press Cmd + S to save the file and biome will indicate errors in this file

Expected behavior

For the ~/.config/zed/settings.json, biome shouldn't run if it cannot find the biome.json file and with the require_config_file: true option.

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Link to a minimal reproduction

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LSPArea: language server protocolS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Good first issueStatus: Good for newcomersS-Help-wantedStatus: you're familiar with the code base and want to help the project

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions