mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Don't complete params directly after comma
This commit is contained in:
parent
448844d66c
commit
7726e8aa4d
@ -565,6 +565,7 @@ fn complete_params(ctx: &mut CompletionContext) -> bool {
|
|||||||
| SyntaxKind::Comma
|
| SyntaxKind::Comma
|
||||||
| SyntaxKind::Ident
|
| SyntaxKind::Ident
|
||||||
);
|
);
|
||||||
|
if deciding.kind() != SyntaxKind::Comma || deciding.range().end < ctx.cursor;
|
||||||
then {
|
then {
|
||||||
ctx.from = match deciding.kind() {
|
ctx.from = match deciding.kind() {
|
||||||
SyntaxKind::Ident => deciding.offset(),
|
SyntaxKind::Ident => deciding.offset(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user