mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add option to disable all-targets.
Can be useful in embedded.
This commit is contained in:
parent
4e24b25c66
commit
a85cd6455a
3 changed files with 18 additions and 1 deletions
|
@ -83,7 +83,10 @@ export class CargoWatchProvider implements vscode.Disposable {
|
|||
|
||||
let args =
|
||||
Server.config.cargoWatchOptions.command +
|
||||
' --all-targets --message-format json';
|
||||
' --message-format json';
|
||||
if (Server.config.cargoWatchOptions.allTargets) {
|
||||
args += ' --all-targets';
|
||||
}
|
||||
if (Server.config.cargoWatchOptions.command.length > 0) {
|
||||
// Excape the double quote string:
|
||||
args += ' ' + Server.config.cargoWatchOptions.arguments;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue