소스 검색

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
Adam Wardell 2 년 전
부모
커밋
e9d8c261a5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      modules/gdscript/language_server/gdscript_text_document.cpp

+ 1 - 0
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);
 	}
 }