Use FuturesOrdered; Fix from rebase conflict

pull/6486/head
Jonatan Pettersson 3 months ago
parent c314acb304
commit edca920638

@ -1,7 +1,4 @@
use futures_util::{ use futures_util::{stream::FuturesOrdered, FutureExt};
stream::{FuturesOrdered, FuturesUnordered},
FutureExt,
};
use helix_lsp::{ use helix_lsp::{
block_on, block_on,
lsp::{ lsp::{
@ -628,7 +625,7 @@ pub fn code_action(cx: &mut Context) {
let selection_range = doc.selection(view.id).primary(); let selection_range = doc.selection(view.id).primary();
let mut futures: FuturesUnordered<_> = code_actions_for_range(doc, selection_range, None) let mut futures: FuturesOrdered<_> = code_actions_for_range(doc, selection_range, None)
.into_iter() .into_iter()
.map(|(request, ls_id)| async move { .map(|(request, ls_id)| async move {
let json = request.await?; let json = request.await?;

Loading…
Cancel
Save