On Windows, executables like npx, tsc, and typescript-language-server are .cmd batch scripts. Node.js's spawn() can't find them without shell: true because it looks for exact binary names, not .cmd wrappers. This caused ENOENT crashes during auto-mode when the LSP tried to spawn npx tsc --noEmit for TypeScript diagnostics. Added shell: true conditional on process.platform === 'win32' in the LSP client's spawn call. Unix platforms are unaffected. Fixes #1222 |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||