Merge pull request #32878 from EbbDrop/no_autocompletion_for_singeltons
Fixes auto completion for singletons
This commit is contained in:
commit
fddc60c85c
1 changed files with 4 additions and 5 deletions
|
@ -1944,11 +1944,10 @@ static void _find_identifiers_in_base(const GDScriptCompletionContext &p_context
|
|||
ScriptCodeCompletionOption option(E->get().name, ScriptCodeCompletionOption::KIND_MEMBER);
|
||||
r_result.insert(option.display, option);
|
||||
}
|
||||
} else {
|
||||
for (const Set<StringName>::Element *E = script->get_members().front(); E; E = E->next()) {
|
||||
ScriptCodeCompletionOption option(E->get().operator String(), ScriptCodeCompletionOption::KIND_MEMBER);
|
||||
r_result.insert(option.display, option);
|
||||
}
|
||||
}
|
||||
for (const Set<StringName>::Element *E = script->get_members().front(); E; E = E->next()) {
|
||||
ScriptCodeCompletionOption option(E->get().operator String(), ScriptCodeCompletionOption::KIND_MEMBER);
|
||||
r_result.insert(option.display, option);
|
||||
}
|
||||
}
|
||||
if (!p_only_functions) {
|
||||
|
|
Loading…
Reference in a new issue