Skip to content

Commit fe29c75

Browse files
committed
fix(vscode): move test user-data dir out of the workspace
macOS caps Unix domain socket paths at 103 chars. The default user-data dir (<workspace>/.vscode-test/user-data) puts VS Code's main socket well past that on CI runners, so the host died with: listen EINVAL: invalid argument .../user-data/1.13-main.sock Point --user-data-dir at os.tmpdir() instead, which keeps the socket short on every platform. test-electron skips its own default when the flag is already present.
1 parent d512932 commit fe29c75

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import { defineConfig } from '@vscode/test-cli';
2+
import * as os from 'node:os';
3+
import * as path from 'node:path';
4+
5+
// Keep the user-data dir out of the workspace. VS Code opens a Unix domain
6+
// socket inside it, and macOS caps those paths at 103 chars — the default
7+
// (<workspace>/.vscode-test/user-data) overflows on CI runners, which fail
8+
// with `listen EINVAL: invalid argument .../1.13-main.sock`.
9+
const userDataDir = path.join(os.tmpdir(), 'rcm-vscode-test');
210

311
export default defineConfig({
412
files: 'out/test/**/*.test.js',
13+
launchArgs: [`--user-data-dir=${userDataDir}`],
514
});

0 commit comments

Comments
 (0)