fix(windows): use cross-spawn for shim-backed commands (#18010)

This commit is contained in:
Luke Parker 2026-03-19 08:49:16 +10:00 committed by GitHub
parent 8ee939c741
commit 54ed87d53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 126 additions and 38 deletions

View file

@ -5,6 +5,7 @@ import { pathToFileURL, fileURLToPath } from "url"
import { createMessageConnection, StreamMessageReader, StreamMessageWriter } from "vscode-jsonrpc/node"
import type { Diagnostic as VSCodeDiagnostic } from "vscode-languageserver-types"
import { Log } from "../util/log"
import { Process } from "../util/process"
import { LANGUAGE_EXTENSIONS } from "./language"
import z from "zod"
import type { LSPServer } from "./server"
@ -239,7 +240,7 @@ export namespace LSPClient {
l.info("shutting down")
connection.end()
connection.dispose()
input.server.process.kill()
await Process.stop(input.server.process)
l.info("shutdown")
},
}