mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Keep VSCode config mostly backwards compatible
This commit is contained in:
parent
71d2d81dcc
commit
0cdbd08149
8 changed files with 71 additions and 84 deletions
|
@ -32,9 +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>,
|
||||
pub cargo_watch_enable: bool,
|
||||
pub cargo_watch_args: Vec<String>,
|
||||
pub cargo_watch_command: String,
|
||||
pub cargo_watch_all_targets: bool,
|
||||
|
||||
/// For internal usage to make integrated tests faster.
|
||||
#[serde(deserialize_with = "nullable_bool_true")]
|
||||
|
@ -55,9 +56,10 @@ 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![],
|
||||
cargo_watch_enable: true,
|
||||
cargo_watch_args: Vec::new(),
|
||||
cargo_watch_command: "check".to_string(),
|
||||
cargo_watch_all_targets: true,
|
||||
with_sysroot: true,
|
||||
feature_flags: FxHashMap::default(),
|
||||
cargo_features: Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue