summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix completion option location not foundajreckof2023-08-051-2/+2
|
* Merge pull request #79935 from dalexeev/gds-validate-node-path-annotationYuri Sizov2023-08-011-3/+15
|\ | | | | | | GDScript: Add validation for `@export_node_path` annotation arguments
| * GDScript: Add validation for `@export_node_path` annotation argumentsDanil Alexeev2023-07-261-3/+15
| | | | | | | | Co-authored-by: George Marques <george@gmarqu.es>
* | Merge pull request #79880 from dalexeev/gds-fix-id-shadowing-belowYuri Sizov2023-07-311-46/+59
|\ \ | | | | | | | | | GDScript: Fix bug with identifier shadowed below in current scope
| * | GDScript: Fix bug with identifier shadowed below in current scopeDanil Alexeev2023-07-261-46/+59
| |/
* / Support threads in the script debuggerJuan Linietsky2023-07-261-22/+32
|/ | | | | | | | | | * This implementation adds threads on the side of the client (script debugger). * Some functions of the debugger are optimized. * The profile is also now thread safe using atomics. * The editor can switch between multiple threads when debugging. This PR adds threaded support for the script language debugger. Every thread has its own thread local data and it will connect to the debugger using multiple thread IDs. This means that, now, the editor can receive multiple threads entering debug mode at the same time.
* Merge pull request #75216 from rune-scape/rune-dependancy-errorsYuri Sizov2023-07-241-2/+14
|\ | | | | | | Script editor (GDScript): Show depended script errors
| * Script editor: Show depended script errorsrune-scape2023-07-241-2/+14
| |
* | Merge pull request #73196 from Vilcrow/fix-lookup-symbolYuri Sizov2023-07-241-5/+5
|\ \ | |/ |/| | | Fix jumping to function definition using `Ctrl+LMB` or the "Lookup Symbol" button
| * Fixed the jumping to function definition using 'Ctrl+LMB' and the 'Lookup ↵S.V.I. Vilcrow2023-07-121-5/+5
| | | | | | | | Symbol' button.
* | Fix "Go to definition" for GDScript type hintsBen2023-06-191-0/+28
| | | | | | | | Fixes #68475.
* | Merge pull request #68311 from RobertMasek/fix-go-to-definitionRémi Verschelde2023-06-181-1/+2
|\ \ | | | | | | | | | Fix functionality of Go To Definition for properties set/get
| * | Add case for COMPLETION_PROPERTY_METHODRobertMasek2022-11-051-1/+2
| | |
* | | Style: Harmonize header includes in modulesRémi Verschelde2023-06-151-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies our existing style guide, and adds a new rule to that style guide for modular components such as platform ports and modules: Includes from the platform port or module ("local" includes) should be listed first in their own block using relative paths, before Godot's "core" includes which use "absolute" (project folder relative) paths, and finally thirdparty includes. Includes in `#ifdef`s come after their relevant section, i.e. the overall structure is: - Local includes * Conditional local includes - Core includes * Conditional core includes - Thirdparty includes * Conditional thirdparty includes
* | | sort code completions with rulesajreckof2023-05-231-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixups Add levenshtein distance for comparisons, remove kind sort order, try to improve as many different use cases as possible Trying again to improve code completion Sort code autocompletion options by similarity based on input To make it really brief, uses a combination `String.similiary`, the category system introduced in a previous PR, and some filtering to yield more predictable results, instead of scattering every completion option at seemingly random. It also gives much higher priority to strings that contain the base in full, closer to the beginning or are perfect matches. Also moves CodeCompletionOptionCompare to code_edit.cpp Co-Authored-By: Micky <66727710+Mickeon@users.noreply.github.com> Co-Authored-By: Eric M <41730826+EricEzaM@users.noreply.github.com>
* | | Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-051-12/+2
|\ \ \ | | | | | | | | Use `String.repeat()` to optimize several String methods
| * | | Use String.repeat() in more placesVolTer2023-05-011-12/+2
| | | |
* | | | Add support for static variables in GDScriptGeorge Marques2023-04-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which allows editable data associated with a particular class instead of the instance. Scripts with static variables are kept in memory indefinitely unless the `@static_unload` annotation is used or the `static_unload()` method is called on the GDScript. If the custom function `_static_init()` exists it will be called when the class is loaded, after the static variables are set.
* | | | Merge pull request #76170 from HolonProduction/string-highlightYuri Sizov2023-04-181-0/+1
|\ \ \ \ | | | | | | | | | | Fix multi-line string highlighting with single quotes.
| * | | | Fix multi-line string highlighting with single quotes.HolonProduction2023-04-171-0/+1
| | | | |
* | | | | Add GDScript template to RichTextEffectRedMser2023-04-181-0/+2
|/ / / /
* | | | GDScript: Misc fixes and improvements for signature generationDanil Alexeev2023-04-071-34/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use type hints for `@GlobalScope` enums. * Use plain `int` for `BitMask<T>`. * Fix type hints for typed arrays. * Use `Variant` and `void` type hints. * Discard unnecessary class prefix.
* | | | GDScript: Change parser representation of class extendsDmitrii Maganov2023-03-131-2/+2
| | | |
* | | | GDScript: Fix autocomplete inside a block with a type test conditionDmitrii Maganov2023-03-091-1/+1
| | | |
* | | | GDScript: Limit recursion depth for completion functionsGeorge Marques2023-02-201-0/+39
| | | | | | | | | | | | | | | | | | | | Avoid crashing if the completion gets stuck in infinite recursion while trying to guess the expression type.
* | | | GDScript: Rework type checkDmitrii Maganov2023-02-171-8/+6
| |_|/ |/| |
* | | Revert "Fixed the jumping to function definition using 'Ctrl+LMB'."Rémi Verschelde2023-02-131-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7eb6367d5cb62fb48563ad940423198f792e3fe8. Fixes #73058. Fixes #73167. This caused regressions, we'll retry with fixes for 4.1.
* | | Merge pull request #72789 from Vilcrow/fix-jump-to-definitionRémi Verschelde2023-02-071-0/+8
|\ \ \ | | | | | | | | | | | | Fixed the jumping to function definition using 'Ctrl+LMB'.
| * | | Fixed the jumping to function definition using 'Ctrl+LMB'.S.V.I. Vilcrow2023-02-071-0/+8
| | | |
* | | | Merge pull request #70002 from poohcom1/fix/static-subscript-autocompleteYuri Sizov2023-02-061-17/+19
|\ \ \ \ | | | | | | | | | | Fix code-completion suggesting non-static members for custom classes
| * | | | Fix code-completion suggesting non-static memberspoohcom12023-01-161-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In GDScript code-completion: - Fixes class symbols not being marked as meta - Remove signal in static contexts Fixes #69928
* | | | | GDScript: Better handling of `@rpc` annotation and autocompletionDanil Alexeev2023-02-051-0/+9
| |/ / / |/| | |
* | | | Fix crash in gdscript when autocompleting virtual function and signature ↵Eric M2023-02-021-11/+13
| | | | | | | | | | | | | | | | does not match base.
* | | | GDScript: Allow constant expressions in annotationsDanil Alexeev2023-01-251-0/+3
| |/ / |/| |
* | | Merge pull request #69970 from poohcom1/fix/autocomplete-custom-classGeorge Marques2023-01-161-0/+8
|\ \ \ | |/ / |/| | Fixes https://github.com/godotengine/godot/issues/69941
| * | Add identifier completion for custom classes.poohcom12023-01-161-0/+8
| | | | | | | | | | | | | | | Previously, custom class would only auto-complete for types in GDScript. This applies it to identifiers as well.
* | | Fix GDScript script templates to use a PascalCase style for `_CLASS_`Yuri Rubinsky2023-01-141-1/+1
| | |
* | | Assorted enum and native type fixesocean (they/them)2023-01-091-6/+13
| | |
* | | Force double quotes for NodePaths with apostrophesjordi2023-01-071-1/+3
| | |
* | | Unify typing of variables, constants and parameters in GDScriptDmitrii Maganov2023-01-061-13/+13
| | |
* | | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* | | Remove unused code paragraph from gdscript_editor.cpp/complete_codeYuri Rubinsky2022-12-221-10/+0
|/ /
* | Fix autocomplete on functions returning variantspoohcom12022-12-111-4/+5
| | | | | | | | - When guessing return type, check type hints before last return value
* | Fix autocomplete crash as it would infinite loopAdam Scott2022-12-081-1/+1
| |
* | Fix lookup to docs for variables initialized with `get_node`Yuri Rubinsky2022-12-071-2/+5
| |
* | Fix completion for the raw `get_node` callYuri Rubinsky2022-12-061-35/+47
| |
* | Fix lookup code to pass functions with the same name as built-insYuri Rubinsky2022-11-281-11/+15
| |
* | Fix GDScript completion crashYuri Rubinsky2022-11-211-1/+1
| |
* | Fix completion popup for the variables created with `get_node` callYuri Rubinsky2022-11-141-61/+63
| |
* | Merge pull request #65712 from Chaosus/gds_fix_completionRémi Verschelde2022-11-141-1/+55
|\ \ | | | | | | fix https://github.com/godotengine/godot/issues/64477