rust/crates
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
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Merge #5989 2020-09-16 20:03:41 +00:00
base_db Move most of the logic into the completion module 2020-09-10 01:42:20 +03:00
cfg
flycheck
hir Merge #5971 2020-09-13 17:28:22 +00:00
hir_def Merge #6016 2020-09-17 13:00:25 +00:00
hir_expand Move most of the logic into the completion module 2020-09-10 01:42:20 +03:00
hir_ty Use Ty::apply instead of simple and fix method resolution. 2020-09-17 00:58:41 +08:00
ide Update tests 2020-09-16 17:26:51 +02:00
ide_db Rename record_field_pat to record_pat_field 2020-09-10 18:56:04 +02:00
mbe
parser Rename record_field_pat to record_pat_field 2020-09-10 18:56:04 +02:00
paths
proc_macro_api
proc_macro_srv
proc_macro_test
profile
project_model Add support for custom flycheck commands with JSON project workspaces 2020-09-15 18:51:57 -07:00
rust-analyzer Merge #6017 2020-09-17 13:08:09 +00:00
ssr ⬆️ expect-test 2020-08-28 14:47:14 +02:00
stdx
syntax Add make::glob_use_tree function to create star-only UseTree 2020-09-16 20:33:08 +02:00
test_utils
text_edit Actually assert disjointness 2020-09-03 13:37:36 +02:00
toolchain
tt
vfs Rename the method to avoid false promises 2020-09-10 01:45:49 +03:00
vfs-notify