Commit Graph

457 Commits (dec5a373d97cbadce5e1fabe6095ae9957ff3aa6)

Author SHA1 Message Date
George Marques 501c5b0900
GDScript: Make check for exposed classes more consistent
Some places were already checking if classes from ClassDB were exposed,
while others didn't. This makes the check more consistent to avoid
disparities which can lead to crashes.
2025-11-25 12:24:18 +07:00
Thaddeus Crews e873576d71
Merge pull request #111878 from mu3657/master
Fix: Add Variant to type autocompletion
2025-11-21 14:46:44 +07:00
Thaddeus Crews f41c8464cc
Merge pull request #112770 from KoBeWi/underscore_undercover
Don't expose underscored signals
2025-11-17 19:36:07 +07:00
kobewi 54c2eaee4d Don't expose underscored signals 2025-11-14 18:52:42 +07:00
Danil Alexeev 1bd7b99182
GDScript: Add `debug/gdscript/warnings/directory_rules` project setting 2025-11-12 12:20:34 +07:00
mu3657 f428358c69 Fix: Add Variant to type autocompletion and filter out Nil option in autocompletion 2025-11-03 19:10:17 +07:00
Thaddeus Crews ae9732139a
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
2025-10-31 09:23:30 +07:00
Thaddeus Crews 1bae99a65d
Merge pull request #101092 from HolonProduction/argument-options-completion-type
Autocompletion: Use correct completion type for argument options
2025-10-21 15:11:07 +07:00
Thaddeus Crews 1f7bf131b0
Merge pull request #109298 from HolonProduction/autocompletion-cleanup
Autocompletion: Remove duplicate code
2025-09-30 18:35:24 +07: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 +07:00
Michael Alexsander f16ff829f0
Allow to use sliders for integers in `EditorSpinSlider` 2025-09-22 11:23:15 +07:00
Yufeng Ying a50fc5acd8 Change ClassDB::get_class_list and related stuff. 2025-09-16 15:00:33 +07:00
kobewi a33ae0be0e Add has_extension() method to String 2025-08-12 13:15:16 +07:00
HolonProduction 97b1bc6bda Autocompletion: Don't call const functions 2025-08-05 09:03:10 +07:00
HolonProduction 8ec31b7b3d Autocompletion: Remove duplicate code 2025-08-04 12:59:22 +07: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 +07:00
George Marques 38f8643b00
GDScript: Properly detect native class on static call optimization 2025-07-25 09:17:39 +07: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 +07: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 +07: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 +07:00
Chaosus c232b7c717 Fix lookup symbol for super() 2025-07-08 16:21:39 +07:00
HolonProduction d4abc211f1 GDScript: Fix autocompletion issues with nested types 2025-07-08 14:48:21 +07: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 +07: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 +07:00
Thaddeus Crews bad29ef0c7
Merge pull request #107636 from HolonProduction/completion-dont-use-next
Autocompletion: Don't use `next` for `GET_NODE` inference
2025-07-01 17:57:59 +07:00
Thaddeus Crews ee5859b7ae
Merge pull request #92584 from HolonProduction/autocompletion-assign-variant
Autocompletion: Fix type resolution when assigning variant
2025-07-01 17:57:51 +07:00
Serhii Snitsaruk a095c5e3fa
GDScript call stack as reverse linked list with fixed coroutines
* GDScript call stack as reverse linked list with issues fixed
(originally proposed in 91006).
* Fix coroutine issues with call stack by resuming async call chain
inside `GDScriptFunction::call()`.
* This fixes corrupted line numbers for coroutines in the debugger and
backtrace (106489).

Co-authored-by: Juan Linietsky <reduzio@gmail.com>
2025-06-30 11:37:42 +07:00
Danil Alexeev c8bb21e68b
GDScript: Fix `GDScriptLanguage::make_function()` 2025-06-28 13:39:59 +07:00
Rémi Verschelde ebc36a7225
Merge pull request #107717 from aaronfranke/abstract-annotation
GDScript: Replace `abstract` keyword with `@abstract` annotation
2025-06-27 17:12:56 +07:00
Thaddeus Crews 4a90220fc9
Merge pull request #107852 from HolonProduction/completion-filter-current-impl
Autocompletion: Don't filter overrides when the existing function is the current one
2025-06-27 09:39:52 +07:00
Thaddeus Crews 6277e9d02b
Merge pull request #93429 from dalexeev/fix-method-signature-appearance
GDScript: Fix call hint appearance for complex callees
2025-06-24 09:58:49 +07:00
Aaron Franke 1085200f51
GDScript: Replace `abstract` keyword with `@abstract` annotation
Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>
2025-06-23 12:24:45 +07:00
Danil Alexeev a59587c308
GDScript: Fix double spaces for type hints when connecting signal 2025-06-23 21:46:03 +07:00
Danil Alexeev fbede89573
GDScript: Fix call hint appearance for complex callees 2025-06-23 19:28:48 +07:00
HolonProduction 991c1a85a9 Autocompletion: Don't filter overrides when the existing function is the current one 2025-06-22 16:25:36 +07:00
HolonProduction 49e8d3ff98 Autocompletion: Don't use `next` for GET_NODE inference 2025-06-17 17:03:59 +07:00
HolonProduction 242b5efd9d Autocompletion: Fix type resolution when assigning variant 2025-06-15 20:17:19 +07:00
HolonProduction 98f3af86fa Autocompletion: Use correct completion type for argument options 2025-06-15 19:42:11 +07:00
HolonProduction af54b13603 Autocompletion: Add support for global enums 2025-06-15 19:41:13 +07:00
Danil Alexeev ee121ef80e
GDScript: Add support for variadic functions 2025-06-09 21:53:05 +07:00
Thaddeus Crews 3b963ab8b6
Merge pull request #105081 from dalexeev/gds-add-export-tool-button-autocompletion
GDScript: Add autocompletion for `@export_tool_button`
2025-06-09 12:31:43 +07:00
Rémi Verschelde fb59a99244
Merge pull request #106198 from SatLess/User-Func-Autocomplete
Add code completion for user-defined methods when overriding in GDScript
2025-06-09 00:44:22 +07:00
Sat fc4df4b17d Added working version for user-defined function autocompletion 2025-06-08 07:01:35 +07:00
Rémi Verschelde 0518bd5fee
Merge pull request #106683 from dalexeev/gds-remove-leftmost-rightmost-column
GDScript: Remove `leftmost_column` and `rightmost_column` fields
2025-06-05 13:12:02 +07:00
Danil Alexeev 7aafa6ef18
GDScript: Remove `leftmost_column` and `rightmost_column` fields 2025-05-21 18:16:20 +07:00
Yufeng Ying 1384e82c2c Improve ScriptLanguage get keyword API. 2025-05-17 18:43:19 +07:00
Thaddeus Crews b59d6bea4f
Merge pull request #67777 from aaronfranke/virtually-annotated
Add a keyword for abstract classes in GDScript
2025-05-13 16:22:16 +07:00
kobewi 9e0203a58a Don't synchronize scripts with errors 2025-05-08 17:29:15 +07:00
Aaron Franke 067704f1cd
Add a keyword for abstract classes in GDScript
Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
2025-05-02 00:03:04 +07:00