Skip to content

Commit

Permalink
fix(ls): fix toRange implementation for multiline locations
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalHonegger committed May 7, 2023
1 parent a59f410 commit 8b2b51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language-server/src/main/kotlin/tools/samt/ls/Mapping.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ fun DiagnosticMessage.toDiagnostic(): Diagnostic? {
fun SamtLocation.toRange(): Range {
return Range(
Position(start.row, start.col),
Position(start.row, end.col)
Position(end.row, end.col)
)
}

0 comments on commit 8b2b51f

Please sign in to comment.