summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/language_server
Commit message (Collapse)AuthorAgeFilesLines
* 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-013-3/+9
|
* Use range iterators for `Map`Lightning_A2021-09-304-27/+27
|
* Make LSP report _init instead of Object::newFrancois Belair2021-09-292-3/+6
|
* Remove duplicate WorkspaceEdit from LSPFrancois Belair2021-09-251-40/+10
|
* Merge pull request #50378 from Razoric480/apply-edit-40Rémi Verschelde2021-09-255-0/+126
|\
| * Implement applyEdit in LSP for signal connectingFrancois Belair2021-07-115-0/+126
| |
* | LSP: Add support for custom host settingJohn J. Donna II2021-09-202-2/+6
| | | | | | | | | | You can now configure host in the `language_server` settings in the editor settings.
* | Style: Cleanup code using `text_editor/completion/use_single_quotes`Rémi Verschelde2021-08-131-2/+2
| |
* | Fix LSP completion crashing on scene-less scriptsFrancois Belair2021-08-062-16/+22
| |
* | 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-055-2/+175
|\ \ \ | |/ / |/| | Implement LSP didSave notification and rename request
| * | Implement didSave notification and rename requestFrancois Belair2021-07-175-2/+175
| | |
* | | Merge pull request #50454 from Ev1lbl0w/gsoc21-dapFabio Alessandrelli2021-08-031-2/+2
|\ \ \ | | | | | | | | Implemented initial DAP support
| * | | Implemented initial DAP supportEv1lbl0w2021-08-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented "output" event Refactored "seq" field generation Prevent debugging when editor and client are in different projects Removed unneeded references to peer on the parser Refactored way to detect project path Implemented "setBreakpoints" request Fix double events when terminating from client Refactored "stopped" event Implemented "stopped" with breakpoint event Implemented "stackTrace", "scopes" and "variables" request Report incoming number of stack dump variables Implemented proper reporting of scopes and variables from stack frames Prevent editor from grabbing focus when a DAP session is active Implemented "next" and "stepIn" requests Implemented "Source" checksum computing Switched expected errors from macros to silent guards Refactored message_id Respect client settings regarding lines/columns behavior Refactored nested DAP fields Implement reporting of "Members" and "Globals" scopes as well Fix error messages not being shown, and improved wrong path message
* | | | Fix LSP reporting wrong typesFrancois Belair2021-07-262-31/+31
| | | |
* | | | Use const references where possible for List range iteratorsRémi Verschelde2021-07-252-3/+3
| | | |
* | | | Use C++ iterators for Lists in many situationsAaron Franke2021-07-233-20/+15
| | | |
* | | | [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).
* / / Optimize StringName usagereduz2021-07-181-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* | Misc cleanup of header includesRémi Verschelde2021-07-151-3/+9
| | | | | | | | | | Was looking for misuse of module headers without checking that the module is actually enabled and got carried away...
* | Implement the ability to disable classesreduz2021-07-131-3/+3
|/ | | | | | | * This PR adds the ability to disable classes when building. * For now it's only possible to do this via command like: `scons disable_classes=RayCast2D,Area3D` * Eventually, a proper UI will be implemented to create a build config file to do this at large scale, as well as detect what is used in the project.
* Implement didClose notification in LSPFrancois Belair2021-07-082-0/+7
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-192-4/+4
|
* Consolidate JSON, JSONParseResults and JSONParser into JSONMarcel Admiraal2021-06-192-9/+6
| | | | | Renames JSON.parse_string() to parse() Renames JSON.decode_data() to stringify()
* Translate file path to URI on LSP symbol requestsFrancois Belair2021-06-171-1/+3
|
* Rename Reference to RefCountedPedro J. Estébanez2021-06-114-8/+8
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-112-2/+2
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Merge pull request #47776 from Razoric480/foreportRémi Verschelde2021-05-064-19/+195
|\ | | | | Implement LSP didDeleteFiles & make parser aware of sub-nodes
| * Implement LSP didDeleteFiles & make parser aware of sub-nodesFrancois Belair2021-04-104-19/+195
| |
* | Rename `IP_Unix`, `IP_Address` and `TCP_Server` to remove underscoresHugo Locurcio2021-05-063-4/+4
| |
* | Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-1/+0
| | | | | | | | | | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
* | Make LSP update the filesystem of changed scriptsFrancois Belair2021-04-141-0/+1
|/ | | | | This updates global classes and exposes base member variables. Fixes #39713
* Merge pull request #40276 from Taywee/masterRémi Verschelde2021-02-251-1/+1
|\ | | | | remove invalid codeLensProvider value from lsp
| * remove invalid codeLensProvider value from lspTaylor C. Richberger2020-07-111-1/+1
| | | | | | codeLensProvider was false, it may not be a boolean like some of the other providers can, only optionally present.
* | Fixed Invalid function bindings #46135Vignesh1-art2021-02-181-1/+1
| | | | | | Fixed GDScriptLanguageProtocol::notify_client - have 3 arguments, but only 2 are binded
* | Initialize class/struct variables with default values in modules/Rafał Mikrut2021-02-083-16/+11
| |
* | Merge pull request #45315 from RandomShaper/modernize_threadRémi Verschelde2021-01-312-8/+4
|\ \ | | | | | | Modernize Thread
| * | Modernize ThreadPedro J. Estébanez2021-01-292-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Based on C++11's `thread` and `thread_local` - No more need to allocate-deallocate or check for null - No pointer anymore, just a member variable - Platform-specific implementations no longer needed (except for the few cases of non-portable functions) - Simpler for `NO_THREADS` - Thread ids are now the same across platforms (main is 1; others follow)
* | | 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-0111-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-285-26/+26
| |
* | 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.
* | Refactor DocData into core and editor (DocTools) partsThakee Nathees2020-12-023-3/+5
| |
* | Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-1/+0
| |
* | Reorganized core/ directory, it was too fatty alreadyreduz2020-11-076-8/+8
| | | | | | | | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* | [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-3/+3
| |