summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorAdam Wardell <adamwardell@gmail.com>2023-01-20 19:16:53 -0800
committerAdam Wardell <adamwardell@gmail.com>2023-01-20 19:16:53 -0800
commite9d8c261a526ee48a72bab73dd6d556c4de24626 (patch)
treeceead63236cf2821488c375b989682b272093c84 /modules/gdscript
parent4db3716d8d9bbc95c031818b190002602558b0f2 (diff)
call update_exports from LSP didSave function
exports in the inspector were not properly appearing when a gdscript was saved using an external IDE this commit adds a call to GDScript::UpdateExports toward the end of GDScriptTextDocument::didSave
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/language_server/gdscript_text_document.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp
index edb2e8117a..b9e6921034 100644
--- a/modules/gdscript/language_server/gdscript_text_document.cpp
+++ b/modules/gdscript/language_server/gdscript_text_document.cpp
@@ -107,6 +107,7 @@ void GDScriptTextDocument::didSave(const Variant &p_param) {
} else {
scr->reload(true);
}
+ scr->update_exports();
ScriptEditor::get_singleton()->update_docs_from_script(scr);
}
}