]> git.lizzy.rs Git - rust.git/commitdiff
fix default for the exlude key
authorAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 21 Aug 2019 14:30:58 +0000 (17:30 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 21 Aug 2019 14:30:58 +0000 (17:30 +0300)
crates/ra_lsp_server/src/main.rs
crates/ra_lsp_server/src/main_loop.rs
editors/code/package.json

index 1a2ab1bc2f1596fcd6bd99b94fb15e31a6b7bb81..36d4898bd92dae349c68cf5733f1652a41234207 100644 (file)
@@ -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...");
index 3ee0ad6522bfdd93086242d46908aa9f0338c30c..fcb7823861402ec243d0161cfd399a2cc18ca134 100644 (file)
@@ -586,6 +586,7 @@ fn update_file_notifications_on_threadpool(
     sender: Sender<Task>,
     subscriptions: Vec<FileId>,
 ) {
+    log::trace!("updating notifications for {:?}", subscriptions);
     pool.execute(move || {
         for file_id in subscriptions {
             match handlers::publish_diagnostics(&world, file_id) {
index 48ab886bf87dd20c74ddb8eea72ea5ab1d34126e..98faf538f2c752df69a6bafafa4de9dcd4a45575 100644 (file)
                 },
                 "rust-analyzer.excludeGlobs": {
                     "type": "array",
-                    "default": "[]",
+                    "default": [],
                     "description": "Paths to exclude from analysis"
                 },
                 "rust-analyzer.cargo-watch.arguments": {