Auto merge of #17674 - davidbarsky:david/add-more-information-to-status-command, r=Veykril

internal: add more output to the status command

Bit of a lazy change, but this is was pretty handy. I think I should clean up the configuration into something a bit more legible (maybe serialize as JSON?), but I think this is a good enough starting point that we might as well start asking people for it in issue reports.
This commit is contained in:
bors 2024-07-24 10:10:58 +00:00
commit eeb192b79a

View file

@ -111,6 +111,13 @@ pub(crate) fn handle_analyzer_status(
.status(file_id)
.unwrap_or_else(|_| "Analysis retrieval was cancelled".to_owned()),
);
buf.push_str("\nVersion: \n");
format_to!(buf, "{}", crate::version());
buf.push_str("\nConfiguration: \n");
format_to!(buf, "{:?}", snap.config);
Ok(buf)
}