1
0
Fork 0
godot/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
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
SCsub
config.py
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
gdscript_lambda_callable.h
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
gdscript_rpc_callable.h
gdscript_tokenizer.cpp Fix for mixed tabs and spaces in gdscript 2023-04-20 12:08:23 +02:00
gdscript_tokenizer.h
gdscript_utility_functions.cpp GDScript: Rework type check 2023-02-17 19:57:18 +02:00
gdscript_utility_functions.h
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
register_types.h