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
..
2020-08-24 13:29:10 +02:00
2020-09-12 12:11:16 +02:00
2020-09-13 17:28:22 +00:00
2020-09-13 17:28:22 +00:00
2020-09-13 17:28:22 +00:00
⬆️ expect-test
2020-08-28 14:47:14 +02:00
2020-09-03 13:37:36 +02:00