Fix run indicators with expanded diff hunks (#23758)

Fix runnable positioning when diff hunks are altered.

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-01-27 23:05:46 -07:00 committed by GitHub
parent ee5f270f3f
commit 7deafdafae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 6 deletions

View file

@ -13381,6 +13381,9 @@ impl Editor {
cx.emit(EditorEvent::Reparsed(*buffer_id));
}
multi_buffer::Event::DiffHunksToggled => {
self.tasks_update_task = Some(self.refresh_runnables(window, cx));
}
multi_buffer::Event::LanguageChanged(buffer_id) => {
linked_editing_ranges::refresh_linked_ranges(self, window, cx);
cx.emit(EditorEvent::Reparsed(*buffer_id));