Skip to content

Commit 3b41ad0

Browse files
committed
fix position
1 parent 0a681ef commit 3b41ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

analysis/src/Diagnostics.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ let document_syntax ~path =
1818
{
1919
range =
2020
{
21-
start = {line = startline; character = startcol};
22-
end_ = {line = endline; character = endcol};
21+
start = {line = startline - 1; character = startcol};
22+
end_ = {line = endline - 1; character = endcol};
2323
};
2424
message = Res_diagnostics.explain diagnostic;
2525
severity = Error;

0 commit comments

Comments
 (0)