Go-to autoinject declarations
已回答
I currently use RubyMine and like its go-to functionality that lets me command-click on a method and find where it's declared.
The codebase I'm working on uses AutoInject, in this format:
include AutoInject[method_name: 'user.determine_something']
RubyMine doesn't recognize this formatting and can't link to where the autoinjected methods are defined. Is there a way to add customization so it can follow this format to where the methods are defined?
If this is possible, I'm unsure as where to begin - any thoughts would be appreciated.
请先登录再写评论。
Hello,
just to be sure, should navigation go to that string defined with `include AutoInject`?
In addition, is it about Dry? Could you please check whether the following request is related:
https://youtrack.jetbrains.com/issue/RUBY-20147
Hello Olga,
Apologies for the lateness of my response. Our issue is separate from the one you linked.
RubyMine can't parse the dry-auto-inject declaration so I can't click through to the source file. Here's an example:
Hello,
would it be possible to provide a working sample project for reproduce?