Skip to content

Commit 07dac73

Browse files
committed
escape "&" on windows
1 parent c853b04 commit 07dac73

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
@@ -202,7 +202,7 @@ function launchWindows(launchPath: string, cwd: string, args: string[]): LaunchR
202202
const hasSpaceWithoutQuotes = /^[^"].* .*[^"]/;
203203
return hasSpaceWithoutQuotes.test(arg)
204204
? `"${arg}"`
205-
: arg;
205+
: arg.replace("&","^&");
206206
}
207207

208208
let argsCopy = args.slice(0); // create copy of args

0 commit comments

Comments
 (0)