fix: Fix parameter completions using macro expanded source ranges
This commit is contained in:
parent
070f95c12e
commit
faa13cbe20
1 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,8 @@ fn should_add_self_completions(
|
|||
}
|
||||
|
||||
fn comma_wrapper(ctx: &CompletionContext<'_>) -> Option<(impl Fn(&str) -> String, TextRange)> {
|
||||
let param = ctx.token.parent_ancestors().find(|node| node.kind() == SyntaxKind::PARAM)?;
|
||||
let param =
|
||||
ctx.original_token.parent_ancestors().find(|node| node.kind() == SyntaxKind::PARAM)?;
|
||||
|
||||
let next_token_kind = {
|
||||
let t = param.last_token()?.next_token()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue