Skip to content

Commit 6947cd0

Browse files
author
PEZ
committed
Add debug logging to see what fails on mac
1 parent 3552f1f commit 6947cd0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

e2e-test-ws/launch.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,15 @@ async function main(vsixPathOrLabel, testWorkspace) {
5151
launchArgs.push('--install-extension', vsixPathOrLabel);
5252
}
5353

54-
const adaptedCliPath = process.platform === 'darwin'
55-
? path.join(path.dirname(cliPath), 'Visual Studio Code - Insiders.app', 'Contents', 'Resources', 'app', 'bin', 'code-insiders')
56-
: cliPath;
57-
58-
const spawnOptions = {
54+
console.log('CLI Path:', cliPath);
55+
console.log('Launch Args:', launchArgs);
56+
const result = cp.spawnSync(cliPath, launchArgs, {
5957
encoding: 'utf-8',
6058
stdio: 'inherit',
6159
shell: true,
62-
windowsVerbatimArguments: process.platform === 'win32'
63-
};
64-
65-
cp.spawnSync(adaptedCliPath, launchArgs, spawnOptions);
60+
windowsVerbatimArguments: true,
61+
});
62+
console.log('Spawn result:', result);
6663

6764
const runOptions = {
6865
// When debugging tests, it can be good to use the development version Joyride

0 commit comments

Comments
 (0)