Commit d63ac3e 1 parent 674790d commit d63ac3e Copy full SHA for d63ac3e
File tree 1 file changed +11
-4
lines changed
update-scripts/rust-analyzer
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,15 @@ let
184
184
} ;
185
185
pluginDefault = default ;
186
186
description =
187
+ let
188
+ globalDescription = ''
189
+ ${ filteredMarkdownDesc }
190
+ '' ;
191
+ in
187
192
if
188
193
enum == null && ( anyOf == null || builtins . all ( subProp : ! ( lib . hasAttr "enum" subProp ) ) anyOf )
189
194
then
190
- ''
191
- ${ filteredMarkdownDesc }
192
- ''
195
+ globalDescription
193
196
else if enum != null then
194
197
assert lib . assertMsg ( anyOf == null ) "enum + anyOf types are not yet handled" ;
195
198
enumDesc enum enumDescriptions
202
205
) "anyOf types may currently only contain a single enum" ;
203
206
lib . head subEnums ;
204
207
in
205
- enumDesc subEnum . enum subEnum . enumDescriptions ;
208
+ if subEnum ? enumDescriptions then
209
+ enumDesc subEnum . enum subEnum . enumDescriptions
210
+ else
211
+ globalDescription ;
212
+
206
213
} ;
207
214
208
215
rustAnalyzerOptions = builtins . map (
You can’t perform that action at this time.
0 commit comments