From 3d68fcad0bed07e4ce151bb2c3d41ccdea450c0b Mon Sep 17 00:00:00 2001 From: Julia Date: Mon, 2 Oct 2023 13:18:49 -0400 Subject: [PATCH] Detach completion confirmation task when selecting with mouse Otherwise the spawn to resolve the additional edits never runs causing autocomplete to never add imports automatically when clicking with the mouse --- crates/editor/src/editor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index ca19ad24cb..e0b8af1c71 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(), );