From 7c07bb63814671f88677c08ddd75862338e40330 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 23 Dec 2020 10:47:05 +0300 Subject: Document, how to view config in effect --- crates/rust-analyzer/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 11cdae57f..1db5b4e7d 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -349,12 +349,12 @@ impl Config { res } pub fn update(&mut self, json: serde_json::Value) { - log::info!("Config::update({:#})", json); + log::info!("updating config from JSON: {:#}", json); if json.is_null() || json.as_object().map_or(false, |it| it.is_empty()) { return; } self.do_update(json); - log::info!("Config::update() = {:#?}", self); + log::info!("updated config: {:#?}", self); } fn do_update(&mut self, json: serde_json::Value) { let data = ConfigData::from_json(json); -- cgit v1.2.3