From 7a7dc956113b05c68f084f9c6308f0f254187204 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 5 Apr 2023 10:27:19 +0200 Subject: [PATCH] Refresh copilot suggestions when undoing/redoing --- crates/editor/src/editor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index dd32d7420c4ac234974ecb6e6e6b5aa2c7ff1021..041f0b50c60241ec1f89c8f4ee143cdb7c28879c 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); } }