You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Autocompletion: Override context for preload
This commit is contained in:
@@ -3487,6 +3487,8 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_preload(ExpressionNode *p_
|
||||
|
||||
if (preload->path == nullptr) {
|
||||
push_error(R"(Expected resource path after "(".)");
|
||||
} else if (preload->path->type == Node::LITERAL) {
|
||||
override_completion_context(preload->path, COMPLETION_RESOURCE_PATH, preload);
|
||||
}
|
||||
|
||||
pop_completion_call();
|
||||
|
||||
Reference in New Issue
Block a user