You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix completion of parameters in function call
This commit is contained in:
@@ -2937,6 +2937,10 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_call(ExpressionNode *p_pre
|
||||
push_error(R"(Expected expression as the function argument.)");
|
||||
} else {
|
||||
call->arguments.push_back(argument);
|
||||
|
||||
if (argument->type == Node::IDENTIFIER && current.cursor_place == GDScriptTokenizer::CURSOR_BEGINNING) {
|
||||
completion_context.type = COMPLETION_IDENTIFIER;
|
||||
}
|
||||
}
|
||||
ct = COMPLETION_CALL_ARGUMENTS;
|
||||
} while (match(GDScriptTokenizer::Token::COMMA));
|
||||
|
||||
Reference in New Issue
Block a user