Skip to content

Commit 2f9f409

Browse files
bors[bot]matklad
andauthored
Merge #3568
3568: Fix completion tests r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents fab40db + a6bb4cd commit 2f9f409

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

crates/ra_ide/src/completion/complete_scope.rs

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ mod tests {
4242
kind: Function,
4343
lookup: "quux",
4444
detail: "fn quux(x: i32)",
45+
trigger_call_info: true,
4546
},
4647
CompletionItem {
4748
label: "x",
@@ -844,6 +845,7 @@ mod tests {
844845
kind: Function,
845846
lookup: "quux",
846847
detail: "fn quux(x: i32)",
848+
trigger_call_info: true,
847849
},
848850
CompletionItem {
849851
label: "x",

crates/ra_ide/src/completion/completion_item.rs

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ impl fmt::Debug for CompletionItem {
8080
if self.deprecated {
8181
s.field("deprecated", &true);
8282
}
83+
if self.trigger_call_info {
84+
s.field("trigger_call_info", &true);
85+
}
8386
s.finish()
8487
}
8588
}

crates/ra_ide/src/completion/presentation.rs

+7
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ mod tests {
510510
kind: Function,
511511
lookup: "with_args",
512512
detail: "fn with_args(x: i32, y: String)",
513+
trigger_call_info: true,
513514
},
514515
]
515516
"###
@@ -566,6 +567,7 @@ mod tests {
566567
kind: Method,
567568
lookup: "foo",
568569
detail: "fn foo(&self, x: i32)",
570+
trigger_call_info: true,
569571
},
570572
]
571573
"###
@@ -600,6 +602,7 @@ mod tests {
600602
kind: Method,
601603
lookup: "foo",
602604
detail: "fn foo(&self, x: i32)",
605+
trigger_call_info: true,
603606
},
604607
]
605608
"###
@@ -718,6 +721,7 @@ mod tests {
718721
kind: Function,
719722
lookup: "foo",
720723
detail: "fn foo(xs: Ve)",
724+
trigger_call_info: true,
721725
},
722726
]
723727
"###
@@ -747,6 +751,7 @@ mod tests {
747751
kind: Function,
748752
lookup: "foo",
749753
detail: "fn foo(xs: Ve)",
754+
trigger_call_info: true,
750755
},
751756
]
752757
"###
@@ -775,6 +780,7 @@ mod tests {
775780
kind: Function,
776781
lookup: "foo",
777782
detail: "fn foo(xs: Ve)",
783+
trigger_call_info: true,
778784
},
779785
]
780786
"###
@@ -803,6 +809,7 @@ mod tests {
803809
kind: Function,
804810
lookup: "foo",
805811
detail: "fn foo(xs: Ve<i128>)",
812+
trigger_call_info: true,
806813
},
807814
]
808815
"###

0 commit comments

Comments
 (0)