summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server
Commit message (Collapse)AuthorAgeFilesLines
* GDScript LSP: Fix wrong error checks added in #39385Rémi Verschelde2020-06-152-5/+3
| | | | | | | | | Reverts `latest_client_id` back to 0, as I misunderstood how the client IDs are assigned and, without further testing and debugging, I can't say if this was a bug or a valid default value. Similarly, a `latest_client_id` of -1 is no longer raising an error. Fixes #39548.
* GDScript LSP: Fix crash in notify_clientRémi Verschelde2020-06-086-14/+23
| | | | | | | | | `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.
* Fix incorrect capabilities notification in LSPOliver Frank2020-05-151-3/+3
| | | | (cherry picked from commit 2173d041af711c111d60d1fc1f45f96f4f8c7271)
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-144-22/+42
| | | | | 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-147-77/+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-103-13/+26
| | | | | | | 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 more occurrences of NULL with nullptrRémi Verschelde2020-04-021-3/+3
|
* Replace NULL with nullptrlupoDharkael2020-04-025-33/+33
|
* Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky2020-03-261-1/+3
|
* Move DocData and Collada out of their subfoldersRémi Verschelde2020-03-241-1/+1
| | | | | | | | Now that the unused DocDump was removed, the `editor/doc` subfolder is redundant. Similarly, there's no reason for Collada to have a subfolder for itself when glTF or OBJ don't.
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-1/+1
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* Merge pull request #36683 from rafaeldelboni/masterRémi Verschelde2020-03-082-12/+16
|\ | | | | Return only scenes for script owners on LSP completion
| * fix: Return only scenes for script owners on LSP completionRafael Delboni2020-03-072-12/+16
| | | | | | | | Fix: #36680
* | typo in gdscript_workspace.cpp/remove_cache_parser() fixedThakee Nathees2020-03-051-1/+1
|/
* Improve LSP completion using scene ownerRafael Delboni2020-02-252-1/+53
| | | | Fixes: #36473
* Fix crash after closing a GDScript LSP sessionOliver Frank2020-02-232-3/+3
|
* Migrating language server from Websockets to raw TCPof92020-02-202-77/+164
|
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-3/+3
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-2/+2
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Fix hover symbol content positiongeequlim2020-02-121-0/+2
|
* 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.
* Prevent GDScript language server from listening to external hosts by defaultHoukime2020-01-153-3/+4
| | | | | | | | | | * 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.
* 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
|
* Remove completion triggers for ',' and '(' which may conflict with signature ↵geequlim2020-01-111-2/+0
| | | | helper
* Allow enable/disable threading for LSP servergeequlim2020-01-112-13/+42
| | | | Restart LSP server when configurations change without restart the editor
* LSP: Fix bracket completion for functions with one argumentGeequlim2020-01-101-1/+1
|
* GDScript LSP: Implement signatureHelpgeequlim2020-01-098-1/+232
| | | | Enable smart resolve default to true as it is required for script symbol lookup
* GDScript LSP: Implement goto declarationgeequlim2020-01-042-54/+69
|
* Update copyright statements to 2020Rémi Verschelde2020-01-0111-22/+22
| | | | | | | | | | | 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.
* Cleans up headers included in editor_node.hHaoyu Qiu2019-12-241-0/+1
|
* Removed unused variables, add some constants numbersRafał Mikrut2019-12-102-3/+1
|
* Fix typos with codespellRémi Verschelde2019-11-222-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* Small fixes to redundand code, copy paste bugsqarmin2019-10-141-1/+1
|
* fix #32588 crash in language serverHaSa10022019-10-111-1/+1
|
* Decrease polling frequency to 20 Hz in the GDScript language serverHugo Locurcio2019-10-101-1/+2
| | | | This decreases the language server's CPU usage.
* Merge pull request #32671 from GodotExplorer/lsp-send-godot-class-treeRémi Verschelde2019-10-092-1/+52
|\ | | | | lsp: Send godot class tree to clients
| * lsp: Send godot class tree to clientsGeequlim2019-10-092-1/+52
| |
* | lsp: Fix signature of void returned functions in native methodsGeequlim2019-10-091-1/+5
|/
* Format documentations to markdown only when neededgeequlim2019-10-054-74/+82
|
* Add custom api `textDocument/nativeSymbol` to allow inspect native symbols ↵geequlim2019-10-046-5/+58
| | | | from LSP clients
* Fix enumeration value of SymbolKind.geequlim2019-10-043-52/+65
| | | | | Add custom notification 'gdscript/show_native_symbol' to show native symbols in clients. Close client connections when stop gdscript-lsp
* Implement DocumentLink of GDScript LSP Servergeequlim2019-10-037-4/+99
|
* 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-223-4/+8
|
* Distinguish editor-originating messages in the editor logHugo Locurcio2019-09-201-2/+2
| | | | | | | 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.
* Improve code compeletion for virtual methods with signaturesgeequlim2019-08-112-1/+6
|
* Add optional goto definition support for native symbolsgeequlim2019-08-1110-84/+134
| | | | | This action will show help for target symbol in godot editor and bring the godot editor window to foreground Improved markdown documentation for symbols.