Set up:
- Install the Ruby Solargraph VS Code extension and disable
Use Bundler
- Run
$ gem install solargraph solargraph-rails
- Update the Ruby Solargraph VS Code extension's command path to point to the abolute path of your solargraph install. (e.g.
/Users/justin/.rbenv/shims/solargraph
) - Add the contents of this gist to the root of the project and git ignore them
- In your project root run
$ solargraph bundle
- In your project root run
$ yard gems
- Run the
Developer: Reload Window
command for VS Code
Verify
- Visit your
app/models/application_record.rb
- Navigate over the
Base
inApplicationRecord::Base
- Right-click
Peek
->Peek Definition
and the pop-up view should include a reference tobase.rb
from inside the `activerecord gem