mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +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
|
@ -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…
Add table
Add a link
Reference in a new issue