Explorar el Código

Make LSP update the filesystem of changed scripts

This updates global classes and exposes base member variables.
Fixes #39713
Francois Belair hace 4 años
padre
commit
b16bb33a5b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      modules/gdscript/language_server/gdscript_text_document.cpp

+ 1 - 0
modules/gdscript/language_server/gdscript_text_document.cpp

@@ -400,6 +400,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) {