Thaddeus Crews
c937b6d180
Merge pull request #102419 from Ivorforce/std-size
...
Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
2025-03-07 15:12:25 -06:00
Thaddeus Crews
9e7fbdf52b
Merge pull request #103663 from pafuent/fixing_errors_warnings_output_on_tests
...
Fix `SCRIPT ERROR/ERROR/WARNING` on test output
2025-03-07 15:12:11 -06:00
Thaddeus Crews
e0a040c0d3
Merge pull request #101319 from JulianHeuser/region_syntax_highlighting_fix
...
Improve consistency of code regions
2025-03-07 12:06:34 -06:00
A Thousand Ships
5113022dfe
Clean up some uses of String::substr
...
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Pablo Andres Fuente
5775d29ad8
Fix SCRIPT ERROR/ERROR/WARNING on test output
...
Also "fixing" some GDScript completion tests which
where named wrongly.
2025-03-06 13:44:48 +01:00
HolonProduction
f4172445f3
Add _enable/_disable_plugin to plugin script template
2025-03-06 11:41:21 +01:00
HolonProduction
ca1e444bca
GDScript: Do phrase level recovery when parsing faulty dictionaries
2025-03-06 11:35:56 +01:00
HolonProduction
676e4c9013
GDScript: Cancel suspended functions when reloading a script
2025-03-06 11:34:40 +01:00
A Thousand Ships
fec3d9e68c
[Editor] Fix return of EditorTranslationParserPlugin._parse_file
...
Merged `_get_comments` into `_parse_file` and changed to using a
returned `Array[PackedStringArray]` instead.
2025-02-19 20:11:24 +01:00
Thaddeus Crews
7e5baa0426
Style: Enforce trailing newlines on svgs
2025-02-18 11:02:45 -06:00
Lukas Tenbrink
279505d8b0
Optimize GDScriptLambdaCallable by skipping the unnecessary ObjectDB lookup for script.
2025-02-16 20:52:09 +01:00
kobewi
012d47b089
Allow exporting variables of type Variant
2025-02-15 18:00:55 +01:00
HolonProduction
c00518eec7
Autocompletion: Override context for preload
2025-02-13 22:56:06 +01:00
Rémi Verschelde
83b3c1e11e
Merge pull request #102389 from Meorge/bugfix/unique-name-error
...
Display correct symbol in warning when unique name is used without @onready annotation
2025-02-11 23:59:01 +01:00
HolonProduction
62eebf1266
Autocompletion: Account for invalid annotations when making arghint
2025-02-11 09:17:22 +01:00
Lukas Tenbrink
e34f1f504c
Use std::size instead of sizeof(a) / sizeof(a[0]) pattern throughout the codebase.
2025-02-07 14:57:48 +01:00
Pāvels Nadtočajevs
7da0767f35
[TextEdit] Update syntax highlighting when IME composition string is updated.
2025-02-07 11:54:56 +02:00
Malcolm Anderson
8e8f93cf0c
Display correct symbol in warning when unique name is used without @onready annotation
...
Add tests for `GET_NODE_DEFAULT_WITHOUT_ONREADY` warning with unique nodes
Small modifications to tests
2025-02-06 10:49:08 -08:00
HolonProduction
d616ea5462
Fix enum value lookup jump
2025-02-06 10:04:01 +01:00
Pāvels Nadtočajevs
b50d9742c2
Fix is_valid_float, Variant parser, Expression parser, script highlighter, and TextServer not handing capital E in scientific notation.
2025-02-05 18:39:40 +02:00
bruvzg
3be46a69c4
Fix uppercase B and X parsing in the integer literals.
2025-02-05 16:02:06 +02:00
Rémi Verschelde
daa074881b
Revert "Fixed resource loader using not fully loaded scripts"
...
This reverts commit fd5fc9f3ee .
This caused significant regressions which are worse than the bug that #96499
aimed to address.
- Reverts #96499 .
- Reopens #95909 .
- Supersedes #102063 .
- Fixes #99006 .
- Fixes #101615 .
2025-02-04 19:51:54 +01:00
Thaddeus Crews
0b6a717ac1
Merge pull request #101127 from dalexeev/gds-edit-fix-enum-value-ctrl-click
...
Editor: Fix `Ctrl+Click` on enum values does nothing
2025-02-04 09:04:17 -06:00
Pedro J. Estébanez
318af42020
Include more attributes in the global class names cache
2025-01-29 09:39:50 +01:00
Thaddeus Crews
9630d4e2fc
Merge pull request #101632 from bruvzg/gds_tween_property_crash
...
Fix GDScript editor crash on invalid `tween_property` arguments.
2025-01-17 10:16:55 -06:00
Thaddeus Crews
73278bf35d
SCons: Properly NoCache all text files
2025-01-16 16:59:12 -06:00
Pāvels Nadtočajevs
576892863c
Fix GDScript editor crash on invalid tween_property arguments.
2025-01-16 10:40:13 +02:00
Xavier Sellier
b85096463e
Fix crash when using a modulo operator between a float and an integer
2025-01-14 15:07:19 +01:00
Rémi Verschelde
957097738f
Merge pull request #101235 from Repiteo/style/editorconfig
...
Style: Unify `.editorconfig` logic
2025-01-12 18:07:16 +01:00
Rémi Verschelde
632c77e10b
Merge pull request #84264 from HolonProduction/autocompletion-78003
...
Try to guess method return type even if subscript base has no value
2025-01-12 18:06:52 +01:00
Thaddeus Crews
9d0c41a489
Style: Unify .editorconfig logic
2025-01-12 08:49:01 -06:00
HolonProduction
24912d2010
Autocompletion: Try to guess method return type even if subscript base has no value
2025-01-11 23:50:43 +01:00
kobewi
c29e9e9b29
Ensure path for shallow scripts
2025-01-11 21:20:31 +01:00
Lukas Tenbrink
2aeca3e885
Optimize String::chr to avoid calling strlen. Use String::chr instead of String(&chr, 1) where appropriate.
2025-01-10 18:06:46 +01:00
Julian
ba3f4a4b24
Code region keywords must be followed by whitespace
2025-01-09 14:11:07 -05:00
Danil Alexeev
cd918ff470
GDScript: Remove RENAMED_IN_GODOT_4_HINT from GDScriptWarning::Code enum
2025-01-09 21:07:41 +03:00
Aarni Koskela
f134769506
Fix various typos
...
* Add TODO notes for typos that should be fixed for 5.0
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com >
2025-01-08 14:47:42 +02:00
Yufeng Ying
34d8255947
Force build editor with regex module, remove checking code.
...
Fix include.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com >
2025-01-07 19:43:23 +08:00
Rémi Verschelde
30b20bc251
Merge pull request #99121 from dalexeev/gds-deprecate-inst-to-dict
...
GDScript: Deprecate `inst_to_dict()` and `dict_to_inst()` functions
2025-01-06 22:46:52 +01:00
Danil Alexeev
4cef91e0f5
Editor: Fix Ctrl+Click on enum values does nothing
2025-01-04 17:28:53 +03:00
Danil Alexeev
07f8935c69
GDScript: Deprecate inst_to_dict() and dict_to_inst() functions
2025-01-03 21:17:06 +03:00
Ricardo Subtil
b77aa473a1
Implement a "Recovery Mode" for recovering crashing/hanging projects during initialization
2025-01-03 10:50:15 +00:00
Rémi Verschelde
5ff616736a
Merge pull request #100825 from KoBeWi/colored_eight
...
Add `Color.from_rgba8` and deprecate Color8
2025-01-03 00:49:18 +01:00
kobewi
4e48b19e1f
Add Color.from_rgba8 and deprecate Color8
2024-12-27 11:26:59 +01:00
A Thousand Ships
a1846b27ea
Improve use of Ref.is_null/valid
...
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Thaddeus Crews
0f95e9f8e6
Merge pull request #100575 from Wierdox/improve_syntax_highlighting_for_shorthand_of_and_plus_bitwise_and_by_altering_string_name_highlighting
...
Improve `&&` and `&` syntax highlighting by altering `StringName` highlighting
2024-12-23 11:15:21 -06:00
Yufeng Ying
33817b186f
Remove unused header in drivers and modules.
...
Co-authored-by: Thaddeus Crews <repiteo@outlook.com >
2024-12-24 00:40:47 +08:00
Wierdox
ed81a17e1e
Improve '&&' and '&' syntax highlighting by altering StringName highlighting
2024-12-21 14:02:31 -08:00
Rémi Verschelde
0a37e12a9b
Merge pull request #100610 from YYF233333/style
...
Remove unused variable in `GDScriptLanguage`
2024-12-20 23:56:58 +01:00
Thaddeus Crews
a4f423cc97
Merge pull request #78489 from dalexeev/gds-add-disassembling-implicit-funcs
...
GDScript: Add disassembling implicit and lambda functions
2024-12-19 19:59:36 -06:00