summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use the standard C `INFINITY` and `NAN` constants directlyHugo Locurcio2021-07-211-2/+2
| | | | | | | The `Math_INF` and `Math_NAN` defines were just aliases for those constants, so we might as well use them directly. Some portions of the code were already using `INFINITY` directly.
* Remove singleton variable shadowing.K. S. Ernest (iFire) Lee2021-06-301-3/+3
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-2/+2
|
* Added support for scripts reporting multiple errors to ScriptTextEditorEric M2021-06-191-7/+13
| | | | Scripts can now report multiple errors to the scripting editors in the engine. UI elements were added to support multiple errors.
* Adding some more missing renames for Transform3D and QuaternionBastiaan Olij2021-06-151-1/+1
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-1/+1
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Change behavior of String.rightTomasz Chabora2021-05-201-2/+2
|
* Show colored rects for autocompletion of Color constants in functionsYuri Roubinsky2021-05-191-0/+1
|
* Merge pull request #47776 from Razoric480/foreportRémi Verschelde2021-05-061-0/+1
|\ | | | | Implement LSP didDeleteFiles & make parser aware of sub-nodes
| * Implement LSP didDeleteFiles & make parser aware of sub-nodesFrancois Belair2021-04-101-0/+1
| |
* | Merge pull request #47798 from ray90514/bug#47620Rémi Verschelde2021-05-041-1/+6
|\ \ | | | | | | Fix constants at function scope are not defined as constants for completion
| * | Fix Constants at function scope are not defined as constants for autocompletionray905142021-04-111-1/+6
| |/
* / Replace remaining uses of `NULL` with `nullptr`Rémi Verschelde2021-04-291-1/+1
|/ | | | Follow-up to #38736 (these uses were likely added after this PR was merged).
* Fix infinite loop when guessing argument type from parent classJulien Nguyen2021-04-051-1/+1
|
* Style: Apply clang-tidy's `modernize-use-nullptr`Rémi Verschelde2021-04-051-4/+4
|
* Move GDSript annotation application after type-checkingGeorge Marques2021-03-301-38/+8
| | | | | | This ensures that annotations that rely on the datatype (such as @export) can validated it timely, allowing compound expressions instead of only literal values.
* [script editor] Fix two special cases not being checked in code completionAndy Maloney2021-03-011-2/+1
| | | | | | | | | | When this code was changed for 4.0, a "break" statement inside a for loop in 3.x was changed to "return". This means that the two special cases (autoloads and input actions) are never checked. Removing the return lets these work properly in the editor. (Also reorder conditionals to short-circuit and avoid expensive methods.)
* Merge pull request #43980 from gvekan/fix-missing-function-hintsRémi Verschelde2021-01-111-1/+1
|\ | | | | Fix missing function hints
| * Fix missing function hintsGustav2020-11-301-1/+1
| |
* | 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-4/+4
| |
* | Merge pull request #43890 from vnen/gdscript-builtin-functions-refactorRémi Verschelde2020-12-151-17/+22
|\ \ | | | | | | GDScript: Refactor builtin functions
| * | GDScript: Refactor builtin functionsGeorge Marques2020-11-261-17/+22
| |/ | | | | | | | | | | | | | | | | | | | | They are now called "utility functions" to avoid confusion with methods of builtin types, and be consistent with the naming in Variant. Core utility functions are now available in GDScript. The ones missing in core are added specifically to GDScript as helpers for convenience. Some functions were remove when there are better ways to do, reducing redundancy and cleaning up the global scope.
* | Add bracket or space to some keyword completionsGustav2020-12-031-4/+29
| |
* | Refactor DocData into core and editor (DocTools) partsThakee Nathees2020-12-021-0/+4
|/
* Fix completion for built-in load functionGustav2020-11-101-5/+0
|
* Refactored variant constructor logicreduz2020-11-091-8/+17
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-8/+8
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Shows ColorRect in Color constants autocompletionYuri Roubinsky2020-10-231-0/+8
|
* GDScript: Add recursion depth limit for completionGeorge Marques2020-08-261-14/+20
| | | | To avoid crashes when there's a dependency loop.
* GDScript: Fix crash when completing code with signalsGeorge Marques2020-08-261-1/+0
|
* Merge pull request #41224 from ThakeeNathees/fix-ctrl+click-not-workingGeorge Marques2020-08-131-0/+1
|\ | | | | Fix: ctrl + click not working on script member
| * Fix: ctrl + click not workingThakee Nathees2020-08-131-0/+1
| |
* | Fixing null callee crash.Stephen Nichols2020-08-051-4/+7
|/
* Wrap up GDScript 2.0 base implementationGeorge Marques2020-07-221-2/+4
|
* Reintroduce code completionGeorge Marques2020-07-201-2/+2545
|
* Add warning checks in GDScript analyzerGeorge Marques2020-07-201-14/+16
| | | | Reenable checking those when validating code.
* Add new GDScript type checkerGeorge Marques2020-07-201-0/+5
|
* New GDScript tokenizer and parserGeorge Marques2020-07-201-2985/+51
| | | | | | | | | | 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.
* Merge pull request #39315 from ThakeeNathees/ctrl-click-fix-for-subclassesRémi Verschelde2020-06-161-0/+8
|\ | | | | Fix: Ctrl + Click not working for subclasses
| * Fix: Ctrl + Click not working for subclassesThakee Nathees2020-06-051-0/+8
| |
* | regression: dictionary key no autocomplete fixThakee Nathees2020-05-241-1/+5
|/ | | | Fix: #38998
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-17/+34
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-65/+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.
* Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-141-17/+10
| | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-10/+30
| | | | Part of #33027.
* Merge pull request #37293 from Janglee123/ctrl-click-improvementsRémi Verschelde2020-05-051-0/+12
|\ | | | | Improved go-to definition (Ctrl + Click)
| * Improved go-to definition (Ctrl + Click)janglee2020-05-051-0/+12
| | | | | | | | Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
* | Merge pull request #37172 from theoway/autoCompletionBugRémi Verschelde2020-04-241-1/+1
|\ \ | | | | | | Fixed the auto-completion bug in gdscript_editor