File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -270,17 +270,13 @@ let newHover ~full:{file; package} ~supportsMarkdownLinks locItem =
270
270
| `Declared ->
271
271
let typeString, docstring = t |> fromType ~docstring in
272
272
typeString :: docstring
273
- | `Constructor {cname = {txt} ; args; docstring} ->
274
- let typeString, docstring = t |> fromType ~docstring in
275
- let argsString =
276
- match args with
277
- | InlineRecord _ | Args [] -> " "
278
- | Args args ->
279
- args
280
- |> List. map (fun (t , _ ) -> Shared. typeToString t)
281
- |> String. concat " , " |> Printf. sprintf " (%s)"
273
+ | `Constructor constructor ->
274
+ let typeString, docstring =
275
+ t |> fromType ~docstring: constructor.docstring
282
276
in
283
- typeString :: Markdown. codeBlock (txt ^ argsString) :: docstring
277
+ typeString
278
+ :: Markdown. codeBlock (CompletionBackEnd. showConstructor constructor)
279
+ :: docstring
284
280
| `Field ->
285
281
let typeString, docstring = t |> fromType ~docstring in
286
282
typeString :: docstring)
You can’t perform that action at this time.
0 commit comments