diff --git a/packages/test-harness/src/launchVscodeAndRunTests.ts b/packages/test-harness/src/launchVscodeAndRunTests.ts index 3a5f9c7234..ad2442788d 100644 --- a/packages/test-harness/src/launchVscodeAndRunTests.ts +++ b/packages/test-harness/src/launchVscodeAndRunTests.ts @@ -35,7 +35,15 @@ export async function launchVscodeAndRunTests(extensionTestsPath: string) { // NB: We include the exact version here instead of in `test.yml` so that // we don't have to update the branch protection rules every time we bump // the legacy VSCode version. - const vscodeVersion = useLegacyVscode ? "1.82.0" : "stable"; + + // NB: Because of a CI crashing issue the vscode version is pinned. + // https://github.com/cursorless-dev/cursorless/issues/2878 + + const vscodeVersion = useLegacyVscode + ? "1.82.0" + : os.platform() === "win32" + ? "stable" + : "1.97.2"; const vscodeExecutablePath = await downloadAndUnzipVSCode(vscodeVersion); const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);