Autosave files on close, when setting is `afterDelay` (#36929)

Closes https://github.com/zed-industries/zed/issues/12149
Closes #35524

Release Notes:

- Improved autosave behavior, to prevent a confirmation dialog when
quickly closing files and using the `afterDelay` setting

---------

Co-authored-by: MrSubidubi <finn@zed.dev>
c54e294965itsaphel committed on 9/17/2025, 1:08:29 PM· committed by GitHubparent8683488
5 files changedLine totals unavailable