From 5b75fcd0aa32f1a2049327023c2c7b356b976c9e Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Sat, 2 Oct 2021 19:46:07 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zed/src/workspace.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zed/src/workspace.rs b/zed/src/workspace.rs index e6acaf3054af8b6af42f2702e1d0d79c6f333450..6da995f1010997917142435cf28e6b469df72b21 100644 --- a/zed/src/workspace.rs +++ b/zed/src/workspace.rs @@ -502,14 +502,14 @@ impl Workspace { .iter() .cloned() .zip(entries.into_iter()) - .map(|(abs_path, entry_id)| { + .map(|(abs_path, project_path)| { cx.spawn(|this, mut cx| { let fs = fs.clone(); async move { - let entry_id = entry_id.await?; + let project_path = project_path.await?; if fs.is_file(&abs_path).await { if let Some(entry) = - this.update(&mut cx, |this, cx| this.open_entry(entry_id, cx)) + this.update(&mut cx, |this, cx| this.open_entry(project_path, cx)) { entry.await; }