Skip to content

Commit 46a4985

Browse files
authored
Merge pull request #2009 from Lucccyo/sig_help_let_in_binding
Signature-help should trigger on unfinished `let ... in` bindings
2 parents 0780c58 + 844ab7b commit 46a4985

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ unreleased
1111
- Add a test to ensure the code fragment exhibited in issue #1118 no longer makes Merlin crash (#1996)
1212
- Add a test case illustrating how a snippet produces two unrelated errors in issue #2000. (#2003)
1313
- Add a test reproducing issue #1983 where `document` command which sometime concatenates consecutive variants and labels (#2005)
14+
- Signature-help should trigger on unfinished `let ... in` bindings (#2009)
15+
1416

1517
merlin 5.6
1618
==========
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
$ cat > test1.ml <<'EOF'
2+
> let _ =
3+
> let f = List.map in
4+
> let _ = 5 in
5+
> 7
6+
> EOF
7+
8+
$ $MERLIN single signature-help -position 2:17 -filename test1 < test1.ml | jq '.value.signatures[0].label'
9+
"List.map : ('a -> 'b) -> 'a list -> 'b list"
10+
11+
FIXME: Signature-help does not trigger on unfinished let ... in bindings.
12+
$ cat > test2.ml <<'EOF'
13+
> let _ =
14+
> let f = List.map
15+
> let _ = 5 in
16+
> 7
17+
> EOF
18+
19+
$ $MERLIN single signature-help -position 2:17 -filename test2 < test2.ml | jq '.value.signatures[0].label'
20+
null

0 commit comments

Comments
 (0)