aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorEmil Lauridsen <[email protected]>2019-04-03 09:38:18 +0100
committerEmil Lauridsen <[email protected]>2019-04-03 09:38:18 +0100
commit3a79490187264c5cf11a59d8fd1738f876829f6a (patch)
treec6f332246bae531f6878973197ff566bfa6e2615 /editors
parent4d78c85de2429d89a3cb1fd688ae5a3d7596310f (diff)
Add extra double quotes only on Windows.
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.
Diffstat (limited to 'editors')
-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(