zed icon indicating copy to clipboard operation
zed copied to clipboard

Add autosave with delay

Open Dageus opened this issue 1 year ago • 2 comments

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 avatar May 02 '24 23:05 Dageus

@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.

ConradIrwin avatar May 08 '24 02:05 ConradIrwin

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.

Dageus avatar May 08 '24 05:05 Dageus

Is this going to be merged soon?

Linyuqiz avatar May 12 '24 15:05 Linyuqiz