Start work on an integration test for following

This commit is contained in:
Max Brunsfeld 2022-03-17 13:53:06 -07:00
parent 845457e2c4
commit 5702737de2
2 changed files with 177 additions and 7 deletions

View file

@ -825,11 +825,11 @@ impl Workspace {
pub fn open_path(
&mut self,
path: ProjectPath,
path: impl Into<ProjectPath>,
cx: &mut ViewContext<Self>,
) -> Task<Result<Box<dyn ItemHandle>, Arc<anyhow::Error>>> {
let pane = self.active_pane().downgrade();
let task = self.load_path(path, cx);
let task = self.load_path(path.into(), cx);
cx.spawn(|this, mut cx| async move {
let (project_entry_id, build_item) = task.await?;
let pane = pane