Skip to content
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

Switch from 'class_methods do' to 'module ClassMethods' for Ruby LSP #140

Closed
wants to merge 3 commits into from

Conversation

toddkummer
Copy link
Collaborator

Ruby LSP does not identify class methods mixed in with the Rails-y class_methods do block, so the main mixin has been switched to use module ClassMethods.

Shopify/ruby-lsp-rails#525

This change enables hover and Go To Definition features for the filter declaration.

image

This flattens the methods that are exposed to controllers into a single mix. If anyone opens this class, they can see the method  signatures and documentation in one place.
@toddkummer
Copy link
Collaborator Author

The Ruby LSP code was enhanced to handle the class_methods do block. The modules did need to be collapsed, but that was handled in #143

@toddkummer toddkummer closed this Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant