From 145a45fd3f15b3d7929e5e702b8828186fed34fb Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Tue, 16 Apr 2019 22:27:13 +0200 Subject: Fix code completion not working with class_name --- editor/plugins/script_text_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index c586985957..7832981eef 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -603,7 +603,7 @@ void ScriptTextEditor::_code_complete_script(const String &p_code, List base = _find_node_for_script(base, base, script); } String hint; - Error err = script->get_language()->complete_code(p_code, script->get_path().get_base_dir(), base, r_options, r_force, hint); + Error err = script->get_language()->complete_code(p_code, script->get_path(), base, r_options, r_force, hint); if (err == OK && hint != "") { code_editor->get_text_edit()->set_code_hint(hint); } -- cgit v1.2.3