-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit aa273e3
committed
fix: return empty response to textDocument/formatting if no changes
Do not send "edits" if the content remains unchanged after LSP
formatting. Otherwise, Neovim reports an unsaved buffer even when no
actual changes were made1 parent 802e13c commit aa273e3
2 files changed
+5
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | + | ||
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
24 | 28 |
| |
25 | 29 |
| |
26 | 30 |
| |
|
0 commit comments