[PR #1902] [CLOSED] feat: Add support for Deno LSP #10105

Closed
opened 2026-02-16 18:14:42 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1902
Author: @Vpr99
Created: 8/13/2025
Status: Closed

Base: devHead: add-deno-lsp-support


📝 Commits (9)

  • 42ae2a6 Add conditional check for Deno project indicators to LSP server
  • 9feb4c4 Simplify NearestRoot usage
  • 020d023 Merge branch 'dev' into add-deno-lsp-support
  • e774aea Merge branch 'dev' into add-deno-lsp-support
  • a477336 Merge branch 'dev' into add-deno-lsp-support
  • 67ce716 Merge branch 'dev' into add-deno-lsp-support
  • ea46eb0 Merge branch 'dev' into add-deno-lsp-support
  • 4d8b813 Merge branch 'dev' into add-deno-lsp-support
  • 57b57b7 Merge branch 'dev' into add-deno-lsp-support

📊 Changes

1 file changed (+28 additions, -2 deletions)

View changed files

📝 packages/opencode/src/lsp/server.ts (+28 -2)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1902 **Author:** [@Vpr99](https://github.com/Vpr99) **Created:** 8/13/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `add-deno-lsp-support` --- ### 📝 Commits (9) - [`42ae2a6`](https://github.com/anomalyco/opencode/commit/42ae2a676b4de9890f82183e3274f825ef142508) Add conditional check for Deno project indicators to LSP server - [`9feb4c4`](https://github.com/anomalyco/opencode/commit/9feb4c42cd4d1e39e48d4852a79d8c8237291470) Simplify NearestRoot usage - [`020d023`](https://github.com/anomalyco/opencode/commit/020d02332d53a6762bbc1e87e1c546ec2512bf36) Merge branch 'dev' into add-deno-lsp-support - [`e774aea`](https://github.com/anomalyco/opencode/commit/e774aeaf77b7cdc0aeeb3aff7e7b36ed2bce7d64) Merge branch 'dev' into add-deno-lsp-support - [`a477336`](https://github.com/anomalyco/opencode/commit/a47733690b6c3a44a92a31be482ba83b0dba2bbd) Merge branch 'dev' into add-deno-lsp-support - [`67ce716`](https://github.com/anomalyco/opencode/commit/67ce716f16ff9cadb0a872bb3e2b27af9f68eb68) Merge branch 'dev' into add-deno-lsp-support - [`ea46eb0`](https://github.com/anomalyco/opencode/commit/ea46eb0a108b615b14eb16b475263cf83458ca0e) Merge branch 'dev' into add-deno-lsp-support - [`4d8b813`](https://github.com/anomalyco/opencode/commit/4d8b813ed41348818f64a35b39a21c1efcd03c15) Merge branch 'dev' into add-deno-lsp-support - [`57b57b7`](https://github.com/anomalyco/opencode/commit/57b57b73bda08c109ee0bd944a78ea1809602de2) Merge branch 'dev' into add-deno-lsp-support ### 📊 Changes **1 file changed** (+28 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/lsp/server.ts` (+28 -2) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:42 -05:00
yindo closed this issue 2026-02-16 18:14:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10105