Don't complete params directly after comma

This commit is contained in:
Laurenz 2023-02-24 14:18:05 +01:00
parent 448844d66c
commit 7726e8aa4d

View File

@ -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(),