# assistant: Show a warning indicator when the user needs to run \`cargo doc\` \(\#14262\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 906688f012d870e657126a196e000449c0cd325d

Requested commit: 906688f012d870e657126a196e000449c0cd325d

Commit: 906688f012d870e657126a196e000449c0cd325d

Tree: dd7be7f70e845acdfade7da4a9625c7ea0f75a6b

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant: Show a warning indicator when the user needs to run `cargo doc` (#14262)

This PR updates the `/docs` slash command to show a warning to the user
if a crate's docs cannot be indexed due to the target directory not
containing docs:

<img width="782" alt="Screenshot 2024-07-11 at 5 11 46 PM"
src="https://github.com/user-attachments/assets/2f54f7a1-97f4-4d2d-b51f-57ba31e50a2f">

Release Notes:

- N/A
```

## Parents

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

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