The open source coding agent.
TypeScript
fix(lsp): ESLint LSP server fails to auto-install on Windows (#6366)
Frainer Encarnación337681dbbf0b
diff --git a/packages/opencode/src/lsp/server.ts b/packages/opencode/src/lsp/server.tsindex ba51ba663a3..f56f1b1947b 100644--- a/packages/opencode/src/lsp/server.ts+++ b/packages/opencode/src/lsp/server.ts@@ -196,13 +196,14 @@ export namespace LSPServer {}await fs.rename(extractedPath, finalPath)- await $`npm install`.cwd(finalPath).quiet()- await $`npm run compile`.cwd(finalPath).quiet()+ const npmCmd = process.platform === "win32" ? "npm.cmd" : "npm"+ await $`${npmCmd} install`.cwd(finalPath).quiet()+ await $`${npmCmd} run compile`.cwd(finalPath).quiet()log.info("installed VS Code ESLint server", { serverPath })}- const proc = spawn(BunProc.which(), ["--max-old-space-size=8192", serverPath, "--stdio"], {+ const proc = spawn(BunProc.which(), [serverPath, "--stdio"], {cwd: root,env: {...process.env,