Add terminal_width debugging flag
This commit is contained in:
parent
9980796d6d
commit
21f2e93345
10 changed files with 50 additions and 23 deletions
|
@ -219,7 +219,7 @@ impl Diagnostic {
|
|||
}
|
||||
let buf = BufWriter::default();
|
||||
let output = buf.clone();
|
||||
je.json_rendered.new_emitter(Box::new(buf), Some(je.sm.clone()), false)
|
||||
je.json_rendered.new_emitter(Box::new(buf), Some(je.sm.clone()), false, None)
|
||||
.ui_testing(je.ui_testing).emit_diagnostic(db);
|
||||
let output = Arc::try_unwrap(output.0).unwrap().into_inner().unwrap();
|
||||
let output = String::from_utf8(output).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue