biomejs / biome-zed

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

feat: use lsp settings to configure custom biome binary #19

Closed luckydye closed 3 months ago

luckydye commented 3 months ago

Closes https://github.com/biomejs/biome-zed/issues/18

With this PR the biome binary used by the extension can be configured in the zed settings like this:

{
  "lsp": {
    "biome": {
      "binary": {
        "path": "~/biome/target/debug/biome",
        "arguments": ["lsp-proxy"]
      }
    }
  } 
}

Then the logs will print something like the following:

2024-05-28T01:11:04+02:00 [INFO] starting language server. binary path: "~/biome/target/debug/biome", working directory: "<project>", args: ["lsp-proxy"]