Open jer-k opened 3 weeks ago
This happens because Zed fallbacks to FindAllReferences
if GoToDefinition
failed to navigate - https://github.com/zed-industries/zed/pull/9243
This happens because Zed fallbacks to
FindAllReferences
ifGoToDefinition
failed to navigate - zed-industries/zed#9243
Does this mean it is a ruby-lsp
issue? Should I open an issue over there?
Summary
Jump to definition for
ActiveModel::SecurePassword.has_secure_password
does not seem to be working. I thought it might have been all gems, but jump to definition is working onhas_many
for example.Info
I just made a new project as a reproduction, it can be found here https://github.com/jer-k/zed-ruby-lsp
The steps I used to initialize the project were
This uses the new Rails 8 authentication generator to create the
User
class and add thehas_secure_password
directive. The exact line is here https://github.com/jer-k/zed-ruby-lsp/blob/main/app/models/user.rb#L2.The documentation for the directive is here https://edgeapi.rubyonrails.org/classes/ActiveModel/SecurePassword/ClassMethods.html.
Some other general info
When I do a
cmd+click
onhas_secure_password
I get thisWhere as when I do a
cmd+click
onhas_many
, I getAnd on Intellij IDEA, a
cmd+click
onhas_secure_password
takes me hereFinal bit of info is my Zed settings