From 3dea87b05484542631404f096a5e60b94f61c8a6 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Wed, 28 Nov 2018 22:02:53 +0000 Subject: Format completion text properly --- crates/ra_analysis/src/completion/reference_completion.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/ra_analysis/src/completion/reference_completion.rs') 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) { acc.push(CompletionItem { label: "Test function".to_string(), lookup: Some("tfn".to_string()), - snippet: Some("#[test]\n\ + snippet: Some( + "#[test]\n\ fn ${1:feature}() {\n\ $0\n\ - }".to_string()), + }" + .to_string() + ), }); acc.push(CompletionItem { label: "pub(crate)".to_string(), -- cgit v1.2.3