Skip to content

Commit

Permalink
Use FuturesOrdered; Fix from rebase conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jpttrssn committed Sep 8, 2024
1 parent f63e5b9 commit f9b1ca5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use futures_util::{
stream::{FuturesOrdered, FuturesUnordered},
FutureExt,
};
use futures_util::{stream::FuturesOrdered, FutureExt};
use helix_lsp::{
block_on,
lsp::{
Expand Down Expand Up @@ -628,7 +625,7 @@ pub fn code_action(cx: &mut Context) {

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()
.map(|(request, ls_id)| async move {
let json = request.await?;
Expand Down

0 comments on commit f9b1ca5

Please sign in to comment.