diff options
Diffstat (limited to 'crates/ra_analysis/src/completion/reference_completion.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/reference_completion.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/completion/reference_completion.rs b/crates/ra_analysis/src/completion/reference_completion.rs index d301a3c02..e8eb77440 100644 --- a/crates/ra_analysis/src/completion/reference_completion.rs +++ b/crates/ra_analysis/src/completion/reference_completion.rs | |||
@@ -173,9 +173,12 @@ fn complete_path( | |||
173 | 173 | ||
174 | fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) { | 174 | fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) { |
175 | acc.push(CompletionItem { | 175 | acc.push(CompletionItem { |
176 | label: "tfn".to_string(), | 176 | label: "Test function".to_string(), |
177 | lookup: None, | 177 | lookup: None, |
178 | snippet: Some("#[test]\nfn $1() {\n $0\n}".to_string()), | 178 | snippet: Some("#[test]\n\ |
179 | fn test_${1:feature}() {\n\ | ||
180 | $0\n\ | ||
181 | }".to_string()), | ||
179 | }); | 182 | }); |
180 | acc.push(CompletionItem { | 183 | acc.push(CompletionItem { |
181 | label: "pub(crate)".to_string(), | 184 | label: "pub(crate)".to_string(), |