We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 415a199 commit 35a11ecCopy full SHA for 35a11ec
analysis/src/SignatureHelp.ml
@@ -484,12 +484,18 @@ let signatureHelp ~path ~pos ~currentFile ~debug ~allowForConstructorPayloads =
484
let argCount = !unlabelledArgCount in
485
unlabelledArgCount := argCount + 1;
486
match (lbl, argLabel) with
487
- | Asttypes.Nolabel, Asttypes.Nolabel
+ | ( Asttypes.Optional {txt = l1},
488
+ Asttypes.Optional {txt = l2} )
489
+ when l1 = l2 ->
490
+ true
491
+ | ( Labelled {txt = l1},
492
+ Labelled {txt = l2} )
493
494
495
+ | Nolabel, Nolabel
496
when paramArgCount = argCount ->
497
true
- | _ ->
- Asttypes.same_arg_label lbl
- argLabel)
498
+ | _ -> false)
499
with
500
| None ->
501
{Protocol.kind = "markdown"; value = ""}
0 commit comments