From ab0314938ed163af6a2167a8d40b2dd1ca9f4603 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Tue, 4 Oct 2022 13:58:58 +0800 Subject: 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`. --- modules/gdscript/language_server/gdscript_text_document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdscript/language_server/gdscript_text_document.h') 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); -- cgit v1.2.3