We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf69ccd + faa13cb commit 49984c3Copy full SHA for 49984c3
src/tools/rust-analyzer/crates/ide-completion/src/completions/fn_param.rs
@@ -173,7 +173,8 @@ fn should_add_self_completions(
173
}
174
175
fn comma_wrapper(ctx: &CompletionContext<'_>) -> Option<(impl Fn(&str) -> String, TextRange)> {
176
- let param = ctx.token.parent_ancestors().find(|node| node.kind() == SyntaxKind::PARAM)?;
+ let param =
177
+ ctx.original_token.parent_ancestors().find(|node| node.kind() == SyntaxKind::PARAM)?;
178
179
let next_token_kind = {
180
let t = param.last_token()?.next_token()?;
0 commit comments