Finish getting multiple diagnostics sources building and running

This commit is contained in:
Julia 2023-04-19 15:28:09 -04:00 committed by Max Brunsfeld
parent bb4de47b15
commit 6156dbced0
8 changed files with 34 additions and 23 deletions

View file

@ -620,7 +620,7 @@ mod tests {
}],
&snapshot,
);
buffer.update_diagnostics(set, cx);
buffer.update_diagnostics(0, set, cx);
});
// Hover pops diagnostic immediately

View file

@ -2800,7 +2800,7 @@ impl MultiBufferSnapshot {
) -> impl Iterator<Item = DiagnosticEntry<O>> + 'a
where
T: 'a + ToOffset,
O: 'a + text::FromAnchor,
O: 'a + text::FromAnchor + Ord,
{
self.as_singleton()
.into_iter()