diff options
author | Aleksei Sidorov <[email protected]> | 2019-06-24 11:02:20 +0100 |
---|---|---|
committer | Aleksei Sidorov <[email protected]> | 2019-06-24 11:02:20 +0100 |
commit | 4722e6d491a29bdb077fc01aa8c5bdc734282c69 (patch) | |
tree | 681b4fd62ce9b2166180713236254a8a25f2b60f /editors/code/src/commands/cargo_watch.ts | |
parent | 7d79be32801036c39507fe96f87ed316e3934662 (diff) |
Introduce cargo-watch.check-command
Diffstat (limited to 'editors/code/src/commands/cargo_watch.ts')
-rw-r--r-- | editors/code/src/commands/cargo_watch.ts | 6 |
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; |