Skip to content

Commit a66ba22

Browse files
committed
tweak
1 parent 284a010 commit a66ba22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/test-harness/src/launchVscodeAndRunTests.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
resolveCliArgsFromVSCodeExecutablePath,
99
runTests,
1010
} from "@vscode/test-electron";
11+
import { sync } from "cross-spawn";
1112
import * as os from "node:os";
1213
import * as path from "node:path";
13-
import { spawnSync } from "node:child_process";
1414

1515
/**
1616
* Downloads and launches VSCode, instructing it to run the test runner
@@ -53,7 +53,8 @@ export async function launchVscodeAndRunTests(extensionTestsPath: string) {
5353
console.log(`cli: ${cli}`);
5454
console.log(JSON.stringify(extensionInstallArgs, null, 2));
5555

56-
const { status, signal, error } = spawnSync(cli, extensionInstallArgs, {
56+
const { status, signal, error } = sync(cli, extensionInstallArgs, {
57+
encoding: "utf-8",
5758
stdio: "inherit",
5859
});
5960

0 commit comments

Comments
 (0)