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.

Detach completion confirmation task when selecting with mouse

Julia3d68fcad0bed
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index ca19ad24cb7..e0b8af1c71c 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -1057,7 +1057,8 @@ impl CompletionsMenu {
item_ix: Some(item_ix),
},
cx,
- );
+ )
+ .map(|task| task.detach());
})
.into_any(),
);