You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
GDScript: fix autocompletion for preload() (issue 15766)
This commit is contained in:
@@ -2450,8 +2450,10 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base
|
|||||||
} break;
|
} break;
|
||||||
case GDScriptParser::COMPLETION_RESOURCE_PATH: {
|
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);
|
get_directory_contents(EditorFileSystem::get_singleton()->get_filesystem(), options);
|
||||||
|
r_forced = true;
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
case GDScriptParser::COMPLETION_ASSIGN: {
|
case GDScriptParser::COMPLETION_ASSIGN: {
|
||||||
#if defined(DEBUG_METHODS_ENABLED) && defined(TOOLS_ENABLED)
|
#if defined(DEBUG_METHODS_ENABLED) && defined(TOOLS_ENABLED)
|
||||||
|
|||||||
Reference in New Issue
Block a user