diff options
author | Rindbee <idleman@yeah.net> | 2022-10-04 13:58:58 +0800 |
---|---|---|
committer | Rindbee <idleman@yeah.net> | 2022-10-04 15:38:57 +0800 |
commit | ab0314938ed163af6a2167a8d40b2dd1ca9f4603 (patch) | |
tree | f510b241be6cea5c769b21cc2ddda7569390e872 /modules/gdscript/language_server/gdscript_text_document.h | |
parent | 34e0e7de58ba4e7f2e4954266de8f13d5eb44c56 (diff) | |
download | redot-engine-ab0314938ed163af6a2167a8d40b2dd1ca9f4603.tar.gz |
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`.
Diffstat (limited to 'modules/gdscript/language_server/gdscript_text_document.h')
-rw-r--r-- | modules/gdscript/language_server/gdscript_text_document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.h b/modules/gdscript/language_server/gdscript_text_document.h index 87bc08a34e..456c7d71fe 100644 --- a/modules/gdscript/language_server/gdscript_text_document.h +++ b/modules/gdscript/language_server/gdscript_text_document.h @@ -45,6 +45,7 @@ protected: void didOpen(const Variant &p_param); void didClose(const Variant &p_param); void didChange(const Variant &p_param); + void willSaveWaitUntil(const Variant &p_param); void didSave(const Variant &p_param); void sync_script_content(const String &p_path, const String &p_content); |