Implement GDScriptTextDocument::willSaveWaitUntil to clean up outdated documents before saving

Implement `GDScriptTextDocument::willSaveWaitUntil` to clean up outdated documents before saving,
then update the document in `GDScriptTextDocument::didSave`.
This commit is contained in:
Rindbee
2022-10-04 13:58:58 +08:00
parent 34e0e7de58
commit ab0314938e
5 changed files with 59 additions and 58 deletions

View File

@@ -508,6 +508,8 @@ public:
void goto_help(const String &p_desc) { _help_class_goto(p_desc); }
void update_doc(const String &p_name);
void clear_docs_from_script(const Ref<Script> &p_script);
void update_docs_from_script(const Ref<Script> &p_script);
bool can_take_away_focus() const;