# rustdoc: Don't start indexing if a crate is already being indexed \(\#13149\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0c28b6a11afde43ec20da59521423714123aca72

Requested commit: 0c28b6a11afde43ec20da59521423714123aca72

Commit: 0c28b6a11afde43ec20da59521423714123aca72

Tree: fc73ef203664803d75a3d0d7a1767e6416b38121

Author: Marshall Bowers

Committer: GitHub

## Message

```
rustdoc: Don't start indexing if a crate is already being indexed (#13149)

This PR updates the rustdoc indexing to not start indexing a crate that
is already being indexed.

Currently the indexing of a crate might get continuously interrupted by
the user's typing, resulting in thrashing of the indexing task and never
indexing the crate in its entirety.

Release Notes:

- N/A
```

## Parents

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

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