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.
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.