Optional getters/setters editor autocomplete

solves #22291
This commit is contained in:
Jakub Grzesik 2018-10-22 20:32:58 +02:00
parent 955a913a1f
commit ba02ccbbe0
2 changed files with 3 additions and 1 deletions

View file

@ -1999,7 +1999,8 @@ static void _find_identifiers_in_base(const GDScriptCompletionContext &p_context
if (!_static) {
List<MethodInfo> methods;
ClassDB::get_method_list(type, &methods, false, true);
bool is_autocompleting_getters = GLOBAL_GET("debug/gdscript/completion/autocomplete_setters_and_getters").booleanize();
ClassDB::get_method_list(type, &methods, false, !is_autocompleting_getters);
for (List<MethodInfo>::Element *E = methods.front(); E; E = E->next()) {
if (E->get().name.begins_with("_")) {
continue;