diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rs index 098e5545742cdc7bc51e31a9b4ae908c15ca34ca..47bea529c17b160017d7a744bf1ccdc597234c6a 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 {