Commit Graph

3751 Commits

Author SHA1 Message Date
HolonProduction ab0397878c GDScript: Ensure correct caching of cyclic references 2025-12-05 10:41:06 +01:00
HolonProduction 2ce3be221a Correctly set GDScript internal path for shallow scripts 2025-12-04 20:44:00 +01:00
Thaddeus Crews 0755f096e0 Merge pull request #113512 from adamscott/PROPERTY_HINT_MULTILINE_TEXT_monospace-hint
Add new monospace related hint strings
2025-12-03 21:01:58 -06:00
Thaddeus Crews f6b3803900 Merge pull request #109345 from HolonProduction/resource-cache-shall-shun-shallow
Prevent shallow scripts from leaking into the `ResourceCache`
2025-12-03 21:01:56 -06: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
Micky 14ede94a76 Use ScriptExportMode enum in EditorExportPreset 2025-12-03 09:21:50 +01:00
Rémi Verschelde 71d4ded745 Merge pull request #113279 from Ivorforce/tracy-gdscript-codeloc
Add support for profiling GDScript with tracy.
2025-12-02 14:16:56 +01:00
Lukas Tenbrink acefbbbbcd Add support for profiling GDScript with tracy.
This adds macro `GodotProfileZoneGroupedFirstScript`, and uses interning for speedy lookups.

Co-authored-by: Samuel Nicholas <nicholas.samuel@gmail.com>
2025-11-28 16:36:36 +01:00
Brian Petkovsek 0d9ff70296 Fix documentation typos and broken links 2025-11-27 12:24:58 +01: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
Thaddeus Crews 1788983ee8 Merge pull request #113031 from HolonProduction/lets-put-a-hack-on-top-the-hack
LSP: Improve insertion algorithm for resolving completion options
2025-11-25 07:06:50 -06:00
Nathan Lovato cd2bd8f624 GDScript LSP: Rework and extend BBCode to markdown docstring conversion
The original implementation was minimal and produced docstrings with poor formatting and no line returns in code editors other than VSCode.

Co-authored-by: HolonProduction <holonproduction@gmail.com>
2025-11-24 11:39:58 +01:00
HolonProduction 14cde0fa10 LSP: Improve insertion algorithm for resolving completion options 2025-11-22 01:03:38 +01:00
Thaddeus Crews e873576d71 Merge pull request #111878 from mu3657/master
Fix: Add Variant to type autocompletion
2025-11-21 14:46:44 -06:00
HolonProduction b4203f7f64 Prevent shallow scripts from leaking into the ResourceCache
Co-Authored-By: Moritz Burgdorff <mburgdorff@outlook.com>
Co-Authored-By: Lily <gofastlily@gmail.com>
2025-11-20 21:48:03 +01:00
Thaddeus Crews f41c8464cc Merge pull request #112770 from KoBeWi/underscore_undercover
Don't expose underscored signals
2025-11-17 19:36:07 -06:00
Thaddeus Crews b651fc3204 Merge pull request #93889 from dalexeev/gds-exclude-addons-exceptions-setting
GDScript: Add `debug/gdscript/warnings/directory_rules` project setting
2025-11-17 10:56:51 -06:00
kobewi 54c2eaee4d Don't expose underscored signals 2025-11-14 18:52:42 +01:00
Cyril Bissey 3905392596 Add string placeholder syntax highlighting 2025-11-13 14:14:08 +01:00
Danil Alexeev 1bd7b99182 GDScript: Add debug/gdscript/warnings/directory_rules project setting 2025-11-12 12:20:34 +03:00
Thaddeus Crews d0babb8453 Merge pull request #111172 from HolonProduction/rm-subclass-count
Remove unused `GDScript::subclass_count`
2025-11-10 08:20:13 -06:00
Thaddeus Crews ea1aec2c1c Merge pull request #112193 from KnifeXRage/autoload_with_uids
Autoloads with UIDs
2025-11-10 08:20:12 -06:00
Thaddeus Crews fae64fbbd2 Merge pull request #111490 from HolonProduction/rm-base
Remove raw base pointer from `GDScript`
2025-11-07 10:32:25 -06:00
Aditya Raj d940614595 Autoloads with UIDs 2025-11-07 21:08:54 +05:30
mu3657 f428358c69 Fix: Add Variant to type autocompletion and filter out Nil option in autocompletion 2025-11-03 19:10:17 +08:00
Thaddeus Crews ae9732139a Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
2025-10-31 09:23:30 -05:00
HolonProduction bbdf37b7a2 LSP: Fix remaining unsave dict access 2025-10-28 18:12:59 +01:00
Thaddeus Crews 03ae868b15 Merge pull request #111478 from HolonProduction/lsp-decl-fix
LSP: Fix goto native declaration
2025-10-21 15:11:10 -05: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 -05:00
Thaddeus Crews 0fce9b0439 Merge pull request #111684 from ultsi/fix-lsp-non-existing-values-dict-access
LSP: Use safe methods to get data from dictionaries
2025-10-21 10:27:03 -05:00
Thaddeus Crews f50d7fa1e8 Merge pull request #110709 from DeeJayLSP/dict-reserve
Add `reserve()` to `Dictionary`, apply to constructors on GDScript VM
2025-10-20 18:09:58 -05:00
Joonas Ulmanen c5aedff514 LSP: Fix dict[] uses where the key might not exist 2025-10-16 11:02:59 +03:00
Thaddeus Crews 4ae535b3b9 Merge pull request #111419 from YeldhamDev/numbers_numbers_numbers
Add source lines to file locations on POT generation
2025-10-13 19:29:01 -05:00
HolonProduction bf7d580e29 Remove raw base pointer from GDScript 2025-10-10 21:55:25 +02:00
Thaddeus Crews 16a11ac88b Merge pull request #111358 from Ivorforce/no-variant-hasher
Remove `VariantHasher` and `VariantComparator` in favour of specialising `HashMapHasherDefault` and `HashMapComparatorDefault`.
2025-10-10 10:26:12 -05:00
HolonProduction 87bbad5e8c LSP: Fix goto native declaration 2025-10-10 15:43:48 +02:00
Michael Alexsander 0de3f8b21f Add source lines to file locations on POT generation 2025-10-08 16:43:22 -03:00
Thaddeus Crews e20acd3fe3 Merge pull request #111289 from HolonProduction/rm-has-named-classes
Move deprecated `has_named_classes` from `ScriptLanguage` to `ScriptLanguageExtension`
2025-10-08 13:56:37 -05:00
Onebit d223b0ccbc Fix GDScript translation parser for FileDialog.add_filter() two-parameter format
The parser only handled the single-parameter semicolon format and thew
an error with two-parameter format. This fix supports both formats.

Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>
2025-10-08 19:45:21 +02:00
Lukas Tenbrink d2ee378d1c Remove VariantHasher and VariantComparator in favour of specializing HashMapHasherDefault and HashMapComparatorDefault. 2025-10-07 13:47:39 +02: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
Thaddeus Crews ef5ecd95d7 Merge pull request #111254 from Ivorforce/object-no-rb-rw
Remove `rw_lock.h` and `rb_map.h` includes from `object.h`.
2025-10-06 09:06:29 -05:00
Rémi Verschelde bc0342b3ef Merge pull request #111290 from HolonProduction/lsp-restart
LSP: Fix repeated restart attempts
2025-10-06 14:08:12 +02:00
Lukas Tenbrink 9d44b68867 Remove rw_lock.h and rb_map.h includes from object.h. 2025-10-05 23:29:04 +02:00
HolonProduction abeb9c654e Move deprecated has_named_classes from ScriptLanguage to ScriptLanguageExtension 2025-10-05 16:55:06 +02:00
HolonProduction 400c77f170 LSP: Fix repeated restart attempts 2025-10-05 16:09:21 +02: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
Thaddeus Crews 9281613e76 Merge pull request #98061 from dalexeev/gds-remove-unnecessary-bools
GDScript: Remove some unnecessary booleans
2025-10-02 15:11:56 -05:00
HolonProduction c06063d962 Remove unused GDScript::subclass_count 2025-10-02 19:16:41 +02:00