Add autosave with delay
Implemented autosave functionality with a delay, which now refrains from formatting the code upon triggering unless the user manually saves it. Additionally, enhanced documentation for the format_on_save setting has been added. This resolves the issue where autosave with delay would inadvertently format the code, disrupting the user experience, as reported in the corresponding issue.
Release Notes:
- Fixed a bug where autosave after_delay would auto-format the buffer (#9787).
@Dageus Thanks for this!
I think we need to only ignore the format_on_save parameter if this was triggered by auto-save, so we need to put the if statement in pub fn autosave_item( instead.
Thank you! I was unsure whether I was checking the auto save parameter in the correct place, so I will fix this asap and correct the PR.
Is this going to be merged soon?