diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-09-17 14:08:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-17 14:08:09 +0100 |
commit | d84c18d989d07785127d00395b929fc69eca19e6 (patch) | |
tree | 86aab2ab29a6f3b86dcd28f1bb0649badfcc30d7 /crates/hir_def/Cargo.toml | |
parent | 933fc1eb1837a902def314d400c0f3a6dd2c1283 (diff) | |
parent | 29c34213916f8be84d5c715899e5e0629e36adac (diff) |
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 <[email protected]>
Diffstat (limited to 'crates/hir_def/Cargo.toml')
0 files changed, 0 insertions, 0 deletions