From a2bc44b0f094b7aab601662eb9cd600d62824bec Mon Sep 17 00:00:00 2001 From: Pascal Honegger Date: Sun, 7 May 2023 16:24:25 +0200 Subject: [PATCH] fix(ls): fix toRange implementation for multiline locations --- language-server/src/main/kotlin/tools/samt/ls/Mapping.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language-server/src/main/kotlin/tools/samt/ls/Mapping.kt b/language-server/src/main/kotlin/tools/samt/ls/Mapping.kt index 710a3507..4de60438 100644 --- a/language-server/src/main/kotlin/tools/samt/ls/Mapping.kt +++ b/language-server/src/main/kotlin/tools/samt/ls/Mapping.kt @@ -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) ) }