IntelliJ has always been struggling to automagical...
# intellij
g
IntelliJ has always been struggling to automagically suggest imports for extension functions within objects. I understand that the consensus seems to be creating a top-level file (which also works for import detection) that contains ext functions. However, in certain contexts an extension function may still be declared within an object, and it's admittedly very annoying to handle manual imports for that. Is this a known issue (or worse, desired behaviour)?
d
It's a known issue. Can't find it at the moment but I know kotlinpoet needs it for
ParametizedTypeName
.
g
Aha! Thanks 🙂