# edit prediction: Do not request a completion if edits can be interpolated \(\#23908\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 48dba9a9d9c94c5af0008150eae93c256d7ccad9

Requested commit: 48dba9a9d9c94c5af0008150eae93c256d7ccad9

Commit: 48dba9a9d9c94c5af0008150eae93c256d7ccad9

Tree: 32d497eaabe5e53486809145511bff2c16750877

Author: Bennet Bo Fenner

Committer: GitHub

## Message

````
edit prediction: Do not request a completion if edits can be interpolated (#23908)

This ensures that we do not fetch a new completion when the edits of the
user can be interpolated.
E.g. (suggestions in `[]`):
```rust
s[truct Person {}]
```
Then if i type out `truct` we will not fetch a new completion

Release Notes:

- N/A
````

## Parents

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

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