Hook into "extract react component" refactoring
Answered
I've created https://github.com/BlackRule/react-extract-component-customizer and run it in PhpStorm. When I use other refactorings my methods from MyRefactoringEventListener are being called but when I do the "extract react component" refactoring (that I created plugin for) they are not. :( What do I do? I want to create folder with files when this refactoring happens (and my dream is place the refactored code there )
I don't know where I should put this question so I posted it in /requests and requested invitation to slack to post there as well...
Please sign in to leave a comment.
If you want your custom refactoring to be trackable, you must publish all its events explicitly.
I'm sorry for bad explanation from my side. The "extract react component" refactoring is built into Webstorm/ (React support probably or js plugin) . How do I listen for that from my plugin?
The refactoring is most likely not sending events then, please file feature request https://youtrack.jetbrains.com/issues/WEB