Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
#30 fix diagnostics showing one line after the actual position
Browse files Browse the repository at this point in the history
  • Loading branch information
musab-mah-7 committed Feb 27, 2024
1 parent 9b8e0eb commit 70dde26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundled/tool/common/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def _validate_jac(
diagnostics.append(
Diagnostic(
range=Range(
start=Position(line=loc.first_line, character=loc.col_start),
end=Position(line=loc.last_line, character=loc.col_end),
start=Position(line=loc.first_line - 1, character=loc.col_start),
end=Position(line=loc.last_line - 1, character=loc.col_end),
),
message=msg,
severity=DiagnosticSeverity.Error
Expand Down

0 comments on commit 70dde26

Please sign in to comment.