don't load sysroot in most heavy tests

This commit is contained in:
Aleksey Kladov 2019-08-19 15:41:18 +03:00
parent cef90ce45e
commit 7cd9b1dd7a
7 changed files with 42 additions and 17 deletions

View file

@ -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,
}
}
}