summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/gdscript_test_runner.cpp
diff options
context:
space:
mode:
authorajreckof <66184050+ajreckof@users.noreply.github.com>2023-05-23 05:12:34 +0200
committerajreckof <66184050+ajreckof@users.noreply.github.com>2023-05-23 05:12:34 +0200
commit006e899bb34dbf024aeff1dae97468ae5547a415 (patch)
treed6c5386ebab38698cf73c68b410859014db1fa31 /modules/gdscript/tests/gdscript_test_runner.cpp
parentfb10f45efe52e330496e325b6b7efd0e52f769b0 (diff)
downloadredot-engine-006e899bb34dbf024aeff1dae97468ae5547a415.tar.gz
sort code completions with rules
Fixups Add levenshtein distance for comparisons, remove kind sort order, try to improve as many different use cases as possible Trying again to improve code completion Sort code autocompletion options by similarity based on input To make it really brief, uses a combination `String.similiary`, the category system introduced in a previous PR, and some filtering to yield more predictable results, instead of scattering every completion option at seemingly random. It also gives much higher priority to strings that contain the base in full, closer to the beginning or are perfect matches. Also moves CodeCompletionOptionCompare to code_edit.cpp Co-Authored-By: Micky <66727710+Mickeon@users.noreply.github.com> Co-Authored-By: Eric M <41730826+EricEzaM@users.noreply.github.com>
Diffstat (limited to 'modules/gdscript/tests/gdscript_test_runner.cpp')
0 files changed, 0 insertions, 0 deletions