summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_editor.cpp
AgeCommit message (Collapse)Author
2023-01-09Assorted enum and native type fixesocean (they/them)
2023-01-07Force double quotes for NodePaths with apostrophesjordi
2023-01-06Unify typing of variables, constants and parameters in GDScriptDmitrii Maganov
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-22Remove unused code paragraph from gdscript_editor.cpp/complete_codeYuri Rubinsky
2022-12-11Fix autocomplete on functions returning variantspoohcom1
- When guessing return type, check type hints before last return value
2022-12-08Fix autocomplete crash as it would infinite loopAdam Scott
2022-12-07Fix lookup to docs for variables initialized with `get_node`Yuri Rubinsky
2022-12-06Fix completion for the raw `get_node` callYuri Rubinsky
2022-11-28Fix lookup code to pass functions with the same name as built-insYuri Rubinsky
2022-11-21Fix GDScript completion crashYuri Rubinsky
2022-11-14Fix completion popup for the variables created with `get_node` callYuri Rubinsky
2022-11-14Merge pull request #65712 from Chaosus/gds_fix_completionRémi Verschelde
fix https://github.com/godotengine/godot/issues/64477
2022-11-13GDScript compiler subclass bugfixesRune
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-06Fix outdated keywords autocompletionVolTer
2022-10-03Fix hide_slider vs no_slider inconsistency in editor property codeAaron Franke
2022-09-12Fix completion for variables initialized by `get_node` callYuri Rubinsky
2022-09-02Rename `or_lesser` range property hint to `or_less`Hugo Locurcio
"less" should be used for quantity, rather than "lesser". Existing scripts that use `or_lesser` in `_get_property_list()` will need to be updated to account for this change.
2022-08-15Fix action name completion for `Input`Haoyu Qiu
2022-08-10Merge pull request #63015 from Xwdit/fix_gds_editor_tooltip_arg_typeRémi Verschelde
2022-08-10Fixed incorrect type display of function argument in GDScript editor tooltipsXwdit
2022-08-10Fixed incorrect type display of void return in GDScript editor tooltipsXwdit
2022-08-10Prevent global functions from overriding completion of subscriptYuri Rubinsky
2022-07-29fix(gdscript): Fix infinite loop on type inferernce from super method callsAntonio Dell'Annunziata
When infering the type from a `super()` call, the gdscript_editor didn't use the base class to search for the original implementation of the method, but instead searched in the extending class. This caused the same function to be analyzed for type inference which created the infinite loop. Solves #63592
2022-07-18Fix crash while trying to autocomplete non-global Autoloadcdemirer
2022-07-06Merge pull request #62699 from ↵Rémi Verschelde
cdemirer/fix-autocomplete-var-assigned-same-statement
2022-07-06Merge pull request #62690 from cdemirer/fix-infinite-guess-recursionRémi Verschelde
2022-07-06Merge pull request #62760 from cdemirer/fix-annotation-initializer-conflictRémi Verschelde
Fix priority of annotated type vs initializer type
2022-07-06Merge pull request #62713 from YuriSizov/docs-scripting-annotationsRémi Verschelde
2022-07-06Merge pull request #62707 from YuriSizov/gdscript-group-those-propsRémi Verschelde
2022-07-06Fix priority of annotated type vs initializer typecdemirer
2022-07-05Implement a BitField hintreduz
Allows to specify the binder that an enum must be treated as a bitfield.
2022-07-05Add grouping annotations for class properties in GDScriptYuri Sizov
2022-07-04Add support for documenting built-in annotationsYuri Sizov
2022-07-04Fix autocomplete for variable which is assigned to in the current statementcdemirer
2022-07-04Fix infinite recursion when guessing type of variable which is being assigned tocdemirer
2022-06-24Rename export_range's noslider option to no_sliderMarcus Elg
2022-06-19Allow autocompletion of "noslider" in export_rangeMarcus Elg
2022-05-25Merge pull request #61389 from snailrhymer/lookup-fixRémi Verschelde
2022-05-25Make Lookup Symbol recognize assert and preload in the script editorSnailRhymer
2022-05-25Fix lookup_code to properly handle symbols at start of assignmentsSnailRhymer
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Fix signal completion in GDScript editorYuri Rubinsky
2022-05-12Add a new HashMap implementationreduz
Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-04-28Fix cppcheck const parametersMarkus Sauermann
Convert method signature parameters to const where it is possible # Conflicts: # drivers/gles3/rasterizer_canvas_gles3.cpp # drivers/gles3/rasterizer_canvas_gles3.h # editor/plugins/animation_state_machine_editor.cpp # editor/plugins/animation_state_machine_editor.h
2022-04-07Add built-in Variant types to autocompletion listDavid Maziarka
Co-authored-by: Gustav <gusan092@student.liu.se>