virtualx-engine/modules/gdscript
ajreckof 006e899bb3 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>
2023-05-23 05:12:34 +02:00
..
doc_classes Rework Navigation Avoidance 2023-05-10 05:01:58 +02:00
editor Dump API docs from inline GDScript comments using --doctool --gdscript-docs PATH 2023-05-08 11:00:29 -05:00
icons Make script type distinguishable by icon 2022-01-13 12:29:05 +01:00
language_server LSP: don't send empty completion command 2023-05-06 20:56:15 +01:00
tests GDScript: Fix warning ignoring for member variables 2023-05-12 17:43:58 +03:00
config.py [Scons] Implement module dependency sorting. 2022-08-04 20:00:19 +02:00
gdscript.cpp GDScript: Fix template_debug compilation with TOOLS/DEBUG macro mismatch 2023-04-28 11:09:12 +02:00
gdscript.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_analyzer.cpp GDScript: Fix warning ignoring for member variables 2023-05-12 17:43:58 +03:00
gdscript_analyzer.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_byte_codegen.cpp Fix edge cases of object lifetime when signals involved 2023-04-11 17:27:39 +02:00
gdscript_byte_codegen.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_cache.cpp Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_cache.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_codegen.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_compiler.cpp Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_compiler.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_disassembler.cpp GDScript: Fix wrong increment for disassembly of lambda 2023-02-27 11:19:22 -03:00
gdscript_editor.cpp sort code completions with rules 2023-05-23 05:12:34 +02:00
gdscript_function.cpp Merge pull request #65910 from KoBeWi/gdsus 2023-02-03 16:13:06 +01:00
gdscript_function.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_lambda_callable.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_lambda_callable.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_parser.cpp Rework Navigation Avoidance 2023-05-10 05:01:58 +02:00
gdscript_parser.h Add support for static variables in GDScript 2023-04-27 09:51:44 -03:00
gdscript_rpc_callable.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_rpc_callable.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_tokenizer.cpp Fix for mixed tabs and spaces in gdscript 2023-04-20 12:08:23 +02:00
gdscript_tokenizer.h Add support for Unicode identifiers in GDScript 2023-01-21 13:39:40 -03:00
gdscript_utility_functions.cpp GDScript: Rework type check 2023-02-17 19:57:18 +02:00
gdscript_utility_functions.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
gdscript_vm.cpp Merge pull request #75732 from vonagam/fix-duplicate-condition 2023-04-28 18:45:25 +02:00
gdscript_warning.cpp GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
gdscript_warning.h GDScript: Reorganize and unify warnings 2023-04-28 18:25:11 +03:00
register_types.cpp Remove references to compiled GDScript in export 2023-01-20 15:09:07 -03:00
register_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00