mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Autocompletion: Override context for preload
This commit is contained in:
parent
1a0bf54677
commit
c00518eec7
2 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue