diff --git a/src/runner.ts b/src/runner.ts index 3c17fe1af1fac365a57817e509ffc513557dfbc4..8e84edaea1f74175442628b9a9c4aabc33bf86d4 100644 --- a/src/runner.ts +++ b/src/runner.ts @@ -56,7 +56,7 @@ export class Runner { }; let headerAsFlag = (path: string) => - path === "" ? [] : ["-I", path.replace(" ", "\\ ")]; + path === "" ? [] : ["-I", path.replace(/ /g, "\\ ")]; // Todo: allow customizable flags let execute = new vscode.ProcessExecution(