rust/crates/rust-analyzer
bors[bot] d84c18d989
Merge #6017
6017: Don't return any TextEdit if formatting is unchanged r=jonas-schievink a=cuviper

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.

Co-authored-by: Josh Stone <cuviper@gmail.com>
2020-09-17 13:08:09 +00:00
..
src Merge #6017 2020-09-17 13:08:09 +00:00
tests/rust-analyzer Don't return any TextEdit if formatting is unchanged 2020-09-16 10:05:41 -07:00
build.rs Fix fmt 2020-06-19 02:25:07 +08:00
Cargo.toml Move to vscode-languageclient 7.0.0-next.9 2020-09-02 09:40:59 -04:00