ruby-lsp-rails
ruby-lsp-rails copied to clipboard
A Ruby LSP addon for Rails
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.
To make it appear, one needs to: 1. Restart Ruby LSP 2. Close and reopen the controller file
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
### 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...
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....
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...
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: 
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...