This fixes an issue with the Go language server, which reports invalid formatting ranges when there's a missing newline at the end of the file. Specifically, if the buffer is `N` lines long, it will try to insert the newline at `Point(N + 1, 0)`. I confirmed the behavior is the same in VS Code, and they indeed clip the LSP ranges as well.
Antonio Scandurra committed on 7/26/2022, 6:43:27 AMparent9cefeb0
2 files changedLine totals unavailable