From db19b532ec47011c018d1e136bad703e69643538 Mon Sep 17 00:00:00 2001 From: Nam PHAM Date: Fri, 13 Dec 2024 16:45:44 +0100 Subject: [PATCH] fix: reduce the end range to uint32.high follow the lsp spec to fix format (#267) --- routes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes.nim b/routes.nim index 859bccc..5efd1c6 100644 --- a/routes.nim +++ b/routes.nim @@ -697,7 +697,7 @@ proc format*( let formattedText = readFile(filePath) let fullRange = Range( start: Position(line: 0, character: 0), - `end`: Position(line: int.high, character: int.high), + `end`: Position(line: int(uint32.high), character: int(uint32.high)), ) some TextEdit(range: fullRange, newText: formattedText)