Skip to content

Commit

Permalink
Fix vscode-test on Windows (#46)
Browse files Browse the repository at this point in the history
https://code.visualstudio.com/docs/supporting/faq#_previous-release-versions

Windows x86 32-bit versions are no longer actively supported after
release 1.83 and could pose a security risk.

See https://github.com/microsoft/vscode-test how to change the platform.
  • Loading branch information
yurloc authored Jan 15, 2024
1 parent d79c076 commit 8eaef8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ async function main() {
// Passed to --extensionTestsPath
const extensionTestsPath = path.resolve(__dirname, './suite/index');

// Use win64 instead of win32 for testing Windows
const platform = process.platform === 'win32' ? 'win32-x64-archive' : undefined;

// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
await runTests({ extensionDevelopmentPath, extensionTestsPath, platform });
} catch (err) {
console.error('Failed to run tests');
process.exit(1);
Expand Down

0 comments on commit 8eaef8a

Please sign in to comment.