diff options
author | Jaehwang Jung <tomtomjhj@gmail.com> | 2024-03-02 23:21:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 15:21:53 +0100 |
commit | dc8c086c7e73a9035c34be6416e7c465d61edc0e (patch) | |
tree | 1245199c87904a96e2d37ac14893a1cb11a7ce51 /runtime/syntax/java.vim | |
parent | 0d553c83474b8d024d74e9f66b77dc62380241ef (diff) | |
download | rneovim-dc8c086c7e73a9035c34be6416e7c465d61edc0e.tar.gz rneovim-dc8c086c7e73a9035c34be6416e7c465d61edc0e.tar.bz2 rneovim-dc8c086c7e73a9035c34be6416e7c465d61edc0e.zip |
fix(lsp): directly rename the existing buffers when renaming (#27690)
Problem:
`vim.lsp.util.rename()` deletes the buffers that are affected by
renaming. This has undesireable side effects. For example, when renaming
a directory, all buffers under that directory are deleted and windows
displaying those buffers are closed. Also, buffer options may change
after renaming.
Solution:
Rename the buffers with :saveas.
An alternative approach is to record all the relevant states and restore
it after renaming, but that seems to be more complex. In fact, the older
version was attempting to restore the states but only partially and
incorrectly.
Diffstat (limited to 'runtime/syntax/java.vim')
0 files changed, 0 insertions, 0 deletions