summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server
diff options
context:
space:
mode:
authorRindbee <idleman@yeah.net>2022-12-04 10:59:31 +0800
committerRindbee <idleman@yeah.net>2023-01-22 18:27:22 +0800
commit64edc7a5c2397e5330a587d40b4d0275bf9a9c9e (patch)
tree80c704bac4c6a3b7397f1bcba7f06fc2c63ead4c /modules/gdscript/language_server
parentc3539b4561f9b4d7dc4ba1c5859217e7fbf9c6fe (diff)
Fix internal editor not updating when using external editor via LSP
Diffstat (limited to 'modules/gdscript/language_server')
-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 b9e6921034..35fbdca949 100644
--- a/modules/gdscript/language_server/gdscript_text_document.cpp
+++ b/modules/gdscript/language_server/gdscript_text_document.cpp
@@ -108,6 +108,7 @@ void GDScriptTextDocument::didSave(const Variant &p_param) {
scr->reload(true);
}
scr->update_exports();
+ ScriptEditor::get_singleton()->reload_scripts(true);
ScriptEditor::get_singleton()->update_docs_from_script(scr);
}
}