ruby-lsp-rails icon indicating copy to clipboard operation
ruby-lsp-rails copied to clipboard

A Ruby LSP addon for Rails

Results 64 ruby-lsp-rails issues
Sort by recently updated
recently updated
newest added

If users add a new association, say `belongs_to :user` to the `Post` model, the go-to-definition for `:user` will not work until the LSP server is restarted.

bug

To make it appear, one needs to: 1. Restart Ruby LSP 2. Close and reopen the controller file

bug

Similar to what we do for ActiveRecord callbacks, we could support the 3 callbacks that ActionMailbox provides: * around_processing * before_processing * after_processing https://api.rubyonrails.org/classes/ActionMailbox/Callbacks.html

good-first-issue
help-wanted

### I have checked that this feature is not already implemented - [X] This feature does not exist ### Use case We employ a Docker setup for our e-learning plattform...

enhancement

I make occasional use of `delegate` in my code, which is rails specific: https://api.rubyonrails.org/classes/Module.html#method-i-delegate Are addons able to contribute to the index? I don't think this addon currently does that....

Closes https://github.com/Shopify/ruby-lsp-rails/issues/317

chore

I was looking to replace the [Annotate](https://github.com/ctran/annotate_models) gem with Ruby LSP, but I noticed that its schema information is much slimmer than what Annotate offers. I'm often looking at `NOT...

enhancement
help-wanted

Currently, the `BASE_COMMAND` is [hardcoded](https://github.com/Shopify/ruby-lsp-rails/blob/7d12d96c411f1bfc568f1c166da0db0d4e6cb2c4/lib/ruby_lsp/ruby_lsp_rails/code_lens.rb#L45) to `bin/rails test`. It would be wonderful to be able to configure this command to something else. ## Use case Using [`tilt`](https://tilt.dev/), `docker-compose` or similar...

This patch is to add associations to rails models: ![Screenshot 2024-03-10 at 12 27 54](https://github.com/Shopify/ruby-lsp-rails/assets/443111/49ba8090-820b-4f7b-8464-3ef007a61a1b)

Rails 8 will add Brakeman: https://www.shakacode.com/blog/rails-8-adds-brakeman-by-default/ We could surface Brakeman's warnings within the editor. Brakeman support should probably exist in a separate addon, but for initial investigation/prototyping it could be...

help-wanted