diff --git a/src/ide/complete.rs b/src/ide/complete.rs index 607f2558d..30b98fc86 100644 --- a/src/ide/complete.rs +++ b/src/ide/complete.rs @@ -565,6 +565,7 @@ fn complete_params(ctx: &mut CompletionContext) -> bool { | SyntaxKind::Comma | SyntaxKind::Ident ); + if deciding.kind() != SyntaxKind::Comma || deciding.range().end < ctx.cursor; then { ctx.from = match deciding.kind() { SyntaxKind::Ident => deciding.offset(),