Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit a8a9235

Browse files
committedApr 17, 2021
Add test for "Autocomplete: fix issue where -> autocomplete was overruling .".
1 parent 067cb02 commit a8a9235

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎test/src/Complete.res

+2
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ module ForAuto = {
3737
let fa:ForAuto.t = 34
3838
//^com fa->
3939

40+
//^com "hello"->Js.Dict.u
41+

‎test/src/expected/Complete.res.txt

+15
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,18 @@ Complete src/Complete.res 36:2
415415
"documentation": {"kind": "markdown", "value": "\nComplete.res:34"}
416416
}]
417417

418+
Complete src/Complete.res 38:2
419+
[{
420+
"label": "unsafeGet",
421+
"kind": 12,
422+
"tags": [],
423+
"detail": "(t<'a>, key) => 'a",
424+
"documentation": {"kind": "markdown", "value": "`unsafeGet dict key` return the value if the `key` exists, otherwise an **undefined** value is returned. Must be used only when the existence of a key is certain. \\(i.e. when having called `keys` function previously.\n\n```ml\nArray.iter (fun key -> Js.log (Js_dict.unsafeGet dic key)) (Js_dict.keys dict) \n```\n\n\n\njs_dict.mli:42"}
425+
}, {
426+
"label": "unsafeDeleteKey",
427+
"kind": 12,
428+
"tags": [],
429+
"detail": "(. t<string>, string) => unit",
430+
"documentation": {"kind": "markdown", "value": "Experimental internal function\n\n\n\n\njs_dict.mli:63"}
431+
}]
432+

0 commit comments

Comments
 (0)
This repository has been archived.