Show only disk-based diagnostics in ProjectDiagnosticsEditor
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
304afc1813
commit
b9d1ca4341
7 changed files with 46 additions and 42 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue