diff options
author | Jaehwang Jung <tomtomjhj@gmail.com> | 2024-02-29 01:32:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 17:32:25 +0100 |
commit | 7311958e1238559db7a0b1f490f15f618f51af06 (patch) | |
tree | c4710d1dff4791cd4aba0ffe3560fe5b7f01b205 /runtime/lua/vim/lsp/protocol.lua | |
parent | 2f85bbe61513d12c746641fed6ad07559bd95719 (diff) | |
download | rneovim-7311958e1238559db7a0b1f490f15f618f51af06.tar.gz rneovim-7311958e1238559db7a0b1f490f15f618f51af06.tar.bz2 rneovim-7311958e1238559db7a0b1f490f15f618f51af06.zip |
fix(lsp): remove unnecessary file load/write when renaming (#27621)
Previously rename would unconditionally read the to-be-renamed file from the
disk and write it to the disk. This is redundant in some cases
If the file is not already loaded, it's not attached to lsp client, so nvim
doesn't need to care about this file.
If the file is loaded but has no change, it doesn't need to be written.
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
0 files changed, 0 insertions, 0 deletions