mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Improve sorting of Code Completion options.
Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
This commit is contained in:
parent
74b07dd194
commit
4ab605d14d
7 changed files with 196 additions and 24 deletions
|
@ -699,6 +699,9 @@ void ScriptTextEditor::_code_complete_script(const String &p_code, List<ScriptLa
|
|||
}
|
||||
String hint;
|
||||
Error err = script->get_language()->complete_code(p_code, script->get_path(), base, r_options, r_force, hint);
|
||||
|
||||
r_options->sort_custom_inplace<CodeCompletionOptionCompare>();
|
||||
|
||||
if (err == OK) {
|
||||
code_editor->get_text_editor()->set_code_hint(hint);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue