Trigger call info for more completions of signature having things

This commit is contained in:
Lukas Wirth 2023-02-14 15:11:40 +01:00
parent 95fa278f30
commit cade9f7020
3 changed files with 8 additions and 2 deletions

View file

@ -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),
};

View file

@ -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),
};