Skip to content

Commit

Permalink
fix: reduce the end range to uint32.high follow the lsp spec to fix f…
Browse files Browse the repository at this point in the history
…ormat (#267)
  • Loading branch information
NamPNQ authored Dec 13, 2024
1 parent cc2ef41 commit db19b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit db19b53

Please sign in to comment.