mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
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:
commit
eeb192b79a
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue