aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/java.vim
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2024-03-02 23:21:53 +0900
committerGitHub <noreply@github.com>2024-03-02 15:21:53 +0100
commitdc8c086c7e73a9035c34be6416e7c465d61edc0e (patch)
tree1245199c87904a96e2d37ac14893a1cb11a7ce51 /runtime/syntax/java.vim
parent0d553c83474b8d024d74e9f66b77dc62380241ef (diff)
downloadrneovim-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