fix- windows: add shell: true for spawnSync to fix EINVAL with .cmd editors (#18408)

This commit is contained in:
Zac Koch
2026-02-06 13:47:33 -06:00
committed by GitHub
parent 601f0606da
commit 95d79b7cbe

View File

@@ -3087,6 +3087,7 @@ export function useTextBuffer({
setRawMode?.(false);
const { status, error } = spawnSync(command, args, {
stdio: 'inherit',
shell: process.platform === 'win32',
});
if (error) throw error;
if (typeof status === 'number' && status !== 0)