Go-to autoinject declarations 2

My question related to https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003507859-Go-to-autoinject-declarations-

Sample project:

class Services::Command::Execute ###1
end

class ServicesContainer
extend Dry::Container::Mixin
register("services.command.execute") { Services::Command::Execute } ###2
end

ServicesInjector = Dry::AutoInject(ServicesContainer)

class SomeClass
include ServicesInjector[
executeCommandService: "services.command.execute"
]

def some_method
executeCommandService.new
end
end

As mentioned before, RubyMine doesn't recognize strings like "services.command.execute".

What I want is to have some functionality that jumps me to ###2 or (much better) to ###1 when I Cmd-Click on executeCommandService in some_method. Could it be possible?

1
1 comment

Hello,

sorry for not responding you sooner. At the moment, that kind of Go to declaration isn't supported and requires adding custom support for the gem. Could you please submit it directly on our tracker as a feature request so that we can understand how popular and needed it is among our users: https://youtrack.jetbrains.com/issues/RUBY

0

Please sign in to leave a comment.