diff options
author | Martin Asquino <[email protected]> | 2019-11-02 02:52:59 +0000 |
---|---|---|
committer | Martin Asquino <[email protected]> | 2019-11-02 20:37:47 +0000 |
commit | dc3848a6a3e659004ba4f2160503be28ea0f9051 (patch) | |
tree | d146b883f6352cbc647d8ad484377242582a7c39 /crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs | |
parent | eb8f76a86fe88fcad370577b344f397dd6118cfd (diff) |
Set `deprecated` field on `CompletionItem`s
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs b/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs index 09f743c66..a082a3c7c 100644 --- a/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs +++ b/crates/ra_ide_api/src/completion/complete_macro_in_item_position.rs | |||
@@ -45,6 +45,7 @@ mod tests { | |||
45 | insert: "foo!($0)", | 45 | insert: "foo!($0)", |
46 | kind: Macro, | 46 | kind: Macro, |
47 | detail: "macro_rules! foo", | 47 | detail: "macro_rules! foo", |
48 | deprecated: false, | ||
48 | }, | 49 | }, |
49 | ]"## | 50 | ]"## |
50 | ); | 51 | ); |
@@ -86,6 +87,7 @@ mod tests { | |||
86 | documentation: Documentation( | 87 | documentation: Documentation( |
87 | "Creates a [`Vec`] containing the arguments.\n\n- Create a [`Vec`] containing a given list of elements:\n\n```\nlet v = vec![1, 2, 3];\nassert_eq!(v[0], 1);\nassert_eq!(v[1], 2);\nassert_eq!(v[2], 3);\n```", | 88 | "Creates a [`Vec`] containing the arguments.\n\n- Create a [`Vec`] containing a given list of elements:\n\n```\nlet v = vec![1, 2, 3];\nassert_eq!(v[0], 1);\nassert_eq!(v[1], 2);\nassert_eq!(v[2], 3);\n```", |
88 | ), | 89 | ), |
90 | deprecated: false, | ||
89 | }, | 91 | }, |
90 | ]"## | 92 | ]"## |
91 | ); | 93 | ); |
@@ -121,6 +123,7 @@ mod tests { | |||
121 | documentation: Documentation( | 123 | documentation: Documentation( |
122 | "Foo\n\nNot call `fooo!()` `fooo!()`, or `_foo![]` `_foo![]`.\nCall as `let _=foo! { hello world };`", | 124 | "Foo\n\nNot call `fooo!()` `fooo!()`, or `_foo![]` `_foo![]`.\nCall as `let _=foo! { hello world };`", |
123 | ), | 125 | ), |
126 | deprecated: false, | ||
124 | }, | 127 | }, |
125 | CompletionItem { | 128 | CompletionItem { |
126 | label: "main()", | 129 | label: "main()", |
@@ -130,6 +133,7 @@ mod tests { | |||
130 | kind: Function, | 133 | kind: Function, |
131 | lookup: "main", | 134 | lookup: "main", |
132 | detail: "fn main()", | 135 | detail: "fn main()", |
136 | deprecated: false, | ||
133 | }, | 137 | }, |
134 | ] | 138 | ] |
135 | "### | 139 | "### |