diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-18 23:21:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-18 23:21:41 +0100 |
commit | 0359fed313f55dfa9976e8e9606866c2ee53d077 (patch) | |
tree | dc34d5d878cc6083e79a964a871f2ac3280d92fb /modules | |
parent | e2b50e1abbc6cab58410a2ef4155bdcadf73efcf (diff) | |
parent | ae4cd5b6dae7dacec069ced3fa6dd2c2f96cef90 (diff) |
Merge pull request #15849 from poke1024/preload-completion
GDScript: fix autocompletion for preload() (issue 15766)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 8154fe2b6d..c4269ab4a9 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -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) |