Show only disk-based diagnostics in ProjectDiagnosticsEditor
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
304afc1813
commit
b9d1ca4341
@@ -237,7 +237,11 @@ impl ProjectDiagnosticsEditor {
|
||||
let mut diagnostic_blocks = Vec::new();
|
||||
let excerpts_snapshot = self.excerpts.update(cx, |excerpts, excerpts_cx| {
|
||||
let mut old_groups = groups.iter_mut().enumerate().peekable();
|
||||
let mut new_groups = snapshot.diagnostic_groups().into_iter().peekable();
|
||||
let mut new_groups = snapshot
|
||||
.diagnostic_groups()
|
||||
.into_iter()
|
||||
.filter(|group| group.entries[group.primary_ix].diagnostic.is_disk_based)
|
||||
.peekable();
|
||||
|
||||
loop {
|
||||
let mut to_insert = None;
|
||||
|
||||
Reference in New Issue
Block a user