opencode
opencode copied to clipboard
feat: Add support for Deno LSP
This extends the Typescript LSP handler to:
- Detect Deno indicators (
deno.json(c)) when identifying the nearest root - Adds a conditional check to spawn the Deno LSP instead of tsserver if we're in a Deno project (based on the presence of Deno's lockfile or deno.json(c) files.)
Before: https://dev.opencode.ai/s/uV5vfbcO
After: https://dev.opencode.ai/s/QWJh0hnj
The before/after is cool!