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
This commit is contained in:
Julia committed 2023-10-02 13:18:49 -04:00
1 parent f3dcf513cb
commit 83f32c91a3
1 file changed
+2 -1
+2 -1
View File
@@ -1057,7 +1057,8 @@ impl CompletionsMenu {
item_ix: Some(item_ix),
},
cx,
);
)
.map(|task| task.detach());
})
.into_any(),
);