# Fix race-condition in autosave \(\#39409\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e4f90b5da2b8a6d2b267edc02b333b7d7908d4d9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e4f90b5da2b8a6d2b267edc02b333b7d7908d4d9

Requested commit: e4f90b5da2b8a6d2b267edc02b333b7d7908d4d9

Commit: e4f90b5da2b8a6d2b267edc02b333b7d7908d4d9

Tree: a99e1bb042bea10eaf7be01255d9499aa21a8954

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix race-condition in autosave (#39409)

This removes a long-standing thing we've done, which is send a `DidSave`
notification to the language server for the clean parts of a
multi-buffer. However, it seems like the intent of that notification is
to tell the language server to reload the file from disk.

As we didn't actually write those files to disk, it seems clearer to not
send this notification; and just remove this whole code-path.

Release Notes:

- Fixed a race where autosave in a multibuffer could cause unsaved
buffers to appear saved
```

## Parents

- [dc6fad965994db8ffcf804650a807b3bedadcb1b](https://git.cafe/gitcafe/zed/commit/dc6fad965994db8ffcf804650a807b3bedadcb1b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e4f90b5da2b8a6d2b267edc02b333b7d7908d4d9?format=markdown)
