Don't save deleted files (#24171)

We now treat new files that have no content as not-dirty. This fixes the
git diff view when deleted files are present.

It also fixes a long-standing bug where `zed RAEDME` and then closing
the tab would prompt for "unsaved changes" when there were none.

Release Notes:

- Fixed a bug where closing an empty, named, file would warn about
unsaved content.
9a22ef2fd5Conrad Irwin committed on 2/4/2025, 6:31:34 AM· committed by GitHubparent66e0898
2 files changedLine totals unavailable