Autocompletion: Override context for preload

This commit is contained in:
HolonProduction committed 2025-02-13 22:56:06 +01:00
1 parent 1a0bf54677
commit c00518eec7
2 files changed
+3 -2

No files matched your search

+2
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();