Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Git diff recalc in project diagnostics
Juliaecd44e69144f
diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rsindex 9122706ad38..cb1ad13656c 100644--- a/crates/diagnostics/src/diagnostics.rs+++ b/crates/diagnostics/src/diagnostics.rs@@ -575,6 +575,15 @@ impl Item for ProjectDiagnosticsEditor {unreachable!()}+ fn git_diff_recalc(+ &mut self,+ project: ModelHandle<Project>,+ cx: &mut ViewContext<Self>,+ ) -> Task<Result<()>> {+ self.editor+ .update(cx, |editor, cx| editor.git_diff_recalc(project, cx))+ }+fn to_item_events(event: &Self::Event) -> Vec<ItemEvent> {Editor::to_item_events(event)}