mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
don't load sysroot in most heavy tests
This commit is contained in:
parent
cef90ce45e
commit
7cd9b1dd7a
7 changed files with 42 additions and 17 deletions
|
@ -21,6 +21,10 @@ pub struct ServerConfig {
|
|||
pub exclude_globs: Vec<String>,
|
||||
|
||||
pub lru_capacity: Option<usize>,
|
||||
|
||||
/// For internal usage to make integrated tests faster.
|
||||
#[serde(deserialize_with = "nullable_bool_true")]
|
||||
pub with_sysroot: bool,
|
||||
}
|
||||
|
||||
impl Default for ServerConfig {
|
||||
|
@ -30,6 +34,7 @@ impl Default for ServerConfig {
|
|||
show_workspace_loaded: true,
|
||||
exclude_globs: Vec::new(),
|
||||
lru_capacity: None,
|
||||
with_sysroot: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue