From 6ab85cc192dc32ee29ef7a0ba972b473f0133102 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 21 Aug 2019 17:30:58 +0300 Subject: fix default for the exlude key --- crates/ra_lsp_server/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/ra_lsp_server/src/main.rs') diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index 1a2ab1bc2..36d4898bd 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs @@ -48,9 +48,12 @@ fn main_inner() -> Result<()> { let opts = params .initialization_options - .and_then(|v| ServerConfig::deserialize(v).ok()) + .and_then(|v| { + ServerConfig::deserialize(v) + .map_err(|e| log::error!("failed to deserialize config: {}", e)) + .ok() + }) .unwrap_or_default(); - ra_lsp_server::main_loop(workspace_roots, params.capabilities, opts, r, s) })?; log::info!("shutting down IO..."); -- cgit v1.2.3