summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server/gdscript_workspace.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add GDExtension support to Scriptreduz2022-03-271-2/+2
| | | | | | | | | * Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
* String: Add contains().Anilforextra2022-02-041-2/+2
|
* Merge pull request #57205 from TechnoPorg/variant-template-castRémi Verschelde2022-01-271-1/+1
|\ | | | | Allow method binds to take Object subclasses as arguments
| * Allow method binds to take Object subclasses as argumentsTechnoPorg2022-01-251-1/+1
| | | | | | | | | | | | This commit adds a condition to VariantCaster that casts Variants of type OBJECT to any type T, if T is derived from Object. This change enables a fair bit of code cleanup. First, the Variant implicit cast operators for Node and Control can be removed, which allows for some invalid includes to be removed. Second, helper methods in Tree whose sole purpose was to cast arguments to TreeItem * are no longer necessary. A few small changes also had to be made to other files, due to the changes cascading down all the includes.
* | Rename String::is_subsequence_ofi to String::is_subsequence_ofnWilson E. Alvarez2022-01-261-1/+1
|/
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Prevent LSP adding signal func to non GDScriptsFrancois Belair2021-12-041-1/+5
|
* Move the docs for constructors and operators out of methods sectionAaron Franke2021-10-291-0/+2
|
* Use range iterators for `Map`Lightning_A2021-09-301-16/+16
|
* Make LSP report _init instead of Object::newFrancois Belair2021-09-291-2/+5
|
* Merge pull request #50378 from Razoric480/apply-edit-40Rémi Verschelde2021-09-251-0/+52
|\
| * Implement applyEdit in LSP for signal connectingFrancois Belair2021-07-111-0/+52
| |
* | Fix LSP completion crashing on scene-less scriptsFrancois Belair2021-08-061-13/+15
| |
* | Fix LSP parsing get_node only from the scene rootFrancois Belair2021-08-051-1/+22
| |
* | Merge pull request #51247 from pycbouh/docs-extract-theme-itemsRémi Verschelde2021-08-051-6/+12
|\ \ | | | | | | Add theme item descriptions to the online documentation
| * | Add theme item descriptions to the online documentationYuri Sizov2021-08-041-6/+12
| | |
* | | Merge pull request #48615 from Razoric480/lsp-renameRémi Verschelde2021-08-051-0/+84
|\ \ \ | |/ / |/| | Implement LSP didSave notification and rename request
| * | Implement didSave notification and rename requestFrancois Belair2021-07-171-0/+84
| |/
* | Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-2/+2
| |
* | Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-6/+4
|/
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-1/+1
|
* Translate file path to URI on LSP symbol requestsFrancois Belair2021-06-171-1/+3
|
* Implement LSP didDeleteFiles & make parser aware of sub-nodesFrancois Belair2021-04-101-0/+11
|
* Unify URI encoding/decoding and add to C#Aaron Franke2021-01-281-1/+1
| | | | http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
* 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-10/+10
|
* Refactor DocData into core and editor (DocTools) partsThakee Nathees2020-12-021-1/+2
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-2/+2
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Reenable GDScript LSP serverGeorge Marques2020-07-201-6/+1
|
* 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.
* GDScript LSP: Fix crash in notify_clientRémi Verschelde2020-06-081-6/+7
| | | | | | | | | `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-3/+6
| | | | | 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-10/+10
|
* Merge pull request #36683 from rafaeldelboni/masterRémi Verschelde2020-03-081-11/+15
|\ | | | | Return only scenes for script owners on LSP completion
| * fix: Return only scenes for script owners on LSP completionRafael Delboni2020-03-071-11/+15
| | | | | | | | Fix: #36680
* | typo in gdscript_workspace.cpp/remove_cache_parser() fixedThakee Nathees2020-03-051-1/+1
|/
* Improve LSP completion using scene ownerRafael Delboni2020-02-251-1/+48
| | | | Fixes: #36473
* GDScript LSP: Implement signatureHelpgeequlim2020-01-091-0/+51
| | | | 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.
* Fix typos with codespellRémi Verschelde2019-11-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.16.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Remove all uses of ERR_EXPLAIN macros.Marcel Admiraal2019-11-111-2/+1
|
* lsp: Fix signature of void returned functions in native methodsGeequlim2019-10-091-1/+5
|
* Format documentations to markdown only when neededgeequlim2019-10-051-4/+4
|
* Add custom api `textDocument/nativeSymbol` to allow inspect native symbols ↵geequlim2019-10-041-0/+18
| | | | from LSP clients
* Implement DocumentLink of GDScript LSP Servergeequlim2019-10-031-0/+9
|
* Improve code compeletion for virtual methods with signaturesgeequlim2019-08-111-0/+5
|
* Add optional goto definition support for native symbolsgeequlim2019-08-111-56/+8
| | | | | 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-0/+14
| | | | | Expose GDScriptLanguageProtocol singleton and classes for editor plugins (Not visiable in class tree) Fix minor bug in symbol resolve