Merge pull request #57 from FireFox317/commacheck

Completion support when a function with multiple arguments is completed
This commit is contained in:
Auguste Rame 2020-05-18 15:57:43 -04:00 committed by GitHub
commit dc5afc6dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,7 +382,7 @@ pub fn getFieldAccessTypeNode(
}, },
.Period => { .Period => {
var after_period = tokenizer.next(); var after_period = tokenizer.next();
if (after_period.id == .Eof) { if (after_period.id == .Eof or after_period.id == .Comma) {
return current_node; return current_node;
} else if (after_period.id == .Identifier) { } else if (after_period.id == .Identifier) {
// TODO: This works for now, maybe we should filter based on the partial identifier ourselves? // TODO: This works for now, maybe we should filter based on the partial identifier ourselves?