# project: Handle capabilities parse for more methods when registerOptions doesn't exist \(\#36984\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ea347b0aa11c13b0acbccfc015e0c23c790811e3

Requested commit: ea347b0aa11c13b0acbccfc015e0c23c790811e3

Commit: ea347b0aa11c13b0acbccfc015e0c23c790811e3

Tree: fc82f102d45e97d72eb301fea777da14375b9e83

Author: Smit Barmase

Committer: GitHub

## Message

```
project: Handle capabilities parse for more methods when registerOptions doesn't exist (#36984)

Closes #36938

Follow up to https://github.com/zed-industries/zed/pull/36554

When `registerOptions` is `None`, we should fall back instead of
skipping capability registration.

1. `Option<OneOf<bool, T>>`, where `T` is struct – handled in the
attached PR ✅
2. `Option<T>`, where `T` is an enum that can be `Simple(bool)` or
`Options(S)` – this PR ✅
3. `Option<T>`, where `T` is struct – we should fall back to default
values for these options ⚠️

Release Notes:

- Fixed an issue where hover popovers would not appear in language
servers like Java.
```

## Parents

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

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