biomejs / biome-zed

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

fix: biome installed with pnpm fails to start #34

Closed luckydye closed 1 month ago

luckydye commented 1 month ago

Resolves https://github.com/biomejs/biome-zed/issues/33

With this PR the extension always uses node_modules/@biomejs/biome/bin/biome for the worktree. Only when biome is not installed in the project we use the platform specific binary directly.

Note: In theroy we could use oxc_resolver to find the package with the correct binary, but resolving absolute paths behaves odd in the wasm runtime. Maybe in the future we can do a better job with this.