@@ -106,7 +106,7 @@ impl Completions {
106106 } ;
107107
108108 // Add `<>` for generic types
109- if ctx. is_path_type && !ctx. has_type_args && ctx. options . add_call_parenthesis {
109+ if ctx. is_path_type && !ctx. has_type_args && ctx. config . add_call_parenthesis {
110110 let has_non_default_type_params = match resolution {
111111 ScopeDef :: ModuleDef ( Adt ( it) ) => it. has_non_default_type_params ( ctx. db ) ,
112112 ScopeDef :: ModuleDef ( TypeAlias ( it) ) => it. has_non_default_type_params ( ctx. db ) ,
@@ -211,14 +211,14 @@ impl Completions {
211211 . detail ( function_signature. to_string ( ) ) ;
212212
213213 // If not an import, add parenthesis automatically.
214- if ctx. use_item_syntax . is_none ( ) && !ctx. is_call && ctx. options . add_call_parenthesis {
214+ if ctx. use_item_syntax . is_none ( ) && !ctx. is_call && ctx. config . add_call_parenthesis {
215215 tested_by ! ( inserts_parens_for_function_calls) ;
216216
217217 let ( snippet, label) = if params. is_empty ( ) || has_self_param && params. len ( ) == 1 {
218218 ( format ! ( "{}()$0" , name) , format ! ( "{}()" , name) )
219219 } else {
220220 builder = builder. trigger_call_info ( ) ;
221- let snippet = if ctx. options . add_call_argument_snippets {
221+ let snippet = if ctx. config . add_call_argument_snippets {
222222 let to_skip = if has_self_param { 1 } else { 0 } ;
223223 let function_params_snippet = function_signature
224224 . parameter_names
@@ -311,7 +311,7 @@ mod tests {
311311
312312 use crate :: completion:: {
313313 test_utils:: { do_completion, do_completion_with_options} ,
314- CompletionItem , CompletionKind , CompletionOptions ,
314+ CompletionConfig , CompletionItem , CompletionKind ,
315315 } ;
316316
317317 fn do_reference_completion ( ra_fixture : & str ) -> Vec < CompletionItem > {
@@ -320,7 +320,7 @@ mod tests {
320320
321321 fn do_reference_completion_with_options (
322322 ra_fixture : & str ,
323- options : CompletionOptions ,
323+ options : CompletionConfig ,
324324 ) -> Vec < CompletionItem > {
325325 do_completion_with_options ( ra_fixture, CompletionKind :: Reference , & options)
326326 }
@@ -589,7 +589,7 @@ mod tests {
589589 s.f<|>
590590 }
591591 " ,
592- CompletionOptions {
592+ CompletionConfig {
593593 add_call_argument_snippets: false ,
594594 .. Default :: default ( )
595595 }
0 commit comments