# Do not resubscribe for Copilot logs events \(\#3014\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1f1c669673e231a006f10f9878e8d228151ad582

Requested commit: 1f1c669673e231a006f10f9878e8d228151ad582

Commit: 1f1c669673e231a006f10f9878e8d228151ad582

Tree: 733a8c07f2d145c7e043dfb65c8191e8bcf6b602

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Do not resubscribe for Copilot logs events (#3014)

Last follow-up of https://github.com/zed-industries/zed/pull/3002
Fixes
https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1695281196667609

Copilot sends multiple events about its LSP server readiness, not
necessarily recreating the server from scratch (e.g. due to re-sign in
action). Avoid re-adding same log subscriptions on the same LSP server,
which causes panics.

Release Notes:

- N/A
```

## Parents

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

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

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