# lsp: Skip computation of \`edits_since_save\` when there are no disk based diagnostics \(\#23269\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 10f358633b0eac62468e40976bb3e7a7adcd34e7

Requested commit: 10f358633b0eac62468e40976bb3e7a7adcd34e7

Commit: 10f358633b0eac62468e40976bb3e7a7adcd34e7

Tree: e1dfd2f19fe38bc4b001577bb7597c65fc2cffa1

Author: Michael Sloan

Committer: GitHub

## Message

```
lsp: Skip computation of `edits_since_save` when there are no disk based diagnostics (#23269)

Thought of this improvement while @ConradIrwin and I were looking into
whether this code is misbehaving. It seems not to be.

Release Notes:

- N/A
```

## Parents

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

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