Andy Waite
Andy Waite
Hmm, as per @vinistock's comment [here](https://github.com/Shopify/ruby-lsp/issues/2096#issuecomment-2161205953), should we remove the `bin/rails` check and use this instead?
Seems there is an issue when the file contains non-ASCII characters: https://github.com/Shopify/ruby-lsp/issues/2463
I think matching on `class Application < Rails::Application` in `config/application.rb` should be reliable?
@louim feel free to open a PR for that, should be fairly straightforward.
Thanks for looking into this. I tried out your branch and noticed an issue with the `preview` directory:
btw, it works with ActiveJob/SolidQueue with some minor changes, no need for Redis or Sidekiq - I can make a separate PR for that, if you'd like.
I'll set this to draft until @natematykiewicz has chance to return to it.
Reading further I see there's a call to `authenticate_user!` so I've updated this to mention Devise.
This would have helped for https://github.com/Shopify/tapioca/pull/1826.
@tsvallender if you are able to share the LSP logs from just before it causes the CPU to peak, then that may help us to diagnose the problem. Also, are...