Skip to content

Commit 57c3ae8

Browse files
authored
Merge pull request #5125 from OmniSharp/spawn-with-shell
Pass "shell: true" as a spawn option when launching O#
2 parents e316b14 + 3ad4ee1 commit 57c3ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/omnisharp/launcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ async function launchDotnet(launchInfo: LaunchInfo, cwd: string, args: string[],
353353
argsCopy.unshift(`"${launchInfo.DotnetLaunchPath ?? launchInfo.LaunchPath}"`);
354354
}
355355

356-
const process = spawn(command, argsCopy, { detached: false, cwd, env: dotnetInfo.env });
356+
const process = spawn(command, argsCopy, { detached: false, cwd, env: dotnetInfo.env, shell: true });
357357

358358
return {
359359
process,

0 commit comments

Comments
 (0)