Always read project entry id from workspace::Item
We cannot store a workspace item's project entry id separately, since buffers' entry ids can change (for example when doing a *save as*). Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
9716ff7964
commit
845457e2c4
5 changed files with 59 additions and 42 deletions
|
@ -450,6 +450,10 @@ impl workspace::Item 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