You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
References can be added to LSP4IJ-managed files by non-LSP4IJ plugins, and those references need to know when a target has been renamed via LSP so they can be updated accordingly. I think all that's needed is to collect references to the pseudo-element that's being renamed before the LSP rename, and then on success, iterate through those references and invoke handleElementRename(newName) on each so that things are kept consistent.
The text was updated successfully, but these errors were encountered:
Have you a usecase which causes problem with rename?
Yes, absolutely. My own plugin adds references from HTML braced expressions to properties/methods of the associated JavaScript/TypeScript via a simple template binding syntax, e.g.,:
When, for example, recordId is renamed in the TypeScript file, all TypeScript/JavaScript references are properly updated, but the {recordId} reference in the HTML file is not resulting in an inconsistent state.
PsiReference#handleElementRename() exists explicitly to allow external references to respond to rename events accordingly. Those references just need to be included in the action since it's happening external to the IDE's own refactoring framework.
I'm happy to field this one if you'd like to assign it to me.
References can be added to LSP4IJ-managed files by non-LSP4IJ plugins, and those references need to know when a target has been renamed via LSP so they can be updated accordingly. I think all that's needed is to collect references to the pseudo-element that's being renamed before the LSP rename, and then on success, iterate through those references and invoke
handleElementRename(newName)
on each so that things are kept consistent.The text was updated successfully, but these errors were encountered: