summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-05 13:49:59 -0400
committerDax Raad <[email protected]>2025-06-05 13:51:18 -0400
commit3cd7ae0807bc2aabe1702b24baa44ad06b491e39 (patch)
tree4bcc9921b914241e0377594c7258165a0a56d80d
parent299a74061a46f5eb14d459b561f42d85fd359a18 (diff)
downloadopencode-3cd7ae0807bc2aabe1702b24baa44ad06b491e39.tar.gz
opencode-3cd7ae0807bc2aabe1702b24baa44ad06b491e39.zip
gopls
-rw-r--r--packages/opencode/src/lsp/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/opencode/src/lsp/index.ts b/packages/opencode/src/lsp/index.ts
index 3cd021a22..90463e079 100644
--- a/packages/opencode/src/lsp/index.ts
+++ b/packages/opencode/src/lsp/index.ts
@@ -30,6 +30,9 @@ export namespace LSP {
for (const match of matches) {
const existing = s.clients.get(match.id)
if (existing) continue
+ const [binary] = match.command
+ const bin = Bun.which(binary)
+ if (!bin) continue
const client = await LSPClient.create({
cmd: match.command,
serverID: match.id,
@@ -103,13 +106,11 @@ export namespace LSP {
".ctsx",
],
},
- /*
{
id: "golang",
command: ["gopls"],
extensions: [".go"],
},
- */
]
export namespace Diagnostic {