Commit a59461b
project: Handle capabilities parse for more methods when registerOptions doesn't exist (zed-industries#36984)
Closes zed-industries#36938
Follow up to zed-industries#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 1 parent d8f95ce commit a59461b
1 file changed
+27
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11778 | 11778 | | |
11779 | 11779 | | |
11780 | 11780 | | |
11781 | | - | |
11782 | | - | |
11783 | | - | |
11784 | | - | |
11785 | | - | |
11786 | | - | |
11787 | | - | |
11788 | | - | |
11789 | | - | |
11790 | | - | |
11791 | | - | |
| 11781 | + | |
| 11782 | + | |
| 11783 | + | |
| 11784 | + | |
| 11785 | + | |
| 11786 | + | |
| 11787 | + | |
| 11788 | + | |
| 11789 | + | |
11792 | 11790 | | |
11793 | 11791 | | |
11794 | 11792 | | |
| |||
11810 | 11808 | | |
11811 | 11809 | | |
11812 | 11810 | | |
11813 | | - | |
11814 | | - | |
11815 | | - | |
11816 | | - | |
11817 | | - | |
11818 | | - | |
11819 | | - | |
11820 | | - | |
11821 | | - | |
11822 | | - | |
| 11811 | + | |
| 11812 | + | |
| 11813 | + | |
| 11814 | + | |
| 11815 | + | |
| 11816 | + | |
| 11817 | + | |
| 11818 | + | |
| 11819 | + | |
11823 | 11820 | | |
11824 | 11821 | | |
11825 | 11822 | | |
| |||
11904 | 11901 | | |
11905 | 11902 | | |
11906 | 11903 | | |
11907 | | - | |
11908 | | - | |
11909 | | - | |
11910 | | - | |
11911 | | - | |
11912 | | - | |
11913 | | - | |
11914 | | - | |
11915 | | - | |
11916 | | - | |
| 11904 | + | |
| 11905 | + | |
| 11906 | + | |
| 11907 | + | |
| 11908 | + | |
| 11909 | + | |
| 11910 | + | |
| 11911 | + | |
| 11912 | + | |
11917 | 11913 | | |
11918 | 11914 | | |
11919 | 11915 | | |
| |||
0 commit comments