aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/cargo_watch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/commands/cargo_watch.ts')
-rw-r--r--editors/code/src/commands/cargo_watch.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/src/commands/cargo_watch.ts b/editors/code/src/commands/cargo_watch.ts
index 6ba794bb3..db92e03f4 100644
--- a/editors/code/src/commands/cargo_watch.ts
+++ b/editors/code/src/commands/cargo_watch.ts
@@ -43,7 +43,7 @@ export class CargoWatchProvider implements vscode.Disposable {
43 this.diagnosticCollection = vscode.languages.createDiagnosticCollection( 43 this.diagnosticCollection = vscode.languages.createDiagnosticCollection(
44 'rustc' 44 'rustc'
45 ); 45 );
46 this.statusDisplay = new StatusDisplay(); 46 this.statusDisplay = new StatusDisplay(Server.config.cargoWatchOptions.checkCommand);
47 this.outputChannel = vscode.window.createOutputChannel( 47 this.outputChannel = vscode.window.createOutputChannel(
48 'Cargo Watch Trace' 48 'Cargo Watch Trace'
49 ); 49 );
@@ -57,7 +57,9 @@ export class CargoWatchProvider implements vscode.Disposable {
57 return; 57 return;
58 } 58 }
59 59
60 let args = 'check --all-targets --message-format json'; 60 let command = Server.config.cargoWatchOptions.checkCommand;
61
62 let args = command + ' --all-targets --message-format json';
61 if (Server.config.cargoWatchOptions.checkArguments.length > 0) { 63 if (Server.config.cargoWatchOptions.checkArguments.length > 0) {
62 // Excape the double quote string: 64 // Excape the double quote string:
63 args += ' ' + Server.config.cargoWatchOptions.checkArguments; 65 args += ' ' + Server.config.cargoWatchOptions.checkArguments;