mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 02:48:34 +00:00
Allow splitting of project diagnostics
This commit is contained in:
parent
bb3fc8efd7
commit
08c3fddc65
1 changed files with 12 additions and 0 deletions
|
@ -586,6 +586,18 @@ impl workspace::ItemView for ProjectDiagnosticsEditor {
|
|||
Event::Saved | Event::Dirtied | Event::FileHandleChanged
|
||||
)
|
||||
}
|
||||
|
||||
fn clone_on_split(&self, cx: &mut ViewContext<Self>) -> Option<Self>
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
Some(ProjectDiagnosticsEditor::new(
|
||||
self.model.clone(),
|
||||
self.workspace.clone(),
|
||||
self.settings.clone(),
|
||||
cx,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn path_header_renderer(buffer: ModelHandle<Buffer>, build_settings: BuildSettings) -> RenderBlock {
|
||||
|
|
Loading…
Reference in a new issue