Skip to content

Commit d6cde96

Browse files
.
.
1 parent 5d31a61 commit d6cde96

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyrefly/lib/lsp/wasm/completion.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,12 +950,14 @@ impl Transaction<'_> {
950950
position,
951951
&mut result,
952952
);
953+
let mut endpoint_items = Vec::new();
953954
self.add_endpoint_completions(
954955
handle,
955956
mod_module.as_ref(),
956957
position,
957-
&mut result,
958+
&mut endpoint_items,
958959
);
960+
result.extend(endpoint_items.into_iter().map(RankedCompletion::new));
959961
// in foo(x=<>, y=2<>), the first containing node is AnyNodeRef::Arguments(_)
960962
// in foo(<>), the first containing node is AnyNodeRef::ExprCall
961963
if let Some(first) = nodes.first()

pyrefly/lib/test/lsp/completion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,6 +2730,7 @@ client.post("")
27302730
"missing {expected} in completions:\n{trimmed}"
27312731
);
27322732
}
2733+
}
27332734
fn completion_sorts_incompatible_call_argument_last() {
27342735
let code = r#"
27352736
class Base:

0 commit comments

Comments
 (0)