summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2019-10-14Small fixes to redundand code, copy paste bugsqarmin
2019-10-11fix #32588 crash in language serverHaSa1002
2019-10-10Decrease polling frequency to 20 Hz in the GDScript language serverHugo Locurcio
This decreases the language server's CPU usage.
2019-10-09Merge pull request #32671 from GodotExplorer/lsp-send-godot-class-treeRémi Verschelde
lsp: Send godot class tree to clients
2019-10-09lsp: Send godot class tree to clientsGeequlim
2019-10-09lsp: Fix signature of void returned functions in native methodsGeequlim
2019-10-05Fixed some obvious typos in error messagesnoname1477
In some errors, there were closing quotation marks but no opening (e. g. "Unable to iterate on object of type " + Variant::get_type_name(container->get_type()) + "'."
2019-10-05Format documentations to markdown only when neededgeequlim
2019-10-04Add custom api `textDocument/nativeSymbol` to allow inspect native symbols ↵geequlim
from LSP clients
2019-10-04Fix enumeration value of SymbolKind.geequlim
Add custom notification 'gdscript/show_native_symbol' to show native symbols in clients. Close client connections when stop gdscript-lsp
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