# editor: Limit snippet query range instead of collecting from buffer start \(\#39617\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 80727a03bf2be92de046b2fb890f4eeb1224b253

Requested commit: 80727a03bf2be92de046b2fb890f4eeb1224b253

Commit: 80727a03bf2be92de046b2fb890f4eeb1224b253

Tree: 78b19f10d145b362c246320f1b91d8bab4e34bc6

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Limit snippet query range instead of collecting from buffer start (#39617)

Fixes hang when computing query for snippet completions when working
with really large buffers.

Release Notes:

- N/A
```

## Parents

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

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