Add MultiBufferItemHandle
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
ca697e1bba
commit
b67be5ded3
5 changed files with 74 additions and 16 deletions
|
@ -538,10 +538,8 @@ impl workspace::Item for ProjectDiagnostics {
|
|||
}
|
||||
|
||||
impl workspace::ItemView for ProjectDiagnosticsEditor {
|
||||
type ItemHandle = ModelHandle<ProjectDiagnostics>;
|
||||
|
||||
fn item_handle(&self, _: &AppContext) -> Self::ItemHandle {
|
||||
self.model.clone()
|
||||
fn item_id(&self, _: &AppContext) -> usize {
|
||||
self.model.id()
|
||||
}
|
||||
|
||||
fn tab_content(&self, style: &theme::Tab, _: &AppContext) -> ElementBox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue