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
This commit is contained in:
Adam Wardell 2023-01-20 19:16:53 -08:00
parent 4db3716d8d
commit e9d8c261a5
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
}