Unnamed repository; edit this file 'description' to name the repository.
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.
bors 2024-07-24
parent c155ad0 · parent d0017ce · commit eeb192b
-rw-r--r--crates/rust-analyzer/src/handlers/request.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/handlers/request.rs b/crates/rust-analyzer/src/handlers/request.rs
index 8ec159278d..44ff273b5a 100644
--- a/crates/rust-analyzer/src/handlers/request.rs
+++ b/crates/rust-analyzer/src/handlers/request.rs
@@ -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)
}