diff options
author | Aleksey Kladov <[email protected]> | 2019-08-21 15:30:58 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-08-21 15:30:58 +0100 |
commit | 6ab85cc192dc32ee29ef7a0ba972b473f0133102 (patch) | |
tree | 5f108ba6ce0f81dca73f7d22239da8a0fab2f7e9 /crates/ra_lsp_server/src/main.rs | |
parent | 8521f0456f442eff2d7010f055d98147874a5413 (diff) |
fix default for the exlude key
Diffstat (limited to 'crates/ra_lsp_server/src/main.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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<()> { | |||
48 | 48 | ||
49 | let opts = params | 49 | let opts = params |
50 | .initialization_options | 50 | .initialization_options |
51 | .and_then(|v| ServerConfig::deserialize(v).ok()) | 51 | .and_then(|v| { |
52 | ServerConfig::deserialize(v) | ||
53 | .map_err(|e| log::error!("failed to deserialize config: {}", e)) | ||
54 | .ok() | ||
55 | }) | ||
52 | .unwrap_or_default(); | 56 | .unwrap_or_default(); |
53 | |||
54 | ra_lsp_server::main_loop(workspace_roots, params.capabilities, opts, r, s) | 57 | ra_lsp_server::main_loop(workspace_roots, params.capabilities, opts, r, s) |
55 | })?; | 58 | })?; |
56 | log::info!("shutting down IO..."); | 59 | log::info!("shutting down IO..."); |