WIP - BlockSnapshot::longest_row

This commit is contained in:
Max Brunsfeld 2021-11-17 15:33:02 -08:00
parent cb18131432
commit 8230dd9a3b
2 changed files with 55 additions and 3 deletions

View file

@ -2225,7 +2225,7 @@ impl Editor {
let buffer = self.buffer.read(cx);
let diagnostic_group = buffer
.diagnostic_group::<Point>(group_id)
.map(|(range, diagnostic)| (range, format!("{}\n", diagnostic.message)))
.map(|(range, diagnostic)| (range, diagnostic.message.clone()))
.collect::<Vec<_>>();
dbg!(group_id, &diagnostic_group);