Closed mgroth0 closed 7 months ago
@mgroth0 Can you give you particular example? In Java it is working as you described, if you do rename refactor on class it would change name in [[ClassName]] also without search in string/comments checkbox.
@clutcher Sorry for not testing this more thoroughly.
You are correct that this is working in typical cases.
It is not working in the following case:
fun globalFunction(){}
/*[[SomefileKt#globalFunction]]*/
globalFunction
from the declaration in module 1@mgroth0 Thanks for case. By module you mean gradle module? If you will put kotlin files into 1 module rename refactoring will work correctly or also would fail?
By Module, I mean a Gradle subproject (which gets imported to IntelliJ as a an IDE module)
If I take the siutation from above but am within a single module, there is no bug.
@mgroth0 Looks like some internal bug inside intellij with link resolving. I'll take a look into that more deeply in a month or so. Need to finish UI refactoring firstly.
@mgroth0 I played around with it and didn't found any issue.
For example, I took repo https://github.com/40CoderPlus/gradle-multi-module-template . Inside api modele in Api class I referenced // [[Core]]
from core module, renamed that class and in referenced comment in Api class it also changed.
How exactly you setup multi module project? Maybe something wrong with that setup itself.
@mgroth0 Is that still relevant?
I'm sure this is likely a difficult thing to accomplish. But it would be very beneficial if refactoring names of classes and methods were propogated to links through this plugin.
There is a setting in the IDE for including comments and strings in refactors. However, I always have that off as it can have unintended side effects. For example, if you have a member called "the" and refactor it to "them", then every time the word "the" comes up in a comment or string it will be converted to "them".
It would be great if somehow the IDE could recognize links through this plugin as distinct from regular strings and comments.