Skip to content

Commit b67e9b3

Browse files
committed
add comment for workaround
1 parent 13c5950 commit b67e9b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.vscode-test.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const baseConfig = /** @type {Parameters<typeof defineConfig>[0]} */ ({
55
version: process.env.VSCODE_VERSION ?? 'stable',
66
mocha: {
77
timeout: 30_000,
8+
// If the test file is ESM, importing 'vscode' can cause a deadlock.
9+
// ref: https://github.com/microsoft/vscode-test-cli/issues/77#issuecomment-3696907905
10+
// Therefore, we transpile with tsx to CJS before executing.
811
require: ['tsx/cjs', './scripts/vscode-test-setup.ts'],
912
},
1013
download: {

0 commit comments

Comments
 (0)