diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-04-03 12:34:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 12:34:00 +0200 |
commit | c630c2001dbe2e25e0d372bd22ce85cdc2822eb0 (patch) | |
tree | ef0a55219c9b682c491194f42083780ede1a39ec /editor/plugins/script_text_editor.cpp | |
parent | 7bb963efe9083662baa356f56a2d5c368b96a9a0 (diff) | |
parent | 4ab605d14d0c18aeeded545e3cc453734df7abd7 (diff) |
Merge pull request #59633 from EricEzaM/better-code-complete-update
Improve sorting of Code Completion options.
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index c1b0a32fc7..4626f10b8d 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -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); } |