Conversation
|
can you describe the problem this fixes? what is the bug? |
|
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? |
|
I didn't see this PR till now and fixed it independently in #2531 along with adding missing response part. |
Rename only the original reference as described in WillRenameFiles LSP specifications
Rename only the original reference as described in WillRenameFiles LSP specifications