From ecd44e69144f01a0ac2c52f96d2b2e835b7b2973 Mon Sep 17 00:00:00 2001 From: Julia Date: Mon, 12 Dec 2022 16:54:14 -0500 Subject: [PATCH] Git diff recalc in project diagnostics --- crates/diagnostics/src/diagnostics.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rs index 9122706ad3..cb1ad13656 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, + cx: &mut ViewContext, + ) -> Task> { + self.editor + .update(cx, |editor, cx| editor.git_diff_recalc(project, cx)) + } + fn to_item_events(event: &Self::Event) -> Vec { Editor::to_item_events(event) }