Format completion text properly

This commit is contained in:
Daniel McNab 2018-11-28 22:02:53 +00:00
parent f988441904
commit 3dea87b054

View file

@ -175,10 +175,13 @@ fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) {
acc.push(CompletionItem { acc.push(CompletionItem {
label: "Test function".to_string(), label: "Test function".to_string(),
lookup: Some("tfn".to_string()), lookup: Some("tfn".to_string()),
snippet: Some("#[test]\n\ snippet: Some(
"#[test]\n\
fn ${1:feature}() {\n\ fn ${1:feature}() {\n\
$0\n\ $0\n\
}".to_string()), }"
.to_string()
),
}); });
acc.push(CompletionItem { acc.push(CompletionItem {
label: "pub(crate)".to_string(), label: "pub(crate)".to_string(),