From 918addee2380d778b0998fc197c7037c0b09a0fa Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 8 Aug 2019 22:23:05 +0300 Subject: Show backtraces in lens runnables --- crates/ra_lsp_server/src/main_loop/handlers.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src/main_loop') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 686ee5d12..d854b0156 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -713,7 +713,11 @@ pub fn handle_code_lens( label: Default::default(), bin: "cargo".into(), args, - env: Default::default(), + env: { + let mut m = FxHashMap::default(); + m.insert("RUST_BACKTRACE".to_string(), "short".to_string()); + m + }, cwd: workspace_root.map(|root| root.to_string_lossy().to_string()), }; -- cgit v1.2.3