biomejs / biome-zed

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

fix: biome installed with pnpm fails to start #34

Closed luckydye closed 4 months ago

luckydye commented 4 months 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.