Open payne911 opened 10 months ago
Probably it should send workspace/didRenameFiles (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didRenameFiles)
Does this library support this already?
I can only find references to textDocument/rename
(https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_rename), which I'm not sure if it does the same thing.
I'm not entirely sure, but it doesn't seem like lsp4intellij appropriately handles the case where someone renames a class which has an associated file name. It seems to send the
didChange
notifications to modify the text references in different files, but it won't be able to track new changes done in that file since thetextDocument
key is now changed. I'm not an LSP expert, but given the file was opened in IntelliJ, shouldn't this trigger adidClose
on the old file name, and adidOpen
on the new one?