Skip to content

Commit a2bc44b

Browse files
fix(ls): fix toRange implementation for multiline locations
1 parent ecdc5df commit a2bc44b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • language-server/src/main/kotlin/tools/samt/ls

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)