# Clear old diagnostics when restarting a language server \(\#2509\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0e332b5f94bf46e981306de575eab43e005e113e

Requested commit: 0e332b5f94bf46e981306de575eab43e005e113e

Commit: 0e332b5f94bf46e981306de575eab43e005e113e

Tree: 7b7cdefda941324b9306ac59d2250ad2e03c5ed4

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Clear old diagnostics when restarting a language server (#2509)

Previously, restarting a language server did not clear out the
diagnostics that were published by that server. Those diagnostics would
stick around forever.

Release Notes:

* Fixed a bug where restarting a language server would sometimes leave
buffers with stale diagnostics associated with that server.
```

## Parents

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

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

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