The open source coding agent.
TypeScript
do not install gopls if go is not installed
Dax Raad8c4b5e088ba6
diff --git a/packages/opencode/src/lsp/server.ts b/packages/opencode/src/lsp/server.tsindex 8dde48ee18d..ce7972f52b5 100644--- a/packages/opencode/src/lsp/server.ts+++ b/packages/opencode/src/lsp/server.ts@@ -57,6 +57,7 @@ export namespace LSPServer {PATH: process.env["PATH"] + ":" + Global.Path.bin,})if (!bin) {+ if (!Bun.which("go")) returnlog.info("installing gopls")const proc = Bun.spawn({cmd: ["go", "install", "golang.org/x/tools/gopls@latest"],