Commit Graph

52 Commits

Author SHA1 Message Date
Infiland 07d360fbf6 Fix script editor errors shown out of order
When warnings are treated as errors in GDScript, they are appended to
the error list via `push_error()` without regard for line ordering.
This causes them to appear after all other errors in the editor panel,
regardless of their actual line numbers.

Sort errors by line number (with column as tiebreaker) in
`_validate_script()` before display. This ensures the error panel and
the first-error indicator both reflect the correct source order. The
fix is language-agnostic, benefiting all script languages.
2026-04-02 23:18:44 +02:00
StarryWorm 4ae336740d Add missing resource_*.h includes
Add missing `resource_importer.h` includes
Add missing `resource_loader.h` includes
Add missing `resource_saver.h` includes
2026-03-27 07:03:39 -04:00
Rémi Verschelde 280e06c2fe Merge pull request #117375 from kitbdev/fix-te-menu-error
Fix error on opening script after documentation
2026-03-16 23:41:20 +01:00
Lukas Tenbrink 67f63addc1 De-duplicate name and inherits StringName properties from ClassDB::ClassInfo, in favour of GDType. 2026-03-15 16:57:10 +01:00
kit e5a66b7628 Fix error on opening script after documentation 2026-03-12 13:41:59 -04:00
kit f51857cbaf Fix TextEditor breakpoint and bookmark shortcuts not working until menu is opened 2026-03-05 18:33:56 -05:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +01:00
StarryWorm 3cb2d376f8 Get rid of all unnecessary class_db.h includers 2026-03-04 17:40:05 -05:00
Thaddeus Crews db25be3646 Merge pull request #116585 from jinyangcruise/fix_symbol_jump
Fix symbol jump history navigation issue.
2026-03-04 11:20:33 -06:00
Rémi Verschelde eabb9a63d4 Rename callable_method_pointer.h to callable_mp.h and include it explicitly
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.

Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
jinyangcruise e4e31abeaa fix symbol jump history navigation issue. 2026-02-28 09:45:06 +08:00
Thaddeus Crews 28c37846d8 Merge pull request #111547 from sockeye-d/script-editor-join-lines
Add script editor `join_lines` keybind
2026-02-27 08:49:31 -06:00
Rémi Verschelde f5a290ac46 Move RenderingServer enums to a dedicated RenderingServerEnums (RSE) namespace
A number of headers in the codebase included `rendering_server.h` just for
some enum definitions. This means that any change to `rendering_server.h` or
one of its dependencies would trigger a massive incremental rebuild.

With this change, we decouple a number of classes from `rendering_server.h`,
greatly speeding up incremental rebuilds for that area.

On my machine, this reduces incremental compilation time after an edit of
`rendering_server.h` by 60s (from 2m57s).
2026-02-25 19:43:03 +01:00
fish 4d294caac9 Add script editor join line functionality 2026-02-20 15:59:41 -08:00
fkeyz b60e662c25 Match type hint behavior of drag and drop @export to @onready 2026-02-18 22:06:38 +02:00
Thaddeus Crews a1c4aacdbc Merge pull request #110796 from fkeyzuwu/drag-and-drop-info-label
Add drag and drop info label
2026-02-17 09:28:21 -06:00
fkeyz 2d03275c88 Add drag and drop info label 2026-02-12 19:58:08 +03:00
Simon Döhl 51582b3fd6 Fix wrong Ref checks in ScriptTextEditor 2026-02-12 17:19:43 +01:00
Thaddeus Crews b6b7f5a9de Merge pull request #115767 from DexterFstone/Add-a-script-editor-keyboard-shortcut-to-show-the-documentation-tooltip-for-the-word-the-caret-is-on
Add a script editor keyboard shortcut to show the documentation tooltip for the word the caret is on
2026-02-09 15:07:03 -06:00
Dexter 9af504bd28 Add a script editor keyboard shortcut to show the documentation tooltip for the word the caret is on 2026-02-06 09:53:29 +03:30
Simon Döhl d4ce7b8cc5 Fix ScriptTextEditor not loading editor settings on initialization 2026-02-03 19:26:18 +01:00
Simon Döhl 2363720b53 merge parts of script and text editor 2026-02-02 11:22:25 +01:00
kit ed687b84a3 Use only one edit menu for TextEditors 2026-01-31 11:31:33 -05:00
Thaddeus Crews 63c0e9a9fb Merge pull request #115158 from timothyqiu/drop-type-inherit
Take custom type of parent scripts into account when dropping onready variables
2026-01-28 17:58:19 -06:00
Nintorch eb019511ed Optimize files that #include input.h header 2026-01-28 14:21:00 +05:00
Haoyu Qiu 997feea6cb Take custom type of parent scripts into account when dropping onready variables 2026-01-20 10:28:09 +08:00
passivestar 6f0bd2efb9 Improve spacing in trees showing table data in modern theme 2026-01-12 00:01:49 +04:00
Michael Alexsander ec7bd419fc Fix different separations across different code editors 2025-12-16 12:51:23 -03:00
风青山 81f727b6dd Fix the returned controls of EditorHelpBitTooltip::show_tooltip() were not freed in ScriptTextEditor
The returned control is an orphan node, which is to make the standard tooltip invisible.
2025-11-23 23:31:59 +08:00
kobewi 5d5b2054e8 Support extension icons in Script Editor 2025-11-18 17:32:58 +01:00
fkeyz 0dfa815985 Fix drag and drop @export variable assignment when script has errors 2025-11-11 23:50:56 +02:00
kit 4e22eddb3c Fix warnings and error panel font not updating 2025-11-01 15:19:35 -04:00
LuoZhihao ce2fae79b1 Fallback to parent class icon by default for gdextension 2025-10-31 18:03:32 +08:00
Haoyu Qiu b40e63566a Fix error when deleting trailing lines removed breakpoints 2025-10-30 08:22:14 +08:00
kit d08d9d3f49 Change Go to Line default shortcut to Ctrl+G 2025-10-23 11:29:13 -04:00
Denis Ciammaricone 7e2f6c3ebc Fix editor inline color display of color from Color.from_rgba8 2025-10-13 19:12:17 +02:00
kobewi 835383d46b Fix region folding not loading properly 2025-09-26 23:29:31 +02:00
Thaddeus Crews 5db618a2db Merge pull request #109078 from WhalesState/text-edit-clipping
Fix TextEdit clips children and focus style.
2025-09-24 09:59:12 -05:00
Thaddeus Crews be421bcdd4 Merge pull request #110250 from YeldhamDev/i_just_cant_keep_focused
Hide `Control` focus when given via mouse input
2025-09-22 13:28:44 -05:00
Mounir Tohami b25e35cf58 Fix TextEdit styles and disable clipping.
Co-Authored-By: kit <kitbdev@gmail.com>
2025-09-21 07:32:30 +03:00
Michael Alexsander aeb3a45c97 Hide Control focus when given via mouse input 2025-09-19 13:43:29 -03:00
fkeyz 02d8cf84b0 Add drag n drop export variables 2025-09-16 23:54:16 +03:00
Giganzo c21a03361a Add hover styles to buttons in Script/Shader editor 2025-08-16 15:05:07 +02:00
Thaddeus Crews 916af4680c Merge pull request #109522 from KoBeWi/resource_of_type_Folder
Don't open folders as file in script editor
2025-08-12 11:46:37 -05:00
kobewi a979cfdc0e Don't open folders as file in script editor 2025-08-11 14:43:36 +02:00
kit 2bc9bf5965 Add new line when dropping onready on empty line 2025-08-09 13:44:54 -04:00
kit 732a35dfc5 Fix dropping Node into script on non-empty line 2025-07-22 15:34:31 -04:00
Thaddeus Crews ed02254b2c Merge pull request #108440 from kitbdev/fix-colorpicker-wrong-line
Fix ScriptEditor inline color wrong line number
2025-07-10 11:39:20 -05:00
bruvzg 7cee0327b2 [Code Editor] Fix "Pick Color" menu option replacing multiple color items. 2025-07-10 17:24:33 +03:00
kit 927208a92e Fix ScriptEditor line number in color objects 2025-07-09 16:18:57 -04:00