mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
More orthogonal method naming
This commit is contained in:
parent
3dfb16be69
commit
79f35cc699
4 changed files with 4 additions and 9 deletions
|
@ -22,7 +22,7 @@ fn postfix_snippet(ctx: &CompletionContext, label: &str, detail: &str, snippet:
|
|||
let mut builder = TextEditBuilder::default();
|
||||
builder.delete(delete_range);
|
||||
CompletionItem::new(CompletionKind::Postfix, replace_range, label)
|
||||
.snippet(snippet)
|
||||
.insert_snippet(snippet)
|
||||
.detail(detail)
|
||||
.text_edit(builder.finish())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue