IntelliJ IDEA navigation in this scenario in Kotlin language

Answered

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
0

Please sign in to leave a comment.