IntelliJ IDEA navigation in this scenario in Kotlin language
I asked this question before here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009897800-InelliJ-IDEA-navigation-in-this-scenario-in-Kotlin-language?page=1#community_comment_360002732220
But it was misinterpreted.
To clarify what I meant i added code here:
https://github.com/KamilWitkowski7/kotlindemo
Now what i would like to see is navigation from line:
com/example/demo/Example.kt:14
on `handle` straight to:
com/example/demo/TestCommandHandler.kt:7
Without choosing the handler from the list.
What I am seeing right now when used for example `ctrl` click is navigation to:
CommandHandler#handle
What's more if i click the "interface" then I will see some irrelevant CommandHandlers like:
OtherCommandHandler
irrelevant cause we navigated from context where there was
testCommandHandler: CommandHandler<TestCommand, Unit>)
Ctrl-alt-b shows all usages of it - consider the scale of this example.
What if there were like 1000 CommandHandlers and you are suggesting me all of them ?
What i need is to navigate to one and only good CommandHandler in this context.
To navigate to
TestCommandHandler
Please sign in to leave a comment.
Please use https://discuss.kotlinlang.org/ for any questions related to Kotlin.
You can also report a bug at https://youtrack.jetbrains.com/newIssue?project=KTIJ.
Ok,
I have created topic here:
https://discuss.kotlinlang.org/t/intellij-idea-navigation-in-this-scenario-in-kotlin-language/20844