File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ unreleased
1212 - Add reproduction case for #1763 but it is not failing anymore (#2021 )
1313 - Add a test to reproduce [ Locate command fails on multi-line type definitions] ( #1987 ) (#2020 )
1414 - Add a regression test for issue #2019 (#2030 )
15+ - Add a test reproducing the locate command failure when editor position is in another declaration (#2033 )
1516
1617merlin 5.6.1
1718============
Original file line number Diff line number Diff line change 1+ $ cat > main. mli << EOF
2+ > type typ =
3+ > | A
4+ > | B
5+ > | C
6+ >
7+ > val string_of_type : typ -> string
8+ > EOF
9+
10+ Work as intended:
11+ $ $ MERLIN single locate -prefix typ -position 5 : 0 -context unknown -look-for mli -filename main. mli < main. mli
12+ {
13+ " class" : " return" ,
14+ " value" : {
15+ " file" : " $ TESTCASE_ROOT /main.mli" ,
16+ " pos" : {
17+ " line" : 1 ,
18+ " col" : 5
19+ }
20+ },
21+ " notifications" : []
22+ }
23+
24+ TODO: trying to find the `typ` declaration with the cursor positioned on a signature item located after the type definition fails:
25+ $ $ MERLIN single locate -prefix typ -position 6 : 10 -context unknown -look-for mli -filename main. mli < main. mli
26+ {
27+ " class" : " return" ,
28+ " value" : " Already at definition point" ,
29+ " notifications" : []
30+ }
You can’t perform that action at this time.
0 commit comments