# editor: Fix \`edit_predictions_disabled_in\` not disabling predictions \(\#36469\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 47e1d4511cda45a2044435523209282ffd2f8627

Requested commit: 47e1d4511cda45a2044435523209282ffd2f8627

Commit: 47e1d4511cda45a2044435523209282ffd2f8627

Tree: fca4cddc0b31159525d98eaba506371e9f451f25

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix `edit_predictions_disabled_in` not disabling predictions (#36469)

Closes #25744

Only setting changes and editor init determined whether to show
predictions, so glob patterns and toggles correctly disabled them. On
cursor changes we call `update_visible_edit_prediction`, but we weren’t
discarding predictions when the scope changed. This PR fixes that.

Release Notes:

- Fixed an issue where the `edit_predictions_disabled_in` setting was
ignored in some cases.
```

## Parents

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

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