# Avoid saving buffer if it's neither dirty nor in conflict · gitcafe/zed

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

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

Visibility: public

Requested revision: b687aec9d9f79ae7428fc2c7cc0a48d53bb9652e

Requested commit: b687aec9d9f79ae7428fc2c7cc0a48d53bb9652e

Commit: b687aec9d9f79ae7428fc2c7cc0a48d53bb9652e

Tree: 54204fbeb43828088cb3607ea347cb4c535de7a6

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Avoid saving buffer if it's neither dirty nor in conflict

However, keep emitting `Saved` events so that the language server
is notified and can perform tasks related to saving (e.g., running
`cargo check` in the case of rust-analyzer).

```

## Parents

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

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