Skip to content

Commit 9ca2eed

Browse files
committed
Tweak test and add a new one.
1 parent e1e19da commit 9ca2eed

File tree

2 files changed

+45
-6
lines changed

2 files changed

+45
-6
lines changed

analysis/tests/src/Completion.res

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,4 +401,7 @@ let header1 = `
401401
let header2 = `
402402
color: ${red};
403403
background-color: ${red}; `
404-
// ^com
404+
// ^com
405+
406+
// let _ = `color: ${r
407+
// ^com

analysis/tests/src/expected/Completion.res.txt

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,11 +1534,47 @@ Completable: Cpath Value[red]
15341534
"documentation": null
15351535
}]
15361536

1537-
Complete src/Completion.res 402:24
1538-
posCursor:[402:24] posNoWhite:[402:23] Found expr:[400:14->402:31]
1537+
Complete src/Completion.res 402:25
1538+
posCursor:[402:25] posNoWhite:[402:24] Found expr:[400:14->402:31]
15391539
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->402:27], ...[402:27->402:30])
1540-
posCursor:[402:24] posNoWhite:[402:23] Found expr:[400:14->402:27]
1540+
posCursor:[402:25] posNoWhite:[402:24] Found expr:[400:14->402:27]
15411541
Pexp_apply ...__ghost__[0:-1->0:-1] (...[400:14->402:22], ...[402:24->402:27])
1542-
Completable: CnamedArg(Value[^], "", [])
1543-
[]
1542+
posCursor:[402:25] posNoWhite:[402:24] Found expr:[402:24->402:27]
1543+
Pexp_ident red:[402:24->402:27]
1544+
Completable: Cpath Value[red]
1545+
[{
1546+
"label": "red",
1547+
"kind": 12,
1548+
"tags": [],
1549+
"detail": "string",
1550+
"documentation": null
1551+
}]
1552+
1553+
Complete src/Completion.res 405:22
1554+
posCursor:[405:22] posNoWhite:[405:21] Found expr:[405:11->408:0]
1555+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[405:11->405:22], ...[408:0->408:0])
1556+
posCursor:[405:22] posNoWhite:[405:21] Found expr:[405:11->405:22]
1557+
Pexp_apply ...__ghost__[0:-1->0:-1] (...[405:11->405:19], ...[405:21->405:22])
1558+
posCursor:[405:22] posNoWhite:[405:21] Found expr:[405:21->405:22]
1559+
Pexp_ident r:[405:21->405:22]
1560+
Completable: Cpath Value[r]
1561+
[{
1562+
"label": "red",
1563+
"kind": 12,
1564+
"tags": [],
1565+
"detail": "string",
1566+
"documentation": null
1567+
}, {
1568+
"label": "retAA",
1569+
"kind": 12,
1570+
"tags": [],
1571+
"detail": "unit => aa",
1572+
"documentation": null
1573+
}, {
1574+
"label": "r",
1575+
"kind": 12,
1576+
"tags": [],
1577+
"detail": "rAlias",
1578+
"documentation": null
1579+
}]
15441580

0 commit comments

Comments
 (0)