# project: Set completion to undocumented if text empty \(\#11207\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 73d0600ad2bbbd724c910025259e7f8fdb9e4c33

Requested commit: 73d0600ad2bbbd724c910025259e7f8fdb9e4c33

Commit: 73d0600ad2bbbd724c910025259e7f8fdb9e4c33

Tree: 8423a3825bd33ced76ecdbac29f0de8bef345809

Author: Thorsten Ball

Committer: GitHub

## Message

```
project: Set completion to undocumented if text empty (#11207)

I think the previous code was missing a `return` in there because it
always overwrote the `completion.documentation` field, even if the
`text.is_empty()` is true.

Release Notes:

- N/A
```

## Parents

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

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