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...");
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) {
},
"rust-analyzer.excludeGlobs": {
"type": "array",
- "default": "[]",
+ "default": [],
"description": "Paths to exclude from analysis"
},
"rust-analyzer.cargo-watch.arguments": {