Skip to content

Commit 8b2b51f

Browse files
fix(ls): fix toRange implementation for multiline locations
1 parent a59f410 commit 8b2b51f

File tree

1 file changed

+1
-1
lines changed
  • language-server/src/main/kotlin/tools/samt/ls

1 file changed

+1
-1
lines changed

language-server/src/main/kotlin/tools/samt/ls/Mapping.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ fun DiagnosticMessage.toDiagnostic(): Diagnostic? {
2828
fun SamtLocation.toRange(): Range {
2929
return Range(
3030
Position(start.row, start.col),
31-
Position(start.row, end.col)
31+
Position(end.row, end.col)
3232
)
3333
}

0 commit comments

Comments
 (0)