Shopify / ruby-lsp-rails

A Ruby LSP addon for Rails
https://shopify.github.io/ruby-lsp-rails/
MIT License
515 stars 21 forks source link

Use NodeContext from RubyLSP to fix Definition targetting #397

Closed andyw8 closed 3 weeks ago

andyw8 commented 1 month ago

We made an addition to Ruby LSP which to add call node information to NodeContext. This means we can now fix the Ruby LSP Rails beahavior for various DSL calls.

For example, previously when you had an association has_many :widgets, the Go To Definition feature would only work if triggered on the has_many token. Now it works for the :widgets token, as originally intended.