Why is extract interface to existing interface not in 'Extract Interface' but in 'Pull members up'? Follow
Why is extract interface to existing interface not in 'Extract Interface' but in 'Pull members up'?
This feels unintuitive and not natural?
Please sign in to leave a comment.
Hello Abdu Bukres, thank you for your question. Could you please explain why this feels unintuitive?
I want to extract an interface so I select extract an interface. Seems like exactly what I want to do. It doesn't work if there's an interface. Why can't it just add it there as a new declaration in the interface? I don't know why. Pull member up. Pull suggests its position changes. Up where?
What's ironic is that I asked how to extract such a method earlier here. I forgot because the option is not intuitive and therefore I forgot it.
It seems some else had the same issue. https://resharper-support.jetbrains.com/hc/en-us/community/posts/206658885-Extract-to-existing-Interface
And there might be others.
Abdu Bukres, thanks for the explanation. I've submitted a new issue to our bug tracker: https://youtrack.jetbrains.com/issue/RSRP-489497/Extract-interface-to-existing-interface-should-be-in-Extract-Interface-and-not-in-Pull-members-up. Please comment or vote for it to get notifications about status changes. Have a nice day!