-
Notifications
You must be signed in to change notification settings - Fork 30
Add definitions for Rails callbacks #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
24cd909
to
fa58345
Compare
|
I guess this is limited currently since it can't jump to definitions in another class (e.g. a common |
module RubyLsp | ||
module Rails | ||
module Support | ||
module Callbacks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe CallbacksList
to emphasize there's no behaviour in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a few tweaks needed.
f672239
to
1a37bfe
Compare
1a37bfe
to
ec42db4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🚀
Let's add definition to this list. |
…ming for callback module
ec42db4
to
41114a9
Compare
Implements definitions for callbacks in Rails, building on the approach leveraged for definitions inside
ruby-lsp
.This PR also abstracts away the collection of Rails callbacks that we keep, since both the document symbol and definition features now rely on it. Moreover, generally, this PR introduces the definitions feature to the add-on, as it was not present previously.