Skip to content

Commit 326599e

Browse files
committed
Formatting of the output of references command.
1 parent d431549 commit 326599e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

analysis/src/Commands.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ let references state ~file ~line ~col ~extra ~package =
199199
@ acc)
200200
[]
201201
in
202-
"[\n" ^ (allLocs |> String.concat ",\n") ^ "]"
202+
"[\n" ^ (allLocs |> String.concat ",\n") ^ "\n]"
203203

204204
let references ~path ~line ~col =
205205
let state = TopTypes.empty () in

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ References tests/src/References.res 0:4
22
[
33
{"uri": "References.res", "range": {"start": {"line": 7, "character": 8}, "end": {"line": 7, "character": 9}}},
44
{"uri": "References.res", "range": {"start": {"line": 3, "character": 8}, "end": {"line": 3, "character": 9}}},
5-
{"uri": "References.res", "range": {"start": {"line": 0, "character": 4}, "end": {"line": 0, "character": 5}}}]
5+
{"uri": "References.res", "range": {"start": {"line": 0, "character": 4}, "end": {"line": 0, "character": 5}}}
6+
]
67

0 commit comments

Comments
 (0)