# Tolerate language servers reporting non-monotonic buffer versions · gitcafe/zed

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

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

Visibility: public

Requested revision: 7a35ea7b2579b4ff0fa7f7349369e3d4bc760b8e

Requested commit: 7a35ea7b2579b4ff0fa7f7349369e3d4bc760b8e

Commit: 7a35ea7b2579b4ff0fa7f7349369e3d4bc760b8e

Tree: 20ae059a6d75e3ee27d647daebe186433d117629

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Tolerate language servers reporting non-monotonic buffer versions

This isn't perfect but we'll retain up to 10 old versions just in case there
are race conditions in the language server. We haven't seen this in the wild
but we're concerned about diagnostic reporting racing with code action
resolution.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

```

## Parents

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

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