File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 ( )
Original file line number Diff line number Diff line change @@ -2730,6 +2730,7 @@ client.post("")
27302730 "missing {expected} in completions:\n {trimmed}"
27312731 ) ;
27322732 }
2733+ }
27332734fn completion_sorts_incompatible_call_argument_last ( ) {
27342735 let code = r#"
27352736class Base:
You can’t perform that action at this time.
0 commit comments