37a3a98fde
GDScript: Fix incorrect default values in _make_arguments_hint()
2024-07-23 19:35:42 +03:00
4699e69708
Autocompletion: register depended parsers with the main parser
2024-07-18 12:16:28 +02:00
402bdfa3b7
Generate arghint for script types
2024-07-13 10:47:26 +02:00
9a84387017
Autocompletion: Keep get_node values which are compatible with type hint
2024-07-12 12:32:30 +02:00
70488d40db
Autocompletion: Don't use in operator to decide over variant lookup
2024-07-01 15:57:03 +02:00
322c64c6ea
Fix symbol lookup for native enums
2024-06-25 09:43:11 +03:00
cd87b0bf84
Merge pull request #93057 from HolonProduction/not-enough-code-paths
...
Autocompletion: Add support for string name option in more places
2024-06-19 10:53:21 +02:00
51f74af2ac
Autocompletion: Add support for string name option in more places
2024-06-12 20:38:43 +02:00
5962646fd3
Fix goto definition for new method
2024-06-08 10:52:01 +03:00
fc2b82188b
Fix completion for new arguments
2024-05-26 13:47:22 +03:00
4ce95d684c
Merge pull request #91653 from HolonProduction/autocompletion-analyze-recursively-but-leave-the-parser-alone
...
Autocompletion: Analyze CLASS types as they are encountered
2024-05-19 11:21:11 +02:00
76b2d85c9f
GDScript: Fix some export annotation issues
2024-05-13 17:49:06 +03:00
d83586f1e4
Merge pull request #84492 from HolonProduction/reduce-const-arrays
...
Autocompletion: Mark datatype as constant for constant arrays
2024-05-07 21:52:40 +02:00
d131064841
Autocompletion: Analyze CLASS types as they are encountered
2024-05-07 10:45:28 +02:00
955d5affa8
Reduce and prevent unnecessary random-access to List
...
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)
* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
6b88c86cec
GDScript: invalidate GDScriptParserRef when reloading
2024-04-18 14:05:58 -07:00
9a9045cf7a
Merge pull request #89382 from dcaoc03/master
...
Fix enum autocompletion for core classes
2024-04-09 22:25:13 +02:00
de8b6f7a3c
Add editor settings for autocompletion with NodePath and StringName
2024-03-19 17:23:54 +02:00
935ea10f3a
Fixed enum autocompletion for core classes (Issue #88858 )
...
Minor fix consisted in the use of [[fallthrough]] macro
2024-03-15 20:20:36 +00:00
7426b4d448
Fix user after free in GDScriptLanguage::debug_get_globals
2024-03-08 07:32:31 +01:00
7b3e1a5bde
Optimize SceneTree's change_scene_to_file autocompletion
2024-03-01 15:12:52 +01:00
7ffc246aad
Add fallback argument hints for default values
2024-02-11 10:01:03 -05:00
b4d0a09f15
GDScript: Reintroduce binary tokenization on export
...
This adds back a function available in 3.x: exporting the GDScript
files in a binary form by converting the tokens recognized by the
tokenizer into a data format.
It is enabled by default on export but can be manually disabled. The
format helps with loading times since, the tokens are easily
reconstructed, and with hiding the source code, since recovering it
would require a specialized tool. Code comments are not stored in this
format.
The `--test` command can also include a `--use-binary-tokens` flag
which will run the GDScript tests with the binary format instead of the
regular source code by converting them in-memory before the test runs.
2024-02-08 11:20:05 -03:00
50491db048
Merge pull request #88071 from Calinou/gdscript-nodepath-autocomplete-fix-identifiers
...
Fix NodePath autocompletion to ensure paths are quoted when required
2024-02-08 10:54:12 +01:00
1238b60b22
Fix NodePath autocompletion to ensure paths are quoted when required
...
Every component of the path is now checked to be a valid identifier,
so that node names that start with a digit always require the full
path to be quoted.
2024-02-07 19:26:55 +01:00
1d75480082
Fix autocompletion for enum members in the core classes
2024-02-07 20:42:06 +03:00
6df1a1e9b0
Autocompletion: mark datatype as constant for constant arrays
2024-02-05 20:26:43 +01:00
d644b9b640
Better hide internal properties from users
2024-01-29 12:35:10 +01:00
9579dc6313
Merge pull request #85239 from HolonProduction/global-class-property-location
...
Handle global classes when resolving property location
2024-01-25 16:26:50 +01:00
c99e4f862f
Handle global classes when resolving property location
2024-01-24 18:05:47 +01:00
72756133e0
Merge pull request #85224 from HolonProduction/identifier-type-prefer-annotated
...
Prefer identifiers annotated type if assigned type is incompatible to it
2024-01-24 14:07:52 +01:00
b5dcb5f58a
Merge pull request #85215 from HolonProduction/type-from-property-class-name
...
Handle global classes when resolving type from `PropertyInfo`
2024-01-18 09:33:22 +01:00
0203b3c310
Prefer identifiers annotated type if assigned type is incompatible to it
2024-01-17 22:32:00 +01:00
4ab985d138
Handle global classes when resolving type from PropertyInfo
2024-01-17 21:39:51 +01:00
dc729f1614
Merge pull request #87278 from HolonProduction/give-those-autoloads-an-upgrade
...
Handle GDScript in `_type_from_variant` for autocompletion
2024-01-17 18:53:25 +01:00
5b22884b4a
Merge pull request #86554 from HolonProduction/lookup-subscript
...
Fix symbol lookup in index subscript
2024-01-17 18:52:49 +01:00
28cf7fe2f6
Merge pull request #85384 from HolonProduction/unique-name-completion
...
Suggest scene unique nodes in `get_node` autocompletion
2024-01-17 18:52:31 +01:00
6af45c6ef2
Handle GDScript in _type_from_variant for autocompletion
2024-01-16 23:04:10 +01:00
96a95cb974
Add const lvalue ref to container parameters
2024-01-05 14:49:57 -03:00
525e0bb37c
Merge pull request #86667 from HolonProduction/completion-enum-sorting
...
Improve sorting of enum autocompletion
2024-01-04 14:26:25 +01:00
6c390b620d
Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
...
Add const references detected by clang-tidy
2024-01-04 14:25:33 +01:00
c8fc824608
Fix the autocomplete function for the 'self' keyword.
2024-01-02 20:47:41 +03:00
76fd7ec394
Improve sorting of enum autocompletion
2023-12-31 14:35:08 +01:00
54742f7c60
Fix symbol lookup in index subscript
2023-12-27 17:46:17 +01:00
a3cb1b096f
Add const references detected by clang-tidy
2023-12-16 13:36:44 -05:00
5c99558d16
Merge pull request #76591 from HolonProduction/complete-tween
...
Autocomplete properties in `tween_property`
2023-12-14 17:37:53 +01:00
5f72254d4d
Fix regression when autocompleting subscript on get node
2023-12-13 10:54:40 +01:00
7c8dfea9e3
Merge pull request #85196 from HolonProduction/completion-filter-groups
...
Filter groups and categories from autocompletion
2023-12-05 13:05:18 +01:00
c8889a7fe7
Improve autocompletion with get_node
2023-12-04 17:06:46 +01:00
e253250814
Filter groups and categories from autocompletion
2023-12-04 15:48:29 +01:00