summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorJakub Grzesik <kubecz3k@gmail.com>2018-10-22 20:32:58 +0200
committerJakub Grzesik <kubecz3k@gmail.com>2018-10-23 11:30:14 +0200
commitba02ccbbe02976437858baf2e10d11181b95837b (patch)
treef8b2ecb688cd292162e79937f6e9c70fd8c1fdae /modules/gdscript/gdscript.cpp
parent955a913a1fcc7551a3e03017eb2ac8edc4ee7043 (diff)
downloadredot-engine-ba02ccbbe02976437858baf2e10d11181b95837b.tar.gz
Optional getters/setters editor autocomplete
solves #22291
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index 48c1760662..4909ac8d92 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -2081,6 +2081,7 @@ GDScriptLanguage::GDScriptLanguage() {
#ifdef DEBUG_ENABLED
GLOBAL_DEF("debug/gdscript/warnings/enable", true);
GLOBAL_DEF("debug/gdscript/warnings/treat_warnings_as_errors", false);
+ GLOBAL_DEF("debug/gdscript/completion/autocomplete_setters_and_getters", false);
for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) {
String warning = GDScriptWarning::get_name_from_code((GDScriptWarning::Code)i).to_lower();
GLOBAL_DEF("debug/gdscript/warnings/" + warning, !warning.begins_with("unsafe_"));