mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 23:24:29 +00:00
Format completion text properly
This commit is contained in:
parent
f988441904
commit
3dea87b054
1 changed files with 5 additions and 2 deletions
|
@ -175,10 +175,13 @@ fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) {
|
|||
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(),
|
||||
|
|
Loading…
Reference in a new issue