Show backtraces in lens runnables

This commit is contained in:
Kirill Bulatov 2019-08-08 22:23:05 +03:00
parent e3f8e6023d
commit 918addee23

View File

@ -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()),
};