As tested by @edwin0cheng, Windows requires the quotes removed in the
previous commit. This commit re-adds the quotes gated by an if statement
on the node environment, so that quotes are only added on Windows.
// Excape the double quote string:
args += ' ' + Server.config.cargoWatchOptions.checkArguments;
}
+ // Windows handles arguments differently than the unix-likes, so we need to wrap the args in double quotes
+ if (process.platform == "win32") {
+ args = '"' + args + '"';
+ }
// Start the cargo watch with json message
this.cargoProcess = child_process.spawn(