diff options
author | Kirill Bulatov <[email protected]> | 2019-08-08 20:23:05 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2019-08-09 19:42:04 +0100 |
commit | 918addee2380d778b0998fc197c7037c0b09a0fa (patch) | |
tree | 7c42aad2c4466a863dce80e41888d49f5a6cf0b4 /crates/ra_lsp_server/src/main_loop | |
parent | e3f8e6023d66ceb37040833bf317d77019bb10f1 (diff) |
Show backtraces in lens runnables
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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( | |||
713 | label: Default::default(), | 713 | label: Default::default(), |
714 | bin: "cargo".into(), | 714 | bin: "cargo".into(), |
715 | args, | 715 | args, |
716 | env: Default::default(), | 716 | env: { |
717 | let mut m = FxHashMap::default(); | ||
718 | m.insert("RUST_BACKTRACE".to_string(), "short".to_string()); | ||
719 | m | ||
720 | }, | ||
717 | cwd: workspace_root.map(|root| root.to_string_lossy().to_string()), | 721 | cwd: workspace_root.map(|root| root.to_string_lossy().to_string()), |
718 | }; | 722 | }; |
719 | 723 | ||