Only preserve excerpts for invalid diagnostics if they contain cursors

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-12-23 16:33:50 +01:00
co-authored by Nathan Sobo
parent dcf26acaac
commit 304afc1813
3 changed files with 64 additions and 33 deletions
+4
View File
@@ -3116,6 +3116,10 @@ impl Editor {
.collect()
}
pub fn local_anchor_selections(&self) -> &Arc<[Selection<Anchor>]> {
&self.selections
}
fn resolve_selections<'a, D, I>(
&self,
selections: I,