Skip to content

Commit 5fd18ee

Browse files
committed
Auto merge of rust-lang#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.
2 parents 20c6698 + 8c6dd09 commit 5fd18ee

File tree

1 file changed

+7
-0
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src/handlers

1 file changed

+7
-0
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ pub(crate) fn handle_analyzer_status(
111111
.status(file_id)
112112
.unwrap_or_else(|_| "Analysis retrieval was cancelled".to_owned()),
113113
);
114+
115+
buf.push_str("\nVersion: \n");
116+
format_to!(buf, "{}", crate::version());
117+
118+
buf.push_str("\nConfiguration: \n");
119+
format_to!(buf, "{:?}", snap.config);
120+
114121
Ok(buf)
115122
}
116123

0 commit comments

Comments
 (0)