opencode
opencode copied to clipboard
fix(lsp): fix bun-based LSP server auto-installation
Summary
Fixes auto-installation of bun-based LSP servers (Svelte, Astro, Vue, Pyright, etc.) that were failing silently.
Issues
- Using
bun install <pkg>instead ofbun add <pkg>- install doesn't add new packages - Using
stdout: "pipe"without reading output caused buffer deadlock - Missing
package.jsonin~/.local/share/opencode/bin/caused bun to walk up and use a parentpackage.json
Changes
- Change
bun install→bun addfor all 8 LSP installers - Change
stdout/stderr/stdin: "pipe"→"ignore"to prevent deadlock - Create empty
package.jsonin bin directory on startup to anchor bun installs