749 Commits

Author SHA1 Message Date
HolonProduction 612475a680 GDScript: Track columns by raw string offsets 2026-04-26 21:32:46 +02:00
Thaddeus Crews 9cde903388 Merge pull request #118314 from dalexeev/gds-improve-prop-hint-arr-dict-type
GDScript: Improve `PROPERTY_HINT_{ARRAY,DICTIONARY}_TYPE` handling
2026-04-09 17:41:14 -05:00
Danil Alexeev 7db019d44d GDScript: Improve PROPERTY_HINT_{ARRAY,DICTIONARY}_TYPE handling 2026-04-09 13:39:57 +03:00
yaye b9a0db2a65 Fix incorrect line reporting for mixed indentation errors 2026-04-02 14:31:36 +03:00
notgoyome 6adf691cc5 Fix usage of class_name in built-in scripts (no longer allowed) 2026-03-25 15:02:05 +09:00
PhairZ 0c3bfae3ef Implement declaration and lambda function tooltips. 2026-03-22 01:57:33 +02:00
StarryWorm 3cb2d376f8 Get rid of all unnecessary class_db.h includers 2026-03-04 17:40:05 -05:00
Thaddeus Crews de6a487b35 Merge pull request #115705 from dalexeev/improve-non-exported-members-remote-tree
Improve display of non-exported members in Remote Tree Inspector
2026-02-06 08:18:03 -06:00
Danil Alexeev 6e3dc38835 Editor: Improve appearance of built-in help 2026-02-06 11:15:59 +03:00
Lukas Tenbrink c5df0cb82b Don't right-align escaped newlines, e.g. for #define. This has previously led to long diffs in the commit history. 2026-02-04 19:31:28 +01:00
Danil Alexeev 376b2d8f57 Improve display of non-exported members in Remote Tree Inspector 2026-02-01 12:22:50 +03:00
voylin ea1cb8fe67 Add columns to Language Server 2026-01-31 06:22:08 +09:00
cdemirer 3694d22db3 Push multiline at the correct time when parsing super 2026-01-23 17:15:29 +03:00
Max Aller e304b4e43e GDScript: Fix incorrect default transfer_mode for @rpc annotation
The `@rpc` annotation was registered with "unreliable" as the default
transfer_mode, but the runtime (SceneRPCInterface) defaults to
TRANSFER_MODE_RELIABLE. This caused a mismatch between the documented
default and the actual behavior when using Node.rpc_config().

Changed the parser default to "reliable" to match the runtime behavior
and C# RpcAttribute. Added comments in all three locations to help
prevent future drift.

Fixes godotengine/godot-docs#8874
Related docs fix: godotengine/godot-docs#11554
2026-01-01 11:46:24 +01:00
Adam Scott 10c7cb878a Add new monospace related hint strings
- Add hint string `monospace` for `PROPERTY_HINT_{NONE,PASSWORD,PLACEHOLDER_TEXT}` to set the `LineEdit` font monospaced.
- Add hint string `monospace` for `PROPERTY_HINT_MULTILINE_TEXT` to set the `TextEdit` font monospaced.
- Add hint string `no_wrap` for `PROPERTY_HINT_MULTILINE_TEXT` to make the `TextEdit` not wrap lines automatically.

Also:
- Fix issue with `EditorPropertyMultilineText` not updating font properly.
- Add `EditorPropertyMultilineText` tweak flags.
- Add support with GDScript `@export_multiline`.
2025-12-03 12:57:40 -05:00
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 -03:00
Danil Alexeev 1bd7b99182 GDScript: Add debug/gdscript/warnings/directory_rules project setting 2025-11-12 12:20:34 +03:00
Thaddeus Crews d1d28c0bcf Merge pull request #111223 from Ivorforce/remove-iterator-include
Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
2025-10-06 09:06:49 -05:00
Lukas Tenbrink 1db0a60dc0 Replace std::size usage with std_size to avoid <iterator> include. 2025-10-05 00:26:11 +02:00
Thaddeus Crews 38af23a654 Merge pull request #89409 from aaronfranke/server-folders
Move server files into their subfolders
2025-10-03 12:01:00 -05:00
Aaron Franke 3d1c9fd5de Move server files into their subfolders 2025-09-30 19:39:39 -07:00
Artemy Fedotov a3e0f8dee2 Allow trailing comma in preload 2025-09-22 14:15:12 +04:00
HolonProduction 0e92dc7b8c GDScript: Don't stop annotation argument parsing at file end 2025-08-04 17:28:45 +02:00
HolonProduction 926cab9027 Autocompletion: Push empty call for lambdas 2025-07-25 20:26:26 +02:00
Chaosus c232b7c717 Fix lookup symbol for super() 2025-07-08 16:21:39 +03: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
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
Rémi Verschelde 22702244f8 Merge pull request #105414 from KoBeWi/disable_uid_here
Add `@export_file_path` to export raw paths (no UID)
2025-06-13 01:30:24 +02:00
Danil Alexeev ee121ef80e GDScript: Add support for variadic functions 2025-06-09 21:53:05 +03:00
Danil Alexeev a7cf2069d5 GDScript: Add abstract methods
Co-authored-by: ryanabx <ryanbrue@hotmail.com>
2025-06-09 20:11:58 +03: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 +02:00
Sat fc4df4b17d Added working version for user-defined function autocompletion 2025-06-08 07:01:35 -03: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 +02:00
Thaddeus Crews ee82adcf04 Merge pull request #105413 from HolonProduction/gdscript-recover-match
GDScript: Do phrase level recovery for match
2025-05-23 09:46:10 -05:00
kobewi 42249bb659 Add @export_file_path to export raw paths (no UID) 2025-05-22 13:25:17 +02:00
Danil Alexeev 7aafa6ef18 GDScript: Remove leftmost_column and rightmost_column fields 2025-05-21 18:16:20 +03: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
Thaddeus Crews f4f1471b57 Merge pull request #105910 from lawnjelly/global_get_fast4
Add `GLOBAL_GET` cached macros.
2025-04-30 09:18:44 -05:00
lawnjelly f8f350a32a Add GLOBAL_GET cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Rémi Verschelde c019b76523 Remove WinAPI #undef hacks needed for mingw-std-threads
Instead, we rename the conflicting symbols.
2025-04-29 14:24:03 +02:00
Thaddeus Crews c87f23ce7d Merge pull request #89324 from KoBeWi/pandora's_can_of_worms
Allow exporting variables of type Variant
2025-04-28 10:01:33 -05:00
Malcolm Anderson 5c662f7707 Add errors for keywords removed in Godot 4
Update modules/gdscript/gdscript_parser.cpp

Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>

Improve error message

Add tests

Add errors for other removed keywords

Remove very old keywords and improve wording of errors
2025-04-24 22:32:34 -07:00
HolonProduction 4a0e40f6ea GDScript: Do phrase level recovery for match 2025-04-15 13:00:43 +02:00
Thaddeus Crews bef5d1e4f8 Merge pull request #102218 from HolonProduction/dictionary-recovery
GDScript: Do phrase level recovery when parsing faulty dictionaries
2025-04-14 19:39:50 -05:00
Thaddeus Crews 717df3ee88 Merge pull request #105249 from Repiteo/core/math-defs-namespace
Core: Use `Math` namespace for constants
2025-04-11 09:51:04 -05:00
Thaddeus Crews 9e158215d1 Merge pull request #96375 from HolonProduction/completion-callable-braces
Autocompletion: Don't add parenthesis if `Callable` is expected
2025-04-10 16:53:45 -05:00
Thaddeus Crews 94282d88f9 Core: Use Math namespace for constants 2025-04-10 16:29:30 -05:00
HolonProduction e7487263ad Autocompletion: Don't add parenthesis if Callable is expected 2025-04-10 18:40:32 +02:00
Lukas Tenbrink fbe64ffb45 Change get_class_static to return StringName.
Use that static `get_class_static` for `_get_class_namev` to avoid duplication.
2025-04-08 23:25:05 +02:00
Thaddeus Crews 5edb235018 CI: Bump various pre-commit hooks 2025-04-07 08:23:35 -05:00