c4705a590b
Fix Object::notification order
...
Previously the `p_reversed` parameter didn't influence the order
in a correct way.
Also script overridden _notification functions were not called in
the correct order.
To fix this some `notification` functions had to add a `p_reversed`
parameter.
This made it necessary to adjust cpp-bindings.
Co-authored-by: David Snopek <dsnopek@gmail.com >
2023-08-30 00:15:55 +02:00
76d318dbd1
Merge pull request #75778 from KoBeWi/_vp
...
Expose `_validate_property()` for scripting
2023-08-29 12:41:27 +02:00
91c5273ec5
Merge pull request #75656 from YuriSizov/core-iconic-builtins
...
Add a script method to get its class icon
2023-08-29 12:41:03 +02:00
67db4693eb
Expose _validate_property() for scripting
2023-08-28 15:18:48 +02:00
fc37fd7b98
Merge pull request #81039 from MewPurPur/fix-hex-number-highlighting-after-separator
...
Fix highlighting of hex numbers with separators
2023-08-28 12:10:11 +02:00
d3946242f4
Fix highlighting of hex numbers with separators
2023-08-28 09:52:40 +03:00
b6c4efe1b1
Merge pull request #80964 from dalexeev/gds-allow-use-local-consts-as-types
...
GDScript: Allow use local constants as types
2023-08-25 21:26:44 +02:00
68a567bd13
GDScript: Allow use local constants as types
2023-08-25 17:04:04 +03:00
89429b0273
GDScript: Fix lambda resolution with cyclic references
2023-08-25 16:29:11 +03:00
2c77f07aaa
Add a script method to get its class icon
...
Co-authored-by: Danil Alexeev <danil@alexeev.xyz >
2023-08-24 13:05:41 +02:00
e43370d0fa
Merge pull request #80686 from azuloo/lsp-thread-connection-error
...
Fixes LSP connection error when launched in a separate thread
2023-08-21 19:26:43 +02:00
7d3bee73e4
Merge pull request #80247 from dalexeev/gds-for-loop-var-static-typing
...
GDScript: Add static typing for `for` loop variable
2023-08-21 19:26:32 +02:00
9becff0c54
Merge pull request #80745 from dalexeev/gds-improve-docgen
...
GDScript: Improve DocGen
2023-08-21 08:22:31 +02:00
34d432807f
GDScript: Improve DocGen
2023-08-19 19:54:43 +03:00
a017e9c698
Merge pull request #80119 from MewPurPur/svg-opacities-standardization
...
Optimize and fix up some SVGs
2023-08-18 09:30:23 +02:00
6c59ed9485
GDScript: Add static typing for for loop variable
2023-08-17 20:54:34 +03:00
e71ec0b5eb
Merge pull request #80365 from dalexeev/gds-allow-mix-indent-on-blank-lines
...
GDScript: Allow mixed indentation on blank lines
2023-08-17 11:25:04 +02:00
4f00f925b3
Merge pull request #78552 from dalexeev/gds-check-get-node-in-static-func
...
GDScript: Check `get_node()` shorthand in static functions
2023-08-17 11:20:32 +02:00
00ad9e484e
GDScript: Allow mixed indentation on blank lines
2023-08-17 10:54:43 +03:00
a5710d468b
Fixes LSP connection error when launched in a separate thread
2023-08-16 16:29:28 +03:00
6b5e44f3ca
Merge pull request #80510 from dalexeev/gds-fix-access-inner-class-from-inside
...
GDScript: Fix "Identifier not found" error when accessing inner class from inside
2023-08-14 15:28:57 +02:00
e1bb9b523d
Merge pull request #80506 from sepTN/fix-lambda-get_method
...
Fix `get_method` from named lambda
2023-08-14 09:36:35 +02:00
93318d2dd5
Optimize and fix up some SVGs
2023-08-13 17:48:17 +03:00
fa8fec2cc1
Fix superfluous " in error message
2023-08-13 00:38:10 +02:00
793cc080cb
Fix get_method from named lambda
2023-08-11 20:31:08 +07:00
fb45cab133
GDScript: Fix "Identifier not found" error when accessing inner class from inside
2023-08-11 11:22:01 +03:00
0f27c4ad80
GDScript: Check get_node() shorthand in static functions
2023-08-09 17:11:38 +03:00
40363a88bd
Merge pull request #80283 from ajreckof/fix-completion-option-location-not-found
...
Fix completion option location not found
2023-08-07 14:53:10 +02:00
87c91dc452
Merge pull request #79761 from dalexeev/gds-hl-comment-markers
...
GDScript: Highlight comment markers (`TODO`, `FIXME`, etc.)
2023-08-07 14:49:09 +02:00
faaf27f284
Fix various typos with codespell
...
Also includes typo fixes from #79993 , #80068 , #80276 , and #80303 .
Co-authored-by: betalars <contact@betalars.de >
Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com >
Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com >
Co-authored-by: Raul Santos <raulsntos@gmail.com >
2023-08-07 13:09:47 +02:00
54231682ba
GDScript: Highlight comment markers (TODO, FIXME, etc.)
2023-08-07 11:33:51 +03:00
4b724c9252
Fix completion option location not found
2023-08-05 02:15:45 +02:00
95d71dbad1
Merge pull request #80165 from dalexeev/gds-fix-native-signal-not-found
...
GDScript: Fix regression with native signal not found
2023-08-03 14:46:48 +02:00
5e1671afd9
Merge pull request #78540 from anvilfolk/gdresloaderr
...
GDScript: Add error message when a GDScript resource fails to load.
2023-08-03 14:46:33 +02:00
f19377160c
GDScript: Fix regression with native signal not found
2023-08-02 15:42:36 +03:00
f37d192860
Merge pull request #80109 from timothyqiu/not-markdown
...
Fix invalid use of markdown syntax in classref
2023-08-01 20:04:00 +02:00
79e28e0914
Merge pull request #80020 from dalexeev/gds-pot-gen-const-string
...
GDScript: Add constant string support for POT generator
2023-08-01 20:03:56 +02:00
f6e02dc437
Merge pull request #79990 from vnen/gdscript-assume-op-types
...
GDScript: Optimize operators by assuming the types
2023-08-01 17:25:52 +02:00
68a49c4959
Merge pull request #79935 from dalexeev/gds-validate-node-path-annotation
...
GDScript: Add validation for `@export_node_path` annotation arguments
2023-08-01 17:25:44 +02:00
c4b5161ed1
Fix invalid use of markdown syntax in classref
...
Also:
* changed `[b]true[/b]` to `[code]true[/code]`
* use `[i]` for mathematical constant "e"
* use `[b]` for button text & menu item text
* improve markups about "tap1" and "tap2" in AudioEffectDelay
2023-08-01 22:44:31 +08:00
3de7dd902c
Merge pull request #79880 from dalexeev/gds-fix-id-shadowing-below
...
GDScript: Fix bug with identifier shadowed below in current scope
2023-07-31 21:01:36 +02:00
41efc7cb86
Merge pull request #78941 from dalexeev/gds-doc-comments-deprecated-and-experimental
...
GDScript: Add `@deprecated` and `@experimental` doc comment tags
2023-07-31 21:01:08 +02:00
efbff1369a
Merge pull request #78254 from dalexeev/gds-fix-property-group-name-conflict
...
GDScript: Fix conflict between property and group names
2023-07-31 21:01:03 +02:00
62b4643d85
Merge pull request #73226 from AThousandShips/gdscript_tok_improvement
...
Improve GDScript identifier tokenization
2023-07-31 21:00:57 +02:00
cca57171c1
Add error message when a GDScript resource fails to load.
...
Currently, GDScripts who are only loaded through `ResourceLoader::load()`,
like Autoloads, do not have a pathway to announce there is an error in their
code. This contributes to significant confusion in error projects when
autoloads are involved. At least partially closes #78230 .
2023-07-31 13:16:29 -04:00
ae42c23e09
GDScript: Add constant string support for POT generator
2023-07-29 19:24:48 +03:00
c1bca65d09
GDScript: Optimize operators by assuming the types
...
This assumes that operators are called usually with the same type of
operands as the first time. So it stores the types of the first run and
if matched it uses an optimized path by calling the validated operator
function directly. Otherwise it uses the regular untyped evaluator.
With this change, if operators do use the same type they run quite
faster. OTOH, if the types mismatch it takes longer to run than they
would with the previous code.
2023-07-28 13:08:21 -03:00
5b4403c9a5
GDScript: Add validation for @export_node_path annotation arguments
...
Co-authored-by: George Marques <george@gmarqu.es >
2023-07-26 20:36:47 +03:00
5e512b705e
Support threads in the script debugger
...
* This implementation adds threads on the side of the client (script debugger).
* Some functions of the debugger are optimized.
* The profile is also now thread safe using atomics.
* The editor can switch between multiple threads when debugging.
This PR adds threaded support for the script language debugger. Every thread has its own thread local data and it will connect to the debugger using multiple thread IDs.
This means that, now, the editor can receive multiple threads entering debug mode at the same time.
2023-07-26 12:06:45 +02:00
d53fc92b4c
GDScript: Fix bug with identifier shadowed below in current scope
2023-07-26 11:26:57 +03:00