# Fix edit prediction disablement with \`"disable_ai": true\` setting \(\#35513\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 899bc8a8fd9c82565cc1b37659b226587b699929

Requested commit: 899bc8a8fd9c82565cc1b37659b226587b699929

Commit: 899bc8a8fd9c82565cc1b37659b226587b699929

Tree: f4e7460a9ee5fb3d5eef235d93b65693cdd631be

Author: Michael Sloan

Committer: GitHub

## Message

```
Fix edit prediction disablement with `"disable_ai": true` setting (#35513)

Even after #35327 edit predictions were still being queried and shown
after setting `"disable_ai": true`

Also moves `DisableAiSettings` to the `project` crate so that it gets
included in tests via existing use of `Project::init_settings(cx)`.

Release Notes:

- Fixed `"disable_ai": true` setting disabling edit predictions.
```

## Parents

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

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