Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use proper names for actions' async context (#23763)

Kirill Bulatovb643080117d4
diff --git a/crates/project/src/worktree_store.rs b/crates/project/src/worktree_store.rs
index 06b1cf60b00..01bd67d6fbd 100644
--- a/crates/project/src/worktree_store.rs
+++ b/crates/project/src/worktree_store.rs
@@ -1093,7 +1093,7 @@ impl WorktreeStore {
pub async fn handle_expand_all_for_project_entry(
this: Entity<Self>,
envelope: TypedEnvelope<proto::ExpandAllForProjectEntry>,
- mut cx: AsyncAppContext,
+ mut cx: AsyncApp,
) -> Result<proto::ExpandAllForProjectEntryResponse> {
let entry_id = ProjectEntryId::from_proto(envelope.payload.entry_id);
let worktree = this
diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rs
index ee9803efaf0..f8336484a30 100644
--- a/crates/worktree/src/worktree.rs
+++ b/crates/worktree/src/worktree.rs
@@ -1188,7 +1188,7 @@ impl Worktree {
pub async fn handle_expand_all_for_entry(
this: Entity<Self>,
request: proto::ExpandAllForProjectEntry,
- mut cx: AsyncAppContext,
+ mut cx: AsyncApp,
) -> Result<proto::ExpandAllForProjectEntryResponse> {
let task = this.update(&mut cx, |this, cx| {
this.expand_all_for_entry(ProjectEntryId::from_proto(request.entry_id), cx)