aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/commands/cargo_watch.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/src/commands/cargo_watch.ts b/editors/code/src/commands/cargo_watch.ts
index 5534084bb..6b6113017 100644
--- a/editors/code/src/commands/cargo_watch.ts
+++ b/editors/code/src/commands/cargo_watch.ts
@@ -51,6 +51,10 @@ export class CargoWatchProvider {
51 // Excape the double quote string: 51 // Excape the double quote string:
52 args += ' ' + Server.config.cargoWatchOptions.checkArguments; 52 args += ' ' + Server.config.cargoWatchOptions.checkArguments;
53 } 53 }
54 // Windows handles arguments differently than the unix-likes, so we need to wrap the args in double quotes
55 if (process.platform == "win32") {
56 args = '"' + args + '"';
57 }
54 58
55 // Start the cargo watch with json message 59 // Start the cargo watch with json message
56 this.cargoProcess = child_process.spawn( 60 this.cargoProcess = child_process.spawn(