zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
42.56k stars 2.26k forks source link

BiomeJS extension and LSP not working properly on Zed #13492

Open a4arpon opened 1 month ago

a4arpon commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I have been working with TypeScript project with BiomeJS linter. But the problem is Biome is not working properly on my Linux Device. What's the issue?

This is my Settings JSON

image image

But when I use CLI command

npx biome format --write src

it works fine.

Environment

Zed: v0.141.0 (Zed Preview) OS: Linux X11 linuxmint 21.3 Memory: 15.3 GiB Architecture: x86_64

luckydye commented 1 month ago

The formatting not working is a known issue (see https://github.com/zed-industries/zed/issues/12661). The linter diagnostics should work fine though.

luckydye commented 1 month ago

Also you can use this alternative as a formatting workaround for now. https://github.com/biomejs/biome-zed/issues/12#issuecomment-2085246627

luckydye commented 4 days ago

As of Zed 0.146.0, we can now specify what language_server to use for the formatting:

{
  "formatter": {
    "language_server": {
      "name": "biome"
    }
  }
}