summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactor some object type checking code with `cast_to`Rémi Verschelde2022-02-081-8/+8
| | | | Less stringly typed logic, and less String allocations and comparisons.
* Merge pull request #57591 from vnen/gdscript-enum-fixesRémi Verschelde2022-02-041-1/+1
|\
| * GDScript: Consolidate behavior for assigning enum typesGeorge Marques2022-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | This makes sure that assigning values to enum-typed variables are consistent. Same enum is always valid, different enum is always invalid (without casting) and assigning `int` creates a warning if there is no casting. There are new test cases to ensure this behavior doesn't break in the future.
* | String: Add contains().Anilforextra2022-02-041-7/+7
|/
* Merge pull request #56268 from KoBeWi/🚗complete_settersRémi Verschelde2022-01-131-2/+1
|\
| * Remove autocomplete_setters_and_getters settingkobewi2021-12-271-2/+1
| |
* | Merge pull request #56326 from NNesh/fix/unknown_default_value_callableRémi Verschelde2022-01-101-6/+44
|\ \ | | | | | | Extended the _make_arguments_hint function to get default values for function arguments in hint
| * | Fixed <unknown> text for callable default value for a function arguments hintNNesh2022-01-101-6/+44
| |/ | | | | | | | | | | | | | | | | | | | | | | Format switch Added a case for constant subscripts Fixed default value hinting for the enum type Removed is_null checking for value Added a case for dictionary
* | Merge pull request #55213 from Scony/fix-gdscript-crashRémi Verschelde2022-01-061-0/+4
|\ \
| * | Fix godot crash on null expression, fixes #53862Pawel Lampe2021-11-211-0/+4
| | |
* | | Merge pull request #56483 from vnen/gdscript-warning-annotationRémi Verschelde2022-01-051-0/+5
|\ \ \ | | | | | | | | Add annotation to ignore warnings
| * | | GDScript: Add annotation to ignore warningsGeorge Marques2022-01-041-0/+5
| | |/ | |/|
* | | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | Improve editor template workflowfabriceci2022-01-021-57/+34
|/ / | | | | | | Co-Authored-By: jmb462 <jmb462@gmail.com>
* | Fix "Lookup Symbol" on global class memberscdemirer2021-12-101-0/+1
| | | | | | | | "Lookup Symbol" on global class members now does switch to the relevant script.
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
|/ | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Fix autocompletion of built-in functions in GDScriptYuri Roubinsky2021-10-111-1/+14
|
* GDScript completion: Handle quote style ad-hoc to remove editor dependencyRémi Verschelde2021-10-041-11/+17
| | | | | | | | `core` and `scene` shouldn't depend on `editor`, so they can't query this style setting in `get_argument_options`. But we can handle it after the fact in GDScript's completion code. Also cleans up a couple extra unused invalid includes in `core`.
* Use range iterators for `Map`Lightning_A2021-09-301-19/+19
|
* Merge pull request #52800 from akien-mga/gdscript-remove-exp_rangeRémi Verschelde2021-09-291-1/+1
|\
| * GDScript: Remove reference to remove `@export_exp_range`Rémi Verschelde2021-09-171-1/+1
| | | | | | | | | | It was removed in 75688772b3efadb8a36b1bb7ccde9c08819bc58e to be replaced by `@export_range` with an `"exp"` hint string.
* | Prevent local constant default value from incorrect override by a globalYuri Roubinsky2021-09-211-0/+3
|/
* Merge pull request #52362 from vnen/gdscript-lambda-completion-crashRémi Verschelde2021-09-131-1/+1
|\ | | | | GDScript: Do not complete lambda arguments from parent class
| * GDScript: Do not complete lambda arguments from parent classGeorge Marques2021-09-021-1/+1
| | | | | | | | | | Since lambdas are not overriding methods from the parent class, they should not try to check inheritance for signature matching.
* | Show help for built-in functions (@GlobalScope)William Deurwaarder2021-08-301-0/+9
|/
* Use OrderedHashMap for autoloads to preserve orderLyuma2021-08-261-14/+14
|
* Remove underscore hacksMax Hilbrunner2021-08-171-30/+13
| | | | | | Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
* Reorganise text editor settingsPaulb232021-08-161-2/+2
|
* Style: Cleanup code using `text_editor/completion/use_single_quotes`Rémi Verschelde2021-08-131-14/+12
|
* Merge pull request #48615 from Razoric480/lsp-renameRémi Verschelde2021-08-051-0/+1
|\ | | | | Implement LSP didSave notification and rename request
| * Implement didSave notification and rename requestFrancois Belair2021-07-171-0/+1
| |
* | Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-20/+20
| |
* | Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-85/+81
| |
* | 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.)