WIP: Massage opening of editors
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
1f9885ec42
commit
728c708150
8 changed files with 338 additions and 134 deletions
|
@ -155,7 +155,9 @@ impl ProjectDiagnosticsEditor {
|
|||
async move {
|
||||
for path in paths {
|
||||
let buffer = project
|
||||
.update(&mut cx, |project, cx| project.open_buffer(path.clone(), cx))
|
||||
.update(&mut cx, |project, cx| {
|
||||
project.open_buffer_for_path(path.clone(), cx)
|
||||
})
|
||||
.await?;
|
||||
this.update(&mut cx, |view, cx| view.populate_excerpts(path, buffer, cx))
|
||||
}
|
||||
|
@ -449,10 +451,6 @@ impl workspace::ItemView for ProjectDiagnosticsEditor {
|
|||
None
|
||||
}
|
||||
|
||||
fn project_entry_id(&self, _: &AppContext) -> Option<project::ProjectEntryId> {
|
||||
None
|
||||
}
|
||||
|
||||
fn navigate(&mut self, data: Box<dyn Any>, cx: &mut ViewContext<Self>) {
|
||||
self.editor
|
||||
.update(cx, |editor, cx| editor.navigate(data, cx));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue