Skip to content

Commit ef02014

Browse files
restore
1 parent 35ed54c commit ef02014

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/test-harness/src/launchVscodeAndRunTests.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export async function launchVscodeAndRunTests(extensionTestsPath: string) {
2727
"packages/cursorless-vscode/dist",
2828
);
2929

30-
// const crashDir = getEnvironmentVariableStrict("VSCODE_CRASH_DIR");
31-
// const logsDir = getEnvironmentVariableStrict("VSCODE_LOGS_DIR");
30+
const crashDir = getEnvironmentVariableStrict("VSCODE_CRASH_DIR");
31+
const logsDir = getEnvironmentVariableStrict("VSCODE_LOGS_DIR");
3232
const useLegacyVscode =
3333
getEnvironmentVariableStrict("APP_VERSION") === "legacy";
3434

@@ -81,7 +81,10 @@ export async function launchVscodeAndRunTests(extensionTestsPath: string) {
8181
// don't bother. Can be re-enabled if we ever need it; on windows it only
8282
// hangs some of the time, so might be enough to get a crash dump when you
8383
// need it.
84-
launchArgs: ["--force-node-api-uncaught-exceptions-policy=true"],
84+
launchArgs:
85+
useLegacyVscode || os.platform() === "win32"
86+
? undefined
87+
: [`--crash-reporter-directory=${crashDir}`, `--logsPath=${logsDir}`],
8588
});
8689

8790
console.log(`Returned from "runTests" with value: ${code}`);

0 commit comments

Comments
 (0)