rust/crates/rust-analyzer/tests/rust-analyzer
Josh Stone 29c3421391 Don't return any TextEdit if formatting is unchanged
I found that `textDocument/formatting` was always returning a full
`TextEdit` replacement, even when there are no changes, which caused Vim
(w/ vim-lsp) to always indicate a modified buffer after formatting. We
can easily compare whether there were changes and return `null` if not,
so the client knows there's nothing to do.
2020-09-16 10:05:41 -07:00
..
main.rs Don't return any TextEdit if formatting is unchanged 2020-09-16 10:05:41 -07:00
support.rs Cleanup heavy tests 2020-08-25 19:26:45 +02:00
testdir.rs