File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -1476,5 +1476,6 @@ let processCompletable ~debug ~package ~scope ~env ~pos ~forHover
1476
1476
in
1477
1477
labels
1478
1478
|> List. filter (fun (name , _t ) ->
1479
- Utils. startsWith name prefix && not (List. mem name identsSeen))
1479
+ Utils. startsWith name prefix
1480
+ && (forHover || not (List. mem name identsSeen)))
1480
1481
|> List. map mkLabel
Original file line number Diff line number Diff line change @@ -348,4 +348,7 @@ let _ = <div name="" />
348
348
// ^hov
349
349
350
350
// let _ = FAO.forAutoObject["age"]
351
- // ^hov
351
+ // ^hov
352
+
353
+ // let _ = ff(~opt1=3)
354
+ // ^hov
Original file line number Diff line number Diff line change @@ -1360,3 +1360,19 @@ Pexp_ident FAO.forAutoObject:[349:11->349:28]
1360
1360
Completable: Cpath Value[FAO, forAutoObject]
1361
1361
{"contents": "```rescript\n{\"age\": int, \"forAutoLabel\": FAR.forAutoRecord}\n```"}
1362
1362
1363
+ Hover tests/src/Completion.res 352:17
1364
+ Nothing at that position. Now trying to use completion.
1365
+ posCursor:[352:17] posNoWhite:[352:16] Found expr:[352:11->352:22]
1366
+ Pexp_apply ...[352:11->352:13] (~opt1352:15->352:19=...[352:20->352:21])
1367
+ Completable: CnamedArg(Value[ff], opt1, [opt1])
1368
+ Found type for function (
1369
+ ~opt1: int=?,
1370
+ ~a: int,
1371
+ ~b: int,
1372
+ unit,
1373
+ ~opt2: int=?,
1374
+ unit,
1375
+ ~c: int,
1376
+ ) => int
1377
+ {"contents": "```rescript\noption<int>\n```"}
1378
+
You can’t perform that action at this time.
0 commit comments