mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Trigger call info for more completions of signature having things
This commit is contained in:
parent
95fa278f30
commit
cade9f7020
3 changed files with 8 additions and 2 deletions
|
@ -113,7 +113,7 @@ fn render(
|
|||
item.detail(rendered.detail);
|
||||
|
||||
match snippet_cap {
|
||||
Some(snippet_cap) => item.insert_snippet(snippet_cap, rendered.literal),
|
||||
Some(snippet_cap) => item.insert_snippet(snippet_cap, rendered.literal).trigger_call_info(),
|
||||
None => item.insert_text(rendered.literal),
|
||||
};
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ pub(crate) fn render_union_literal(
|
|||
.set_relevance(ctx.completion_relevance());
|
||||
|
||||
match ctx.snippet_cap() {
|
||||
Some(snippet_cap) => item.insert_snippet(snippet_cap, literal),
|
||||
Some(snippet_cap) => item.insert_snippet(snippet_cap, literal).trigger_call_info(),
|
||||
None => item.insert_text(literal),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue