Finish refactoring of how editors are opened

This commit is contained in:
Antonio Scandurra 2022-03-17 11:29:46 +01:00
parent 728c708150
commit aced1e2315
12 changed files with 96 additions and 260 deletions

View file

@ -144,7 +144,7 @@ impl ProjectDiagnosticsEditor {
let diagnostics = cx.add_view(|cx| {
ProjectDiagnosticsEditor::new(workspace.project().clone(), workspace_handle, cx)
});
workspace.open_item(Box::new(diagnostics), cx);
workspace.add_item(Box::new(diagnostics), cx);
}
}