Revert "Return the previous suggestion when replacing it"
This reverts commit 971c88db80.
This commit is contained in:
@@ -2881,11 +2881,9 @@ impl Editor {
|
||||
}
|
||||
|
||||
fn hide_copilot_suggestion(&mut self, cx: &mut ViewContext<Self>) -> bool {
|
||||
let old_suggestion = self
|
||||
.display_map
|
||||
.update(cx, |map, cx| map.replace_suggestion::<usize>(None, cx));
|
||||
|
||||
if old_suggestion.is_some() {
|
||||
if self.has_active_copilot_suggestion(cx) {
|
||||
self.display_map
|
||||
.update(cx, |map, cx| map.replace_suggestion::<usize>(None, cx));
|
||||
cx.notify();
|
||||
true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user