@@ -327,8 +327,7 @@ impl Backend {
327327 // Named arg items are always valid alongside normal
328328 // completions, so collect them here and merge them into
329329 // whatever strategy wins below.
330- let named_arg_items =
331- self . collect_named_arg_items ( & uri, & content, position, & ctx) ;
330+ let named_arg_items = self . collect_named_arg_items ( & uri, & content, position, & ctx) ;
332331
333332 // ── String context detection ────────────────────────────
334333 // Classify once and use throughout the remaining pipeline.
@@ -397,7 +396,10 @@ impl Backend {
397396
398397 // ── Smart catch clause completion ───────────────────────
399398 if let Some ( response) = self . try_catch_completion ( & content, position, & ctx, & uri) {
400- return Ok ( Some ( merge_named_args_into_response ( response, named_arg_items) ) ) ;
399+ return Ok ( Some ( merge_named_args_into_response (
400+ response,
401+ named_arg_items,
402+ ) ) ) ;
401403 }
402404
403405 // ── `throw new` completion ──────────────────────────────
@@ -417,7 +419,10 @@ impl Backend {
417419 if let Some ( response) =
418420 self . try_class_constant_function_completion ( & content, position, & ctx, & uri)
419421 {
420- return Ok ( Some ( merge_named_args_into_response ( response, named_arg_items) ) ) ;
422+ return Ok ( Some ( merge_named_args_into_response (
423+ response,
424+ named_arg_items,
425+ ) ) ) ;
421426 }
422427
423428 // No strategy matched, but we may still have named arg items.
@@ -726,9 +731,8 @@ impl Backend {
726731 // from incomplete code).
727732 let na_ctx = match self
728733 . detect_named_arg_from_symbol_map ( uri, content, position)
729- . or_else ( || {
730- crate :: completion:: named_args:: detect_named_arg_context ( content, position)
731- } ) {
734+ . or_else ( || crate :: completion:: named_args:: detect_named_arg_context ( content, position) )
735+ {
732736 Some ( ctx) => ctx,
733737 None => return Vec :: new ( ) ,
734738 } ;
@@ -784,8 +788,11 @@ impl Backend {
784788 // expression that is itself an argument, named-arg completion
785789 // for the outer call must not fire — the user wants normal
786790 // value completion, not parameter names.
787- if cursor_inside_nested_bracket ( content, cs. args_start as usize , cursor_byte_offset as usize )
788- {
791+ if cursor_inside_nested_bracket (
792+ content,
793+ cs. args_start as usize ,
794+ cursor_byte_offset as usize ,
795+ ) {
789796 return None ;
790797 }
791798
0 commit comments