Get tests passing after diagnostic + selection changes

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2021-12-13 11:34:56 -08:00
parent 418a9a3d66
commit 52b8e3d1a2
3 changed files with 39 additions and 4 deletions

View file

@ -5948,6 +5948,11 @@ mod tests {
.update(cx, |display_map, cx| display_map.snapshot(cx));
self.selections
.iter()
.chain(
self.pending_selection
.as_ref()
.map(|pending| &pending.selection),
)
.map(|s| {
if s.reversed {
s.end.to_display_point(&display_map)..s.start.to_display_point(&display_map)