Skip to content

Commit

Permalink
Show issue with completions type printing
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Jan 10, 2025
1 parent 9dcffb9 commit 5e4c6bd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/test-dirs/completion/issue-lsp-503.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

$ cat >test.ml <<'EOF'
> [1;2]|>List.ma
> EOF

We complete the name of the object

$ $MERLIN single complete-prefix -position 1:14 -prefix "List.ma" \
> -filename test.ml < test.ml
{
"class": "return",
"value": {
"entries": [
{
"name": "map",
"kind": "Value",
"desc": "('a1 -> 'b1) -> 'a1 list -> 'b1 list",
"info": "",
"deprecated": false
},
{
"name": "mapi",
"kind": "Value",
"desc": "(int -> 'a0 -> 'b0) -> 'a0 list -> 'b0 list",
"info": "",
"deprecated": false
},
{
"name": "map2",
"kind": "Value",
"desc": "('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list",
"info": "",
"deprecated": false
}
],
"context": null
},
"notifications": []
}

0 comments on commit 5e4c6bd

Please sign in to comment.