aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_analysis/src/completion/reference_completion.rs7
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 870c27778..dd147a0e4 100644
--- a/crates/ra_analysis/src/completion/reference_completion.rs
+++ b/crates/ra_analysis/src/completion/reference_completion.rs
@@ -175,10 +175,13 @@ fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) {
175 acc.push(CompletionItem { 175 acc.push(CompletionItem {
176 label: "Test function".to_string(), 176 label: "Test function".to_string(),
177 lookup: Some("tfn".to_string()), 177 lookup: Some("tfn".to_string()),
178 snippet: Some("#[test]\n\ 178 snippet: Some(
179 "#[test]\n\
179 fn ${1:feature}() {\n\ 180 fn ${1:feature}() {\n\
180 $0\n\ 181 $0\n\
181 }".to_string()), 182 }"
183 .to_string()
184 ),
182 }); 185 });
183 acc.push(CompletionItem { 186 acc.push(CompletionItem {
184 label: "pub(crate)".to_string(), 187 label: "pub(crate)".to_string(),