aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-09-17 14:08:09 +0100
committerGitHub <[email protected]>2020-09-17 14:08:09 +0100
commitd84c18d989d07785127d00395b929fc69eca19e6 (patch)
tree86aab2ab29a6f3b86dcd28f1bb0649badfcc30d7 /crates/hir_ty
parent933fc1eb1837a902def314d400c0f3a6dd2c1283 (diff)
parent29c34213916f8be84d5c715899e5e0629e36adac (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_ty')
0 files changed, 0 insertions, 0 deletions