zed/crates/project
Antonio Scandurra 45eb0e7889 Clip invalid edits from LSP instead of reporting an error
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.
2022-07-26 08:43:27 +02:00
..
src Clip invalid edits from LSP instead of reporting an error 2022-07-26 08:43:27 +02:00
Cargo.toml Add unit test to ensure changing enable_language_server works 2022-06-09 10:48:06 +02:00