Skip to content

Commit

Permalink
Add shell: true
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Aug 23, 2024
1 parent ab348d5 commit 313d05c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ async function main(): Promise<void> {

// Resolve redhat.java dependency
const [cli, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
cp.spawnSync(cli, [...args, '--install-extension', 'redhat.java'], {
const options: cp.SpawnSyncOptionsWithStringEncoding = {
encoding: 'utf-8',
stdio: 'inherit'
});
stdio: 'inherit',
};
if (process.platform === 'win32') {
options.shell = true;
}
cp.spawnSync(cli, [...args, '--install-extension', 'redhat.java'], options);

// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
Expand Down

0 comments on commit 313d05c

Please sign in to comment.