From de5f139d33135ae426c778782ab79263a8773bf6 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 25 Nov 2026 16:30:43 +0100 Subject: [PATCH] test(plugins): exit the %~1 reader script with 0 on Windows `set /p` without input exits with errorlevel 1, so execCommand reported the reader script as failed even though it printed its arguments. --- packages/plugin/src/server/process.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugin/src/server/process.test.ts b/packages/plugin/src/server/process.test.ts index abd8e54b50..251f75abfd 100644 --- a/packages/plugin/src/server/process.test.ts +++ b/packages/plugin/src/server/process.test.ts @@ -231,7 +231,8 @@ test.runIf(process.platform === "win32")( const directory = await mkdtemp(path.join(os.tmpdir(), "plugin script reader ")); roots.push(directory); const script = path.join(directory, "read.cmd"); - await writeFile(script, '@echo off\r\n