Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Refresh copilot suggestions when undoing/redoing

Antonio Scandurra7a7dc956113b
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index dd32d7420c4..041f0b50c60 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -3991,6 +3991,7 @@ impl Editor {
}
self.request_autoscroll(Autoscroll::fit(), cx);
self.unmark_text(cx);
+ self.refresh_copilot_suggestions(cx);
cx.emit(Event::Edited);
}
}
@@ -4005,6 +4006,7 @@ impl Editor {
}
self.request_autoscroll(Autoscroll::fit(), cx);
self.unmark_text(cx);
+ self.refresh_copilot_suggestions(cx);
cx.emit(Event::Edited);
}
}