From 08c3fddc65a7c8882845d87f84632143ac880409 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 13 Jan 2022 10:14:27 +0100 Subject: [PATCH] Allow splitting of project diagnostics --- crates/diagnostics/src/diagnostics.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rs index 098e554574..47bea529c1 100644 --- a/crates/diagnostics/src/diagnostics.rs +++ b/crates/diagnostics/src/diagnostics.rs @@ -586,6 +586,18 @@ impl workspace::ItemView for ProjectDiagnosticsEditor { Event::Saved | Event::Dirtied | Event::FileHandleChanged ) } + + fn clone_on_split(&self, cx: &mut ViewContext) -> Option + where + Self: Sized, + { + Some(ProjectDiagnosticsEditor::new( + self.model.clone(), + self.workspace.clone(), + self.settings.clone(), + cx, + )) + } } fn path_header_renderer(buffer: ModelHandle, build_settings: BuildSettings) -> RenderBlock {