Sfoglia il codice sorgente

do not install gopls if go is not installed

Dax Raad 7 mesi fa
parent
commit
8c4b5e088b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      packages/opencode/src/lsp/server.ts

+ 1 - 0
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")) return
         log.info("installing gopls")
         const proc = Bun.spawn({
           cmd: ["go", "install", "golang.org/x/tools/gopls@latest"],