mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Change the body and name of the test function completion
This commit is contained in:
parent
6b1f30ade9
commit
b47a88be9c
2 changed files with 7 additions and 4 deletions
|
@ -173,9 +173,12 @@ fn complete_path(
|
|||
|
||||
fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) {
|
||||
acc.push(CompletionItem {
|
||||
label: "tfn".to_string(),
|
||||
label: "Test function".to_string(),
|
||||
lookup: None,
|
||||
snippet: Some("#[test]\nfn $1() {\n $0\n}".to_string()),
|
||||
snippet: Some("#[test]\n\
|
||||
fn test_${1:feature}() {\n\
|
||||
$0\n\
|
||||
}".to_string()),
|
||||
});
|
||||
acc.push(CompletionItem {
|
||||
label: "pub(crate)".to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue