Merge pull request #15849 from poke1024/preload-completion

GDScript: fix autocompletion for preload() (issue 15766)
This commit is contained in:
Rémi Verschelde 2018-01-18 23:21:41 +01:00 committed by GitHub
commit 0359fed313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2450,8 +2450,10 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base
} break;
case GDScriptParser::COMPLETION_RESOURCE_PATH: {
if (EditorSettings::get_singleton()->get("text_editor/completion/complete_file_paths"))
if (EditorSettings::get_singleton()->get("text_editor/completion/complete_file_paths")) {
get_directory_contents(EditorFileSystem::get_singleton()->get_filesystem(), options);
r_forced = true;
}
} break;
case GDScriptParser::COMPLETION_ASSIGN: {
#if defined(DEBUG_METHODS_ENABLED) && defined(TOOLS_ENABLED)