Introduce workspace::Item::reload
to manually trigger a reload
This commit is contained in:
parent
65048760b2
commit
703f1c3be0
4 changed files with 57 additions and 0 deletions
|
@ -478,6 +478,14 @@ impl workspace::Item for ProjectDiagnosticsEditor {
|
|||
self.editor.save(project, cx)
|
||||
}
|
||||
|
||||
fn reload(
|
||||
&mut self,
|
||||
project: ModelHandle<Project>,
|
||||
cx: &mut ViewContext<Self>,
|
||||
) -> Task<Result<()>> {
|
||||
self.editor.reload(project, cx)
|
||||
}
|
||||
|
||||
fn can_save_as(&self, _: &AppContext) -> bool {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue