From 64edc7a5c2397e5330a587d40b4d0275bf9a9c9e Mon Sep 17 00:00:00 2001 From: Rindbee Date: Sun, 4 Dec 2022 10:59:31 +0800 Subject: Fix internal editor not updating when using external editor via LSP --- modules/gdscript/language_server/gdscript_text_document.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdscript/language_server') 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); } } -- cgit v1.2.3