1
0
Fork 0
Commit Graph

3696 Commits

Author SHA1 Message Date
Thaddeus Crews 8f386fd9c4
Merge pull request #110775 from fstxz/preload-comma
Allow trailing comma in `preload`
2025-10-01 17:54:19 -05:00
Thaddeus Crews 7b5ee98474
Merge pull request #94118 from CrazyRoka/optimize-gdscript-notifications
Optimize `GDScriptInstance::notification` for better performance
2025-09-30 20:10:36 -05:00
Thaddeus Crews b9730c0b2e
Merge pull request #110240 from westenral/add_int_division_warnings
Add checks for integer vectors for integer division warning
2025-09-30 20:10:33 -05:00
Thaddeus Crews 1f7bf131b0
Merge pull request #109298 from HolonProduction/autocompletion-cleanup
Autocompletion: Remove duplicate code
2025-09-30 18:35:24 -05:00
Thaddeus Crews 8bc1dd63f4
Merge pull request #107936 from mihe/missing-await-warning
Add opt-in GDScript warning for when calling coroutine without `await`
2025-09-30 18:35:05 -05:00
CrazyRoka bcc0922a20 Optimize GDScriptInstance::notification for better performance 2025-09-30 19:57:35 +01:00
Thaddeus Crews 21fd4faf1b
Merge pull request #107469 from Ivorforce/vector-localvector-explicit-span-conversions
Remove implicit conversions between `LocalVector` and `Vector`
2025-09-30 11:19:17 -05:00
Thaddeus Crews 7974cf00e7
Merge pull request #110952 from aaronfranke/skip-cons-then-copy
Skip copying values constructed immediately before returning
2025-09-30 11:19:15 -05:00
Thaddeus Crews fdf32d1b2a
Merge pull request #108577 from YYF233333/global_class_list
Simplify `ScriptServer::get_global_class_list`
2025-09-30 11:19:10 -05:00
Aaron Franke 754d49ac81
Skip copying values constructed immediately before returning 2025-09-26 19:13:58 -07:00
Edward Moulsdale e366471fdc Add GDSOFTCLASS to deeper inheritors of Object 2025-09-24 19:15:56 +01:00
Thaddeus Crews aa2c4fe654
Merge pull request #110717 from Shadows-of-Fire/elide-copy-typed-collection
GDScript: Elide unnecessary copies in `CONSTRUCT_TYPED_*` opcodes
2025-09-23 12:08:53 -05:00
Michael Alexsander f16ff829f0
Allow to use sliders for integers in `EditorSpinSlider` 2025-09-22 11:23:15 -03:00
Thaddeus Crews 94dbc42a56
Merge pull request #62083 from KoBeWi/string_slice'n_dice
Improve usage of `String.split()` vs `get_slice()`
2025-09-22 08:50:01 -05:00
Artemy Fedotov a3e0f8dee2
Allow trailing comma in `preload` 2025-09-22 14:15:12 +04:00
Shadows_of_Fire b18beb2cc2 Elide unnecessary copies in `CONSTRUCT_TYPED_*` opcodes 2025-09-20 00:00:18 -07:00
Thaddeus Crews 8265bb8b6a
Merge pull request #110097 from aaronp64/array_tests
Add more `Array` tests
2025-09-19 13:07:13 -05:00
kobewi d61a337a70 Improve usage of String.split() vs get_slice() 2025-09-19 16:31:55 +02:00
Thaddeus Crews d51c13fdd4
Merge pull request #110397 from mooflu/syntaxhi-110390
Don't reset color if the previous token is a number ending with a dot.
2025-09-16 20:29:00 -05:00
Lukas Tenbrink abe3b481ae Make conversions from `LocalVector` to `Vector` explicit. 2025-09-16 21:41:28 +02:00
Yufeng Ying a50fc5acd8 Change ClassDB::get_class_list and related stuff. 2025-09-16 15:00:33 +08:00
Lukas Tenbrink 4c0026b053 Update links to the contributing section of the docs to the appropriate new sections. 2025-09-12 01:04:14 +02:00
Frank Becker aa8acd1a04 Don't reset color if the previous token is a number ending with a dot. 2025-09-11 11:40:15 -07:00
westenral 565e1aaeb9 Add checks for integer vectors for integer division warning
Remove warnings for invalid Vectori combinations

Co-authored-by: kleonc <9283098+kleonc@users.noreply.github.com>
2025-09-04 10:13:05 -04:00
aaronp64 2b855d831d Add more Array tests
Added more tests for Array, focusing on methods exposed to gdscript that didn't have tests.
2025-08-30 13:12:16 -04:00
Thaddeus Crews b432e108d5
Merge pull request #109791 from Talkashie/master
Typo cleanup pass
2025-08-21 18:39:37 -05:00
Arti Chhabra e7214c229b Fix the issue by resetting the reloading false first and then returning error directly instead of calling Macro
Fix the review comment

Fix the clang format

Update as per review comment
2025-08-21 13:13:11 -07:00
Thaddeus Crews fc245d69d2
Merge pull request #109304 from HolonProduction/parse-annoation-early-end-stop
GDScript: Don't stop annotation argument parsing at file end
2025-08-20 12:07:16 -05:00
Talkashie bc7e68dfd1 Typos 2025-08-19 18:32:59 -05:00
Aaron Franke b73597292b
Improve error messages for lambda functions without a body 2025-08-18 06:29:20 -07:00
Pāvels Nadtočajevs b21e6529e6
[GDScript] Fix `range` helper method using 32-bit ints for arguments. 2025-08-08 20:22:24 +03:00
HolonProduction 97b1bc6bda Autocompletion: Don't call const functions 2025-08-05 09:03:10 +02:00
HolonProduction 0e92dc7b8c GDScript: Don't stop annotation argument parsing at file end 2025-08-04 17:28:45 +02:00
HolonProduction 8ec31b7b3d Autocompletion: Remove duplicate code 2025-08-04 12:59:22 +02:00
HolonProduction 926cab9027 Autocompletion: Push empty call for lambdas 2025-07-25 20:26:26 +02:00
Thaddeus Crews 8acc596bcf
Merge pull request #108944 from vnen/gdscript-fix-static-call-fail-when-shadowing
Properly detect native class on static call optimization
2025-07-25 11:08:14 -05:00
George Marques 38f8643b00
GDScript: Properly detect native class on static call optimization 2025-07-25 09:17:39 -03:00
Thaddeus Crews 598409b727
Merge pull request #108947 from mihe/gdscript-reload-crash
Fix crash when GDScript scripts are reloaded during initial import
2025-07-24 20:49:42 -05:00
George Marques 81c7cae567
GDScript: Don't get invalid dictionary key during completion
We try to get the value out of a dictionary in order to establish its
type for completion purposes. However, if the dictionary or the key
is not a constant, we cannot safely get the actual value, so we skip
this and just try to infer from static typing.

Getting the value directly with `Variant::get()` generate errors if the
base is a Dictionary and the key is of an invalid type. So before trying
to get it we use the Dictionary validator to make sure it we can safely
try to get the key.
2025-07-24 15:02:40 -03:00
Mikael Hermansson 809a6cf705 Fix crash when GDScript scripts are reloaded during initial import 2025-07-24 16:41:33 +02:00
Thaddeus Crews 25dcf7d2a0
Merge pull request #108306 from Chaosus/gds_fix_super_completion
Fix lookup symbol for `super()`
2025-07-17 10:34:48 -05:00
kit 7e9e3b767c Fix some Text Editor theme issues and clean up 2025-07-15 13:43:30 -04:00
Thaddeus Crews c977b597b8
Merge pull request #107872 from Thought-Weaver/users/loganapple/editor-caret-fix
[Autocomplete] Avoid prepending literals when the character has already been typed
2025-07-10 11:39:30 -05:00
Chaosus c232b7c717 Fix lookup symbol for super() 2025-07-08 16:21:39 +03:00
HolonProduction d4abc211f1 GDScript: Fix autocompletion issues with nested types 2025-07-08 14:48:21 +02:00
Logan Apple 216c462277 Initial fix for double caret inserting in NodePath
Additional cases where prepending doubles up

Moved code to helper function

Added unit tests

Lookup caret character instead of passing position

Switched to using the parsed type

Adding safety checks and various cleanup
2025-07-07 09:23:32 -07:00
A Thousand Ships f11aff3841
Editor: Restructure editor code
Moving various editor files into sub folders to reduce clutter
2025-07-04 18:18:22 +02:00
Thaddeus Crews 9b22b41531
Merge pull request #105087 from HolonProduction/lsp-annotations
LSP: Extract annotations from `EditorHelp`
2025-07-03 12:21:28 -05:00
Thaddeus Crews 89809f2b72
Merge pull request #108140 from HolonProduction/lsp-init-delay
LSP: Don't poll during editor setup
2025-07-03 12:21:20 -05:00
Thaddeus Crews 77b680244d
Merge pull request #102186 from HolonProduction/completion-builtin-enum
Improve GDScript editor support for global enums
2025-07-03 12:21:19 -05:00