mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Add tfn lookup and remove test prefix
This commit is contained in:
parent
b47a88be9c
commit
f988441904
2 changed files with 3 additions and 3 deletions
|
@ -440,7 +440,7 @@ mod tests {
|
|||
<|>
|
||||
}
|
||||
",
|
||||
r##"[CompletionItem { label: "Test function", lookup: None, snippet: Some("#[test]\nfn test_${1:feature}() {\n$0\n}") },
|
||||
r##"[CompletionItem { label: "Test function", lookup: Some("tfn"), snippet: Some("#[test]\nfn ${1:feature}() {\n$0\n}") },
|
||||
CompletionItem { label: "pub(crate)", lookup: None, snippet: Some("pub(crate) $0") }]"##,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -174,9 +174,9 @@ fn complete_path(
|
|||
fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) {
|
||||
acc.push(CompletionItem {
|
||||
label: "Test function".to_string(),
|
||||
lookup: None,
|
||||
lookup: Some("tfn".to_string()),
|
||||
snippet: Some("#[test]\n\
|
||||
fn test_${1:feature}() {\n\
|
||||
fn ${1:feature}() {\n\
|
||||
$0\n\
|
||||
}".to_string()),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue