aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/completion/presentation.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs
index 440ffa31d..6b29f58d5 100644
--- a/crates/ra_ide/src/completion/presentation.rs
+++ b/crates/ra_ide/src/completion/presentation.rs
@@ -641,7 +641,7 @@ mod tests {
641 assert_debug_snapshot!( 641 assert_debug_snapshot!(
642 do_reference_completion( 642 do_reference_completion(
643 r" 643 r"
644 fn with_args(x: i32, y: String) {} 644 fn with_args(x: i32, y: String, _z: bool) {}
645 fn main() { with_<|> } 645 fn main() { with_<|> }
646 " 646 "
647 ), 647 ),
@@ -649,8 +649,8 @@ mod tests {
649 [ 649 [
650 CompletionItem { 650 CompletionItem {
651 label: "main()", 651 label: "main()",
652 source_range: 80..85, 652 source_range: 90..95,
653 delete: 80..85, 653 delete: 90..95,
654 insert: "main()$0", 654 insert: "main()$0",
655 kind: Function, 655 kind: Function,
656 lookup: "main", 656 lookup: "main",
@@ -658,12 +658,12 @@ mod tests {
658 }, 658 },
659 CompletionItem { 659 CompletionItem {
660 label: "with_args(…)", 660 label: "with_args(…)",
661 source_range: 80..85, 661 source_range: 90..95,
662 delete: 80..85, 662 delete: 90..95,
663 insert: "with_args(${1:x}, ${2:y})$0", 663 insert: "with_args(${1:x}, ${2:y}, ${3:z})$0",
664 kind: Function, 664 kind: Function,
665 lookup: "with_args", 665 lookup: "with_args",
666 detail: "fn with_args(x: i32, y: String)", 666 detail: "fn with_args(x: i32, y: String, _z: bool)",
667 trigger_call_info: true, 667 trigger_call_info: true,
668 }, 668 },
669 ] 669 ]