summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2019-10-03Merge pull request #32517 from GodotExplorer/gdscript-lspRémi Verschelde
GDScript LSP server improvement
2019-10-03Implement DocumentLink of GDScript LSP Servergeequlim
2019-10-03Merge pull request #32403 from yeonghoey/enforce4spaceRémi Verschelde
Print errors when tab indent found in [codeblock]
2019-10-03Fix codeblock formating to markdowngeequlim
2019-10-02Tweak the default function definition color when using a dark themeHugo Locurcio
This decreases its saturation to make it less visually jarring. The code was also refactored for clarity and to avoid repetition.
2019-10-01Print errors when tab indent found in [codeblock]Yeongho Kim
2019-10-01Merge pull request #32172 from WindyDarian/gdscript_allow_null_weakrefRémi Verschelde
Allow weakref(null) in gdscript
2019-09-28Highlight singletons and class_names in GDScriptBojidar Marinov
Also, implement a small QoL change for auto-typed variables. Closes #5739
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-09-24GDScript: Fix type resolution not being return in some casesGeorge Marques
Some situations caused the parser node type to not being update when trying to resolve the type, returning invalid data and breaking the parsing when it shouldn't. This patch fix the behavior.
2019-09-24doc: Sync classref with current sourceRémi Verschelde
Fix a few missing bindings or unspecified argument names and default values.
2019-09-23Fix `line` being assigned to twice in the GDScript language serverHugo Locurcio
This closes #32090.
2019-09-22Changed some code found by Clang Tidy and Coverityqarmin
2019-09-20Merge pull request #32210 from Calinou/editor-log-distinguish-messagesRémi Verschelde
Distinguish editor-originating messages in the editor log
2019-09-20Merge pull request #32150 from luzpaz/typosRémi Verschelde
Fix misc. source comment typos
2019-09-20Distinguish editor-originating messages in the editor logHugo Locurcio
This fades out messages originating from the editor to make messages printed by the project stand out more. This also tweaks wording in some editor messages for consistency.
2019-09-19Fix misc. source comment typosluz.paz
Found using `codespell -q 3 -S ./thirdparty,*.po -L ang,ba,cas,dof,doubleclick,fave,hist,leapyear,lod,nd,numer,ois,paket,seeked,sinc,switchs,te,uint -D ~/Projects/codespell/codespell_lib/data/dictionary.txt `
2019-09-19Merge pull request #31921 from bojidar-bg/28978-uninitialized-array-valueRémi Verschelde
Fix uninitialized arrays and dictionaries retaining value
2019-09-19Merge pull request #32100 from SaracenOne/gdscript_parent_const_typesRémi Verschelde
Fix const deceleration for inherited scripts above immediate parent
2019-09-19Merge pull request #31934 from mitchcurtis/28187Rémi Verschelde
Produce an error when a class has the same name as a Singleton
2019-09-19Merge pull request #31142 from mitchcurtis/assert-messageRémi Verschelde
GDScript: add an optional message parameter to assert()
2019-09-16Allow weakref(null) in gdscriptWindy Darian
Tiny addition I personally found useful - this allows us to `var my_ref := weakref(null)` for nullable weak ref (with type hint!). When trying to test if `my_ref` is holding valid reference, we can just `if my_ref.get_ref():` instead of `if my_ref and my_ref.get_ref():` everywhere.
2019-09-11GDScript: add an optional message parameter to assert()Mitch Curtis
Before this patch, assert() only took the condition to assert on: assert(item_data) Now, it can optionally take a string that will be printed upon failure: assert(item_data, item_name + " has no item data in ItemDatabase") This makes it easier to immediately see what the issue is by being able to write informative failure messages. Thanks to @wiped1 for sharing their patch, upon which this is based. Closes #17082
2019-09-11Allow for constant deceleration to be detected inherited scripts above the ↵Saracen
immediate parent.
2019-09-06Produce an error when a class has the same name as a SingletonMitch Curtis
If you somehow end up with a Singleton.gd that looks like this: extends Node class_name Singleton func foo(): pass You will get an error when using it in another file: extends Node2D func _init(): # Parser Error: Non-static function "foo" can only be called from an instance. Singleton.foo() This error is confusing. This patch ensures that an error on the class_name line will be produced: Parse Error: The class "Singleton" conflicts with the AutoLoad singleton of the same name, and is therefore redundant. Remove the class_name declaration to fix this error. Fixes #28187.
2019-09-03Adds skip-breakpoints featureiwek7
2019-09-03Try and show all the properties added with _get_property_list() when ↵MrCdK
triggering completion. Closes https://github.com/godotengine/godot/issues/25097
2019-09-03Fix uninitialized arrays and dictionaries retaining valueBojidar Marinov
Fixes #28978
2019-09-02Merge pull request #31893 from bojidar-bg/25081-gdscript-index-selfRémi Verschelde
Re-allow indexing on objects and other non-builtin types
2019-09-02Merge pull request #31843 from 2shady4u/parserCtrlClickRémi Verschelde
Solves ctrl+click on functions by ignoring the cursor
2019-09-02Re-allow indexing on "self" and object types in GDScriptBojidar Marinov
Fixes #25081
2019-09-02gdscript: Fix build after #24925Rémi Verschelde
The PR did not use the ScriptCodeCompletionOption system introduced later on, and somehow this did not generate a merge conflict even though neighboring code was changed.
2019-09-02Merge pull request #24925 from Mr-Slurpy/typed-autoloadRémi Verschelde
Added autoloads as a potential type.
2019-09-02Merge pull request #21443 from deepmax/ord_functionRémi Verschelde
Add ord() function to return Unicode code point of a string of length one
2019-09-02Solves ctrl+click on functions by ignoring the cursorshaderbeast
Obeyed CLANG format rules Obeying CLANG format rules attempt 2 Obeying CLANG format rules attempt 3 Clean up Fixed runaway while loop Removed int initialization
2019-08-29doc: Sync classref with current sourceRémi Verschelde
2019-08-29Updated description for "stepify"Thomas Karcher
Mentioned the possibility to use stepify as a rounding function; +code examples
2019-08-29Merge pull request #31741 from akien-mga/lsp-requires-websocket-jsonrpcRémi Verschelde
GDScript: Disable LSP if either jsonrpc or websocket are disabled
2019-08-29Merge pull request #31738 from bojidar-bg/31056-class_name-extendsRémi Verschelde
Remove check for class_name and extends order
2019-08-28Add ord() function to return Unicode code point of a string of length oneMasoud Montazeri
2019-08-28Merge pull request #31737 from bojidar-bg/31455-stack-underflowRémi Verschelde
Fix yield check in GDScriptFunction
2019-08-28GDScript: Disable LSP if either jsonrpc or websocket are disabledRémi Verschelde
Follow-up to #29780.
2019-08-28Merge pull request #29780 from GodotExplorer/gdscript-lspRémi Verschelde
Add Language Server Protocol for GDScript
2019-08-28Remove check for class_name and extends orderBojidar Marinov
Closes #31056
2019-08-28Fix yield check in GDScriptFunctionBojidar Marinov
Fixes #31455
2019-08-28Merge pull request #31606 from toasteater/fix/nativescript-new-json-return-typeRémi Verschelde
Fix the return type of NativeScript::new in API json
2019-08-27Make 'break' and 'continue' be marked as safeMichael Alexsander Silva Dias
2019-08-26Make VarArg methods return types show up as Variant in API jsontoasteater
VarArg methods have the return type Object in the API json for GDNative. This can cause undefined behavior in some language bindings due to lack of documentation on VarArg methods' behavior. This changes the MethodInfo of: - CSharpScript::_new - GDScript::_new - PluginScript::_new
2019-08-23Improve writing style in GDScript error/warning messagesHugo Locurcio
This uses double quotes everywhere for consistency.