summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2021-10-04GDScript: Use path cache when checking preloaded scriptsGeorge Marques
The path itself might not always be set in some cases, especially when the script is just created and is already in the resource cache. Using get_path() in this case gets the correct resource path. This also adds a null check for safety in case the path is incorrect or missing, to avoid a crash in the engine.
2021-10-04GDScript: Fix member assignment with operationGeorge Marques
It was wrongly updating the assigned value with the result of the operation.
2021-10-04Merge pull request #53303 from akien-mga/53295-gdscript-completion-quote-styleRémi Verschelde
2021-10-04Merge pull request #53338 from briansemrau/gdscript-handle-for-with-null-listRémi Verschelde
2021-10-04GDScript completion: Handle quote style ad-hoc to remove editor dependencyRémi Verschelde
`core` and `scene` shouldn't depend on `editor`, so they can't query this style setting in `get_argument_options`. But we can handle it after the fact in GDScript's completion code. Also cleans up a couple extra unused invalid includes in `core`.
2021-10-03Allow void as return type for constructorskobewi
2021-10-02GDScript Check for null list in `for` loopBrian Semrau
2021-10-01Merge pull request #53290 from Faless/mp/4.x_opts_namesFabio Alessandrelli
[Net] Rename RPC constants and annotation arguments.
2021-10-01[Net] Rename RPC constants and annotation arguments.Fabio Alessandrelli
any -> any_peer sync -> call_local ordered -> unreliable_ordered Multiplayer.RPC_MODE_ANY -> RPC_MODE_ANY_PEER Multiplayer.TRANSFER_MODE_ORDERED -> TRANSFER_MODE_UNRELIABLE_ORDERED
2021-10-01Fix empty line hover; fix open non-res:// scriptFrancois Belair
2021-10-01Merge pull request #38397 from Calinou/doc-range-backwards-exampleRémi Verschelde
2021-09-30Use range iterators for `Map`Lightning_A
2021-09-30Add an example on iterating an array backwardsHugo Locurcio
This closes https://github.com/godotengine/godot-docs/issues/3472.
2021-09-30Revert "GdScript: Use reduced constant expression result when doing binary ↵Rémi Verschelde
operations. Fixes #50293" This reverts commit 62077086076fb99fb7fe014522c44ae83f87dc4d. It broke a GDScript test (which didn't exist back when the PR was made, so was missed prior to the merge). It choked on: ``` prints("a", test_instance.a, test_instance.a == Named.VALUE_A) ``` With: ``` Invalid operands "VALUE_A (enum value)" and "int" for "==" operator. ```
2021-09-30Merge pull request #51818 from MarianoGnu/gdscript2-enum-fixesRémi Verschelde
2021-09-29Merge pull request #53216 from vnen/gdscript-builtin-type-not-idRémi Verschelde
2021-09-29GDScript: Don't allow builtin type names as identifiersGeorge Marques
2021-09-29GDScript: Fix assignment with operation for propertiesGeorge Marques
2021-09-29Merge pull request #53092 from Razoric480/lsp-report-_initRémi Verschelde
2021-09-29Make LSP report _init instead of Object::newFrancois Belair
2021-09-29Merge pull request #52800 from akien-mga/gdscript-remove-exp_rangeRémi Verschelde
2021-09-27Fix check for freed object during castPedro J. Estébanez
2021-09-27Fix inverted error messages about null objectPedro J. Estébanez
2021-09-25Remove duplicate WorkspaceEdit from LSPFrancois Belair
2021-09-25Merge pull request #50378 from Razoric480/apply-edit-40Rémi Verschelde
2021-09-25Merge pull request #52849 from KoBeWi/know_no_bindsRémi Verschelde
2021-09-24Remove binds from Signal.connectkobewi
2021-09-21Merge pull request #52906 from vnen/gdscript-show-error-on-yieldRémi Verschelde
2021-09-21Merge pull request #52905 from vnen/gdscript-single-line-declarationRémi Verschelde
2021-09-21GDScript: Show specific error when "yield" is usedGeorge Marques
To help people porting code, it gives a hint to use "await" instead of a generic error.
2021-09-21GDScript: Allow classes declaration to be done in single lineGeorge Marques
Incidentally, allow multiple statements in single line functions when using semicolon as a terminator.
2021-09-21GDScript: Allow multiple lines in signal parameters declarationGeorge Marques
2021-09-21GDScript: Remove conversion assign mistakenly done when unneededGeorge Marques
2021-09-21Merge pull request #52852 from Chaosus/gds_fix_constantsYuri Roubinsky
Prevent local constant default value from incorrect overriding by a global constant in GDScript autocompletion
2021-09-21Merge pull request #51655 from ↵Rémi Verschelde
RevoluPowered/improve-gdscript-code-editor-performance Improve GDScript Editor performance
2021-09-21Merge pull request #52718 from Calinou/gdscript-add-integration-tests-2Rémi Verschelde
2021-09-21Improve GDScript Editor and Improve latencyGordon MacPherson
Improvements: - GDScript Highlighter is faster by 25% as keys are smaller (hashes instead of strings) - Removes message queue from _apply_settings_change to allow resize to work correctly - Some performance fixes are pending still Note: this resolves the code editor behaving badly when resizing in debug builds
2021-09-21Prevent local constant default value from incorrect override by a globalYuri Roubinsky
2021-09-20Don't generate empty doc sections and reduce code duplicationAaron Franke
2021-09-20LSP: Add support for custom host settingJohn J. Donna II
You can now configure host in the `language_server` settings in the editor settings.
2021-09-17GDScript: Remove reference to remove `@export_exp_range`Rémi Verschelde
It was removed in 75688772b3efadb8a36b1bb7ccde9c08819bc58e to be replaced by `@export_range` with an `"exp"` hint string.
2021-09-17Merge pull request #52792 from vnen/gdscript-subscript-missing-indexRémi Verschelde
2021-09-17Merge pull request #52788 from vnen/gdscript-compare-with-nullRémi Verschelde
2021-09-17GDScript: Properly catch error when missing index in subscriptGeorge Marques
2021-09-17Allow comparing equality between builtin types and nullGeorge Marques
2021-09-17Merge pull request #51671 from RandomShaper/fix_gdscript_crashGeorge Marques
Fix some GDScript bugs
2021-09-17GDScript: Avoid inferred types from giving hard errorsGeorge Marques
2021-09-15Add more integration tests to the GDScript test suiteHugo Locurcio
This also fixes a typo in the `bitwise_float_right_operand.gd` test.
2021-09-15Merge pull request #52706 from vnen/gdscript-ternary-operator-crashRémi Verschelde
GDScript: Show error when missing expression after ternary else
2021-09-15Merge pull request #52705 from vnen/gdscript-error-unary-no-argRémi Verschelde
GDScript: Show error on unary operators without argument