internal: Pretty-print Config in status command

Config can become very big, even for relatively small rust project,
and printing everything on one line makes reading the output in VS Code
harder.
This commit is contained in:
Wilfred Hughes 2024-10-23 15:18:43 -07:00
parent f9935be013
commit 909144f606

View file

@ -119,7 +119,7 @@ pub(crate) fn handle_analyzer_status(
format_to!(buf, "{}", crate::version()); format_to!(buf, "{}", crate::version());
buf.push_str("\nConfiguration: \n"); buf.push_str("\nConfiguration: \n");
format_to!(buf, "{:?}", snap.config); format_to!(buf, "{:#?}", snap.config);
Ok(buf) Ok(buf)
} }