mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Pass --all-targets
to cargo watch
This commit is contained in:
parent
4369c1c4a1
commit
854dac335d
@ -57,7 +57,7 @@ export class CargoWatchProvider implements vscode.Disposable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let args = 'check --message-format json';
|
let args = 'check --all-targets --message-format json';
|
||||||
if (Server.config.cargoWatchOptions.checkArguments.length > 0) {
|
if (Server.config.cargoWatchOptions.checkArguments.length > 0) {
|
||||||
// Excape the double quote string:
|
// Excape the double quote string:
|
||||||
args += ' ' + Server.config.cargoWatchOptions.checkArguments;
|
args += ' ' + Server.config.cargoWatchOptions.checkArguments;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user