summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2020-01-18Fix subclass finding in extend statement for sub-sub classesDani Frank
lookup was always done on top level script instead of advancing to subclass each time. this commit changes the lookup to always be at last found subclass
2020-01-17Fix constant access in base class through subclass instanceChibiDenDen
Fixes as issue where a subclass calls a base class method that tries to access a constant from the script. The original code went through every ower class, and for each owner, went through its inheritance tree. This seems like the wrong order, the modified code goes to each base class, and for each base class goes through the owner tree. This is more in line with what the parser does, as the current impelemtation allows an access that the parser does not support. This change should not negatively affect existing code due to the way the parser works
2020-01-16Merge pull request #35218 from bojidar-bg/26691-parse-error-errorsRémi Verschelde
Fix errors raised when showing parse errors in the editor
2020-01-16Fix errors raised when showing parse errors in the editorBojidar Marinov
Fixes #26691
2020-01-16Merge pull request #35201 from bojidar-bg/27582-gdfunction-validate-instanceRémi Verschelde
Validate instances of objects before trying to check their type in GDScript
2020-01-16Merge pull request #35199 from dalexeev/masterRémi Verschelde
Fix function arguments hint format in GDScript editor
2020-01-16Merge pull request #35102 from ChibiDenDen/reuse_orphaned_subclassRémi Verschelde
#34161: Keep a weak reference to orphan subclasses to reuse on class reload
2020-01-16Validate instances of objects before trying to check their type in GDScriptBojidar Marinov
Fixes #27582
2020-01-16Fix slight problems related to default values of exported typed arraysBojidar Marinov
2020-01-16Fix function arguments hint format in GDScript editorDanil Alexeev
for consistency with the format of the documentation: "type func_name(arg1: type, arg2: type)"
2020-01-15Keep a weak reference to orphan subclasses to reuse on class reloadChibiDenDen
2020-01-15Prevent GDScript language server from listening to external hosts by defaultHoukime
* Add bind_ip property to WebSocketServer defaulting to "*" (listen to everyone) * Set default for GDscript Language Server to listen only to localhost Fixes potential security issue with GDScript language server being exposed to the broad net by default. Since it is the server which primary usage is to provide utility to the local editor there is no need to expose it.
2020-01-15Fix typos with codespellRémi Verschelde
Using codespell 1.16.0. See ab3bccdb78cc7dffb6ab796053ef63489f05558d for procedure.
2020-01-14Add fully_qualified_name for GDScript classDani Frank
2020-01-13GDScript: Check function arguments on release tooGeorge Marques
Needed because otherwise the certain type operations (such as type casting) used as a function argument might become unresolved on release, causing a compilation failure. Fix #28680
2020-01-13Merge pull request #35076 from vnen/gdscript-type-match-assignRémi Verschelde
Type match on assignment only if operators have type
2020-01-13GDScript: Type match on assignment only if operators have typeGeorge Marques
This ensures that a value without type won't be wrongly assigned to a typed variable when the types mismatch.
2020-01-13Fix infinite loop error in document link parsingGeequlim
2020-01-11Remove completion triggers for ',' and '(' which may conflict with signature ↵geequlim
helper
2020-01-11Allow enable/disable threading for LSP servergeequlim
Restart LSP server when configurations change without restart the editor
2020-01-10GDScript: Forbid using "script" as member nameGeorge Marques
Avoids the user breaking things by creating a "script" variable with something else, effectively overwriting the "script" slot on Object.
2020-01-10Merge pull request #34978 from GodotExplorer/lsp-fix-bracket-completionRémi Verschelde
LSP: Fix bracket completion for functions with one argument
2020-01-10Merge pull request #34958 from vnen/gdscript-is-check-valid-instanceRémi Verschelde
GDScript: Validate object instance on `is` operation
2020-01-10LSP: Fix bracket completion for functions with one argumentGeequlim
2020-01-09GDScript: Fix type name on error message for function parametersGeorge Marques
2020-01-09GDScript: Fix resolution of default parameter valuesGeorge Marques
Fix #26556
2020-01-09GDScript: Validate object instance on `is` operationGeorge Marques
Avoids crashes on debug mode. Instead it now breaks the execution and show the error in-editor. Will still crash on release. Also add a similar check to Marshalls to ensure the debugger doesn't crash when trying to serialize the invalid instance.
2020-01-09GDScript: Don't re-evaluate index on assigment with operationGeorge Marques
Pass the calculated index from the stack and use the same to get and set the value. This avoids a function with side effects being evaluated twice when using indexing in an assignment with operation statement (e.g. a[function()] += 1).
2020-01-09Merge pull request #34948 from vnen/gdscript-copy-constructorRémi Verschelde
GDScript: Allow copy constructor for built-in types
2020-01-09GDScript: Allow copy constructor for built-in typesGeorge Marques
Those are implicitly defined in Variant.
2020-01-09Add GDScript warning for standalone expressionGeorge Marques
This makes the error message clearer as it might be used to call functions with side effects.
2020-01-08GDScript: set assign operation on local var made by matchGeorge Marques
This is needed in a all local variables with assigment to properly set the typed operation. Fix #34928
2020-01-08Merge pull request #34920 from GodotExplorer/lsp-signatureHelperRémi Verschelde
GDScript LSP: Implement signatureHelp
2020-01-08Merge pull request #34918 from vnen/gdscript-assign-opRémi Verschelde
GDScript: enable type checks on release mode
2020-01-09GDScript LSP: Implement signatureHelpgeequlim
Enable smart resolve default to true as it is required for script symbol lookup
2020-01-08GDScript: enable type checks on release modeGeorge Marques
Also make builtin GDScript functions report return type as Variant in release so type is converted when needed.
2020-01-08GDScript: properly set type of local variable initializationGeorge Marques
Properly sets the type of the identifier for the local variable that is stored in the assignment operation. This makes sure that the compiler is aware of typing for local variables when they are initialized with the declaration.
2020-01-04GDScript LSP: Implement goto declarationgeequlim
2020-01-02Allow the usage of newlines in export hintsBojidar Marinov
Fixes #34689
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-24Cleans up headers included in editor_node.hHaoyu Qiu
2019-12-16Merge pull request #34280 from zaksnet/fix-yield-documentationRémi Verschelde
Fix documentation for yield
2019-12-15Updates docs for GDScript built-in functionsHaoyu Qiu
* Adds description for `ord()` * Adds relationship description between `char()` and `ord()` * Describes the argument of `char()` as Unicode code point instead of ASCII code * Fixes wrong interval notation in `randi()` description
2019-12-13GDScript: Convert values when setting member variablesGeorge Marques
This allows doing: self.x = 1 even if self.x is declared as float.
2019-12-13GDScript: Fix type conversion in assignment with operationGeorge Marques
2019-12-13Fix documentation for yieldZak
#33872 PR was misleading as i though inheritance from GDScriptFunctionState was optional.
2019-12-12Merge pull request #34286 from bojidar-bg/31818-cast-autocompleteRémi Verschelde
Fix GDScript autocompletion with "as" or typed variables
2019-12-12Fix GDScript autocompletion with `as` or typed variablesBojidar Marinov
Fixes #31818, fixes #33434
2019-12-11Add note in 'load()' docs that the path must be absoluteMichael Alexsander
2019-12-11Merge pull request #34271 from vnen/gdscript-unused-class-variable-disableRémi Verschelde
Disable GDScript warning for unused class variable by default