From 854dac335d3e8295fba637ad6413d952e6b973ef Mon Sep 17 00:00:00 2001 From: Aleksi Juvani Date: Tue, 21 May 2019 09:44:28 +0300 Subject: [PATCH] Pass `--all-targets` to `cargo watch` --- editors/code/src/commands/cargo_watch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editors/code/src/commands/cargo_watch.ts b/editors/code/src/commands/cargo_watch.ts index 1d939e28cc..6ba794bb33 100644 --- a/editors/code/src/commands/cargo_watch.ts +++ b/editors/code/src/commands/cargo_watch.ts @@ -57,7 +57,7 @@ export class CargoWatchProvider implements vscode.Disposable { return; } - let args = 'check --message-format json'; + let args = 'check --all-targets --message-format json'; if (Server.config.cargoWatchOptions.checkArguments.length > 0) { // Excape the double quote string: args += ' ' + Server.config.cargoWatchOptions.checkArguments;