Detach completion confirmation task when selecting with mouse (#3078)
Otherwise the spawn to resolve the additional edits never runs causing autocomplete to never add imports automatically when clicking with the mouse Release Notes: - Fixed auto-complete additional edits, such as auto-import, not applying when selecting a completion with a mouse click.
This commit is contained in:
commit
08361eb84e
1 changed files with 2 additions and 1 deletions
|
@ -1057,7 +1057,8 @@ impl CompletionsMenu {
|
||||||
item_ix: Some(item_ix),
|
item_ix: Some(item_ix),
|
||||||
},
|
},
|
||||||
cx,
|
cx,
|
||||||
);
|
)
|
||||||
|
.map(|task| task.detach());
|
||||||
})
|
})
|
||||||
.into_any(),
|
.into_any(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue