Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
FUSETOOLS2-2371: provide workaround to install VS Code extensions with
Browse files Browse the repository at this point in the history
latest Node security release

see nodejs/node#52554 (comment)
Applying it on Windows only otherwise it is breaking MacOS with error:
`/bin/sh:
/Users/runner/work/vscode-camelk/vscode-camelk/.vscode-test/vscode-darwin-arm64-1.85.2/Visual:
No such file or directory`

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed May 2, 2024
1 parent 6baff20 commit 65f5f4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as path from 'path';
import * as cp from 'child_process';

import { downloadAndUnzipVSCode, resolveCliArgsFromVSCodeExecutablePath, runTests } from '@vscode/test-electron';
import * as os from 'os';

async function main(): Promise<void> {
try {
Expand Down Expand Up @@ -46,7 +47,8 @@ async function main(): Promise<void> {
function installExtraExtension(cliPath: string, extensionId: string, args: string[]) {
cp.spawnSync(cliPath, [...args, '--install-extension', extensionId, '--force'], {
encoding: 'utf-8',
stdio: 'inherit'
stdio: 'inherit',
shell: os.platform() === 'win32' // to workaround https://github.com/nodejs/node/issues/52554#issuecomment-2060026269
});
console.log(`VS Code extension ${extensionId} installed`);
}
Expand Down

0 comments on commit 65f5f4f

Please sign in to comment.