summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server/gdscript_extend_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-2/+2
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix LSP crash when parsing signal symbols.Francois Belair2021-11-071-1/+1
| | | | | | If the number of parameters was less than the number of class members, the LSP would cause godot to crash because it was using the index for class members instead of the index for signal parameters. Fixes #54720 .
* GDScript: Report property type errorsZuBsPaCe2021-10-081-1/+1
| | | | | | | | | Inline getters & setters are now FunctionNodes. Their names are set in the parser, not in the compiler. GDScript-Analyzer will now run through getter and setter. Also report wrong type or signature errors regarding getset properties. Added GDScript tests for getters and setters. #53102
* Fix empty line hover; fix open non-res:// scriptFrancois Belair2021-10-011-2/+5
|
* Fix LSP reporting wrong typesFrancois Belair2021-07-261-5/+5
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-1/+1
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-6/+4
|
* [Net] Single `rpc` annotation. "sync" no longer part of mode.Fabio Alessandrelli2021-07-201-1/+3
| | | | | | | | | | | | | | | | - Move the "sync" property for RPCs to RPCConfig. - Unify GDScript annotations into a single one: - `@rpc(master)` # default - `@rpc(puppet)` - `@rpc(any)` # former `@remote` - Implement three additional `@rpc` options: - The second parameter is the "sync" option (which also calls the function locally when RPCing). One of "sync", "nosync". - The third parameter is the transfer mode (reliable, unreliable, ordered). - The third parameter is the channel (unused for now).
* Consolidate JSON, JSONParseResults and JSONParser into JSONMarcel Admiraal2021-06-191-6/+4
| | | | | Renames JSON.parse_string() to parse() Renames JSON.decode_data() to stringify()
* Implement LSP didDeleteFiles & make parser aware of sub-nodesFrancois Belair2021-04-101-19/+69
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-7/+7
|
* LSP: Fix iterator in enum API dumpRémi Verschelde2020-12-091-1/+1
|
* Static analyzer fixes:bruvzg2020-12-091-1/+1
| | | | | | Removes unused code in OS. Fixes return types. Fixes few typos.
* [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-3/+3
|
* GDScript: Fix LSP getting wrong union value on unnamed enumsGeorge Marques2020-08-171-1/+1
|
* Wrap up GDScript 2.0 base implementationGeorge Marques2020-07-221-3/+3
|
* Reenable GDScript LSP serverGeorge Marques2020-07-201-282/+318
|
* New GDScript tokenizer and parserGeorge Marques2020-07-201-0/+5
| | | | | | | | | | Sometimes to fix something you have to break it first. This get GDScript mostly working with the new tokenizer and parser but a lot of things isn't working yet. It compiles and it's usable, and that should be enough for now. Don't worry: other huge commits will come after this.
* Include gdscript warning name in LSP message.Ryan Roden-Corrent2020-07-141-1/+1
| | | | | | | | My initial attempt changed this in the gdscript code, which resulted in a duplicate warning name in the builtin editor. We should just append the warning name in the LSP instead. This uses parens to match what is shown in the builtin editor.
* GDScript LSP: Fix crash in notify_clientRémi Verschelde2020-06-081-0/+1
| | | | | | | | | `latest_client_id` now defaults to `-1` (invalid ID) instead of `0`. Also fix typo in notification `gdscrip_client/changeWorkspace`, and fix argument names in method binds. Fixes #39375.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-4/+8
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-21/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+2
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Replace NULL with nullptrlupoDharkael2020-04-021-8/+8
|
* Fix static functions loop using class' functionsFrancois Belair2020-01-281-1/+1
| | | | | Besides being incorrect, it also caused a hard editor crash for purely static classes or classes with more static functions than methods.
* Fix typos with codespellRémi Verschelde2020-01-151-4/+4
| | | | | | Using codespell 1.16.0. See ab3bccdb78cc7dffb6ab796053ef63489f05558d for procedure.
* Fix infinite loop error in document link parsingGeequlim2020-01-131-2/+3
|
* GDScript LSP: Implement signatureHelpgeequlim2020-01-091-0/+45
| | | | Enable smart resolve default to true as it is required for script symbol lookup
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Removed unused variables, add some constants numbersRafał Mikrut2019-12-101-1/+1
|
* fix #32588 crash in language serverHaSa10022019-10-111-1/+1
|
* Format documentations to markdown only when neededgeequlim2019-10-051-64/+6
|
* Implement DocumentLink of GDScript LSP Servergeequlim2019-10-031-0/+39
|
* Fix codeblock formating to markdowngeequlim2019-10-031-2/+2
|
* Fix `line` being assigned to twice in the GDScript language serverHugo Locurcio2019-09-231-4/+2
| | | | This closes #32090.
* Changed some code found by Clang Tidy and Coverityqarmin2019-09-221-0/+2
|
* Add optional goto definition support for native symbolsgeequlim2019-08-111-20/+71
| | | | | This action will show help for target symbol in godot editor and bring the godot editor window to foreground Improved markdown documentation for symbols.
* Add generate script api to dictionary supportGeequlim2019-08-111-5/+147
| | | | | Expose GDScriptLanguageProtocol singleton and classes for editor plugins (Not visiable in class tree) Fix minor bug in symbol resolve
* Check client workspace directory is validGeequlim2019-08-111-1/+0
| | | | | Drop test initialize message sent to client Remove unused code property for the parser class
* Improve symbol resolve for inner classesGeequlim2019-08-111-19/+89
| | | | | | Only level one inner classes would be resolved currently but it sould cover most real world use case Improve documation parseing for const values Improve documation format for native symbols
* Improved performance for completion and symbol resolvation.Geequlim2019-08-111-69/+23
| | | | | | Improved uri and workspace path translatation on windows platform. The smart resolvation is much faster than builtin's in the server side. The smart resolve mode is still disabled as default as the clients might be slow with a planty of completion items.
* Add optional smart resolve sulotiongeequlim2019-08-111-7/+36
| | | | The smart resolvaion can guess most symbols but it might be slow so disabled by default users can turn on it in the editor setting
* Add a symbol pool to cache all native symbols and workspackes symbols.geequlim2019-08-111-22/+299
| | | | | | | Implement hover Implement completion documentation resolve Implement hover documentation Implement go to definition
* Add GDScript Language Protocol plugingeequlim2019-08-111-0/+237