mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Configuration plumbing for cargo watcher
This commit is contained in:
parent
41a1ec723c
commit
6af4bf7a8d
7 changed files with 85 additions and 86 deletions
|
@ -32,6 +32,10 @@ pub struct ServerConfig {
|
|||
|
||||
pub max_inlay_hint_length: Option<usize>,
|
||||
|
||||
pub cargo_check_enable: bool,
|
||||
pub cargo_check_command: Option<String>,
|
||||
pub cargo_check_args: Vec<String>,
|
||||
|
||||
/// For internal usage to make integrated tests faster.
|
||||
#[serde(deserialize_with = "nullable_bool_true")]
|
||||
pub with_sysroot: bool,
|
||||
|
@ -51,6 +55,9 @@ impl Default for ServerConfig {
|
|||
use_client_watching: false,
|
||||
lru_capacity: None,
|
||||
max_inlay_hint_length: None,
|
||||
cargo_check_enable: true,
|
||||
cargo_check_command: None,
|
||||
cargo_check_args: vec![],
|
||||
with_sysroot: true,
|
||||
feature_flags: FxHashMap::default(),
|
||||
cargo_features: Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue