From 00e5ba314393ce2cc4df883bc1742306007ed117 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 23 Jun 2017 15:10:46 -0300 Subject: Remove methods from code completion which are already exposed by properties, makes completion cleaner and more close to the documentation. --- modules/gdscript/gd_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/gdscript/gd_editor.cpp') diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index 12e26163d9..adf3c8edc4 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -1276,7 +1276,7 @@ static void _find_identifiers_in_class(GDCompletionContext &context, bool p_stat } } List methods; - ClassDB::get_method_list(type, &methods); + ClassDB::get_method_list(type, &methods, false, true); for (List::Element *E = methods.front(); E; E = E->next()) { if (E->get().name.begins_with("_")) continue; @@ -2251,7 +2251,7 @@ Error GDScriptLanguage::complete_code(const String &p_code, const String &p_base } List mi; - ClassDB::get_method_list(t.obj_type, &mi); + ClassDB::get_method_list(t.obj_type, &mi, false, true); for (List::Element *E = mi.front(); E; E = E->next()) { if (E->get().name.begins_with("_")) -- cgit v1.2.3