From 1f54a753107ab11d1444895e2a0e53397e0c00af Mon Sep 17 00:00:00 2001 From: Francois Belair Date: Wed, 14 Apr 2021 13:11:38 -0400 Subject: [PATCH] Make LSP update the filesystem of changed scripts This updates global classes and exposes base member variables. Fixes #39713 (cherry picked from commit b16bb33a5b462750c70ae1fec791dac8e50fe3ef) --- modules/gdscript/language_server/gdscript_text_document.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index 9238762954e..d57aca5b66b 100644 --- a/modules/gdscript/language_server/gdscript_text_document.cpp +++ b/modules/gdscript/language_server/gdscript_text_document.cpp @@ -416,6 +416,7 @@ GDScriptTextDocument::~GDScriptTextDocument() { void GDScriptTextDocument::sync_script_content(const String &p_path, const String &p_content) { String path = GDScriptLanguageProtocol::get_singleton()->get_workspace()->get_file_path(p_path); GDScriptLanguageProtocol::get_singleton()->get_workspace()->parse_script(path, p_content); + EditorFileSystem::get_singleton()->update_file(path); } void GDScriptTextDocument::show_native_symbol_in_editor(const String &p_symbol_id) {