You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Suppress errors on autocompletion for preload()
This commit is contained in:
@@ -460,7 +460,7 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
|
||||
//this can be too slow for just validating code
|
||||
if (for_completion && ScriptCodeCompletionCache::get_singleton()) {
|
||||
res = ScriptCodeCompletionCache::get_singleton()->get_cached_resource(path);
|
||||
} else {
|
||||
} else if (FileAccess::exists(path)) {
|
||||
res = ResourceLoader::load(path);
|
||||
}
|
||||
if (!res.is_valid()) {
|
||||
|
||||
Reference in New Issue
Block a user