Add terminal_width debugging flag

This commit is contained in:
Esteban Küber 2019-08-14 17:57:28 -07:00
parent 9980796d6d
commit 21f2e93345
10 changed files with 50 additions and 23 deletions

View file

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