In-place rename for custom plugin

Answered

I'm trying to implement in-place rename for a custom plugin. I've stepped through with a debugger and it seems that it requires LocalSearchScope. When I override getUseScope in PsiNamedElement, in-place rename works but only in a single file. How can I make it work across files?

Commits:

https://github.com/square/sqldelight/pull/1375/commits/4c6991bbb8b88bab4219bdf6ad32b9cf609125dd

https://github.com/AlecStrong/sqlite-psi/pull/36/commits/75fb3d084bc67e78ad9f9ddc7f8187b65f9032a2

1 comment
Comment actions Permalink

Hi,

inplace should be modified only current file, then in `com.intellij.refactoring.rename.inplace.InplaceRefactoring#performRefactoring` should be done the actual refactoring across the project

Anna

0

Please sign in to leave a comment.