File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -96,3 +96,15 @@ let fnTakingOtherRecord = (r: otherRecord) => {
96
96
97
97
// let _ = fnTakingOtherRecord({otherField: })
98
98
// ^com
99
+
100
+ type recordWithOptionalField = {
101
+ someField : int ,
102
+ someOptField ?: string ,
103
+ }
104
+
105
+ let fnTakingRecordWithOptionalField = (r : recordWithOptionalField ) => {
106
+ ignore (r )
107
+ }
108
+
109
+ // let _ = fnTakingRecordWithOptionalField({someOptField: })
110
+ // ^com
Original file line number Diff line number Diff line change @@ -427,3 +427,23 @@ Completable: Cexpression CArgument Value[fnTakingOtherRecord]($0)->recordField(o
427
427
"insertTextFormat": 2
428
428
}]
429
429
430
+ Complete src/CompletionExpressions.res 108:57
431
+ posCursor:[108:57] posNoWhite:[108:56] Found expr:[108:11->108:60]
432
+ Pexp_apply ...[108:11->108:42] (...[108:43->108:60])
433
+ Completable: Cexpression CArgument Value[fnTakingRecordWithOptionalField]($0)->recordField(someOptField)
434
+ [{
435
+ "label": "None",
436
+ "kind": 4,
437
+ "tags": [],
438
+ "detail": "string",
439
+ "documentation": null
440
+ }, {
441
+ "label": "Some(_)",
442
+ "kind": 4,
443
+ "tags": [],
444
+ "detail": "string",
445
+ "documentation": null,
446
+ "insertText": "Some(${1:_})",
447
+ "insertTextFormat": 2
448
+ }]
449
+
You can’t perform that action at this time.
0 commit comments