Update visible suggestion if edit occurs outside the current editor

This commit is contained in:
Antonio Scandurra 2023-04-05 11:00:08 +02:00
parent 6e821eea4b
commit dcd8bdfc88
2 changed files with 32 additions and 0 deletions

View file

@ -6411,6 +6411,9 @@ impl Editor {
multi_buffer::Event::Edited => {
self.refresh_active_diagnostics(cx);
self.refresh_code_actions(cx);
if self.has_active_copilot_suggestion(cx) {
self.update_visible_copilot_suggestion(cx);
}
cx.emit(Event::BufferEdited);
}
multi_buffer::Event::ExcerptsAdded {