From a6bb4cd0ecd4b1996a964287713cff365e2d7088 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 12 Mar 2020 19:02:55 +0100 Subject: Fix completion tests --- crates/ra_ide/src/completion/complete_scope.rs | 2 ++ crates/ra_ide/src/completion/completion_item.rs | 3 +++ crates/ra_ide/src/completion/presentation.rs | 7 +++++++ 3 files changed, 12 insertions(+) (limited to 'crates/ra_ide/src') diff --git a/crates/ra_ide/src/completion/complete_scope.rs b/crates/ra_ide/src/completion/complete_scope.rs index bd4adf23a..ed55baa64 100644 --- a/crates/ra_ide/src/completion/complete_scope.rs +++ b/crates/ra_ide/src/completion/complete_scope.rs @@ -42,6 +42,7 @@ mod tests { kind: Function, lookup: "quux", detail: "fn quux(x: i32)", + trigger_call_info: true, }, CompletionItem { label: "x", @@ -844,6 +845,7 @@ mod tests { kind: Function, lookup: "quux", detail: "fn quux(x: i32)", + trigger_call_info: true, }, CompletionItem { label: "x", diff --git a/crates/ra_ide/src/completion/completion_item.rs b/crates/ra_ide/src/completion/completion_item.rs index ef0eb43b2..bc0f1aff5 100644 --- a/crates/ra_ide/src/completion/completion_item.rs +++ b/crates/ra_ide/src/completion/completion_item.rs @@ -80,6 +80,9 @@ impl fmt::Debug for CompletionItem { if self.deprecated { s.field("deprecated", &true); } + if self.trigger_call_info { + s.field("trigger_call_info", &true); + } s.finish() } } diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index 5213def20..a4e9aefe2 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs @@ -510,6 +510,7 @@ mod tests { kind: Function, lookup: "with_args", detail: "fn with_args(x: i32, y: String)", + trigger_call_info: true, }, ] "### @@ -566,6 +567,7 @@ mod tests { kind: Method, lookup: "foo", detail: "fn foo(&self, x: i32)", + trigger_call_info: true, }, ] "### @@ -600,6 +602,7 @@ mod tests { kind: Method, lookup: "foo", detail: "fn foo(&self, x: i32)", + trigger_call_info: true, }, ] "### @@ -718,6 +721,7 @@ mod tests { kind: Function, lookup: "foo", detail: "fn foo(xs: Ve)", + trigger_call_info: true, }, ] "### @@ -747,6 +751,7 @@ mod tests { kind: Function, lookup: "foo", detail: "fn foo(xs: Ve)", + trigger_call_info: true, }, ] "### @@ -775,6 +780,7 @@ mod tests { kind: Function, lookup: "foo", detail: "fn foo(xs: Ve)", + trigger_call_info: true, }, ] "### @@ -803,6 +809,7 @@ mod tests { kind: Function, lookup: "foo", detail: "fn foo(xs: Ve)", + trigger_call_info: true, }, ] "### -- cgit v1.2.3