# edit prediction: Assign providers when client status changes \(\#28919\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a7a7335da4ebeb6ebd5c644f108edf2441f7d77b

Requested commit: a7a7335da4ebeb6ebd5c644f108edf2441f7d77b

Commit: a7a7335da4ebeb6ebd5c644f108edf2441f7d77b

Tree: eb911b4caa682ce72532b7ed1ecd3fdea405fa83

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit prediction: Assign providers when client status changes (#28919)

There was recently a change that caused the Zed Edit Prediction provider
to only be assigned when the client was connected. However, this check
happened too early, resulting in restored buffers never getting
registered. We'll now subscribe to client status changes and reassign
providers accordingly.

Release Notes:

- edit prediction: Fixed bug disabling prediction in restored buffers
```

## Parents

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

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