Skip to content

Commit

Permalink
Merge pull request #5125 from OmniSharp/spawn-with-shell
Browse files Browse the repository at this point in the history
Pass "shell: true" as a spawn option when launching O#
  • Loading branch information
filipw authored Mar 24, 2022
2 parents e316b14 + 3ad4ee1 commit 57c3ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omnisharp/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ async function launchDotnet(launchInfo: LaunchInfo, cwd: string, args: string[],
argsCopy.unshift(`"${launchInfo.DotnetLaunchPath ?? launchInfo.LaunchPath}"`);
}

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

return {
process,
Expand Down

0 comments on commit 57c3ae8

Please sign in to comment.