1
0
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:
HolonProduction
2025-02-13 22:49:03 +01:00
parent 1a0bf54677
commit c00518eec7
2 changed files with 3 additions and 2 deletions

View File

@@ -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();