Fix willRename behavior#2494
Conversation
|
Of course, my bad 😅 If you rename a file from within a neovim plugin that supports willRename LSP integration this neovim plugin will request the LSP renaming BEFORE it actually renames the file. Therefore, the TextDocumentLocator can't find any reference to the new file (as it still doesn't exist) and throws an error "Text Document not found". By the way, I tested the rename feature with both nvim-lsp-file-operations and oil.nvim plugins and both broke with the same error from phpactor lsp server |
|
Have the issue and the solution become clear? |
Rename only the original reference as described in WillRenameFiles LSP specifications

Rename only the original reference as described in WillRenameFiles LSP specifications