# edit prediction: Exclude whole-module definitions from context \(\#44414\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0a816cbc87a4c513c429ee025caeac1082988335

Requested commit: 0a816cbc87a4c513c429ee025caeac1082988335

Commit: 0a816cbc87a4c513c429ee025caeac1082988335

Tree: f3de5bbcd384ab6c02a7c906f40bbbbaed5f218f

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit prediction: Exclude whole-module definitions from context (#44414)

For qualified identifiers we end up requesting both the definition of
the module and the item within it, but we only want the latter. At the
moment, we can't skip the request altogether, because we can't tell them
apart from the highlights query. However, we can tell from the target
range length, because it should be small for individual definitions as
it only covers their name, not the whole body.

Release Notes:

- N/A
```

## Parents

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

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