From deea8f52d9803bb8a93d5dbd935970a20f07a51e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 6 Aug 2019 13:34:28 +0200 Subject: allow to exclude certain files and directories --- crates/ra_lsp_server/src/config.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'crates/ra_lsp_server/src/config.rs') diff --git a/crates/ra_lsp_server/src/config.rs b/crates/ra_lsp_server/src/config.rs index a16cc292e..6dcdc695a 100644 --- a/crates/ra_lsp_server/src/config.rs +++ b/crates/ra_lsp_server/src/config.rs @@ -1,7 +1,7 @@ use serde::{Deserialize, Deserializer}; /// Client provided initialization options -#[derive(Deserialize, Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Deserialize, Clone, Debug, PartialEq, Eq)] #[serde(rename_all = "camelCase", default)] pub struct ServerConfig { /// Whether the client supports our custom highlighting publishing decorations. @@ -18,12 +18,19 @@ pub struct ServerConfig { #[serde(deserialize_with = "nullable_bool_true")] pub show_workspace_loaded: bool, + pub exclude_globs: Vec, + pub lru_capacity: Option, } impl Default for ServerConfig { fn default() -> ServerConfig { - ServerConfig { publish_decorations: false, show_workspace_loaded: true, lru_capacity: None } + ServerConfig { + publish_decorations: false, + show_workspace_loaded: true, + exclude_globs: Vec::new(), + lru_capacity: None, + } } } -- cgit v1.2.3