You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to dynamic nature of Rails framework source code, there are lots of cases where the autocompletion results are pretty dry. That's what I set out to solve. After a few months of hacking in my free time, I have something I'm willing to share with the community - https://github.com/alisnic/solargraph-arc. Initially I started this as an experiment to hack on solargraph-rails plugin, but ended up so interested and deep in the woods, that I effectively re-implemented it from scratch with more features 😅
Current features are:
fixes autocompletion for multi-level classes defined in 1 line class Foo::Bar::Baz
autocomplete database columns by parsing db/schema.rb
autocomplete of model relations (belongs_to, has_many, etc)
parsing of delegate calls
completions for methods generated by Devise (current_user, sign_in_and_redirect, etc)
better support for running solargraph outside bundle (patch submitted as well )
better completion inside controllers. request, response, params, etc.
smart autocomplete inside routes.rb
smart autocomplete inside migrations
completions for methods generated by ActiveStorage
better ActiveRecord completions (where, or, etc)
You can access it at https://github.com/alisnic/solargraph-arc. Feedback is welcome. My hope is to attract more contributors so we can collectively make editor experience for Rails more awesome.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Due to dynamic nature of Rails framework source code, there are lots of cases where the autocompletion results are pretty dry. That's what I set out to solve. After a few months of hacking in my free time, I have something I'm willing to share with the community - https://github.com/alisnic/solargraph-arc. Initially I started this as an experiment to hack on solargraph-rails plugin, but ended up so interested and deep in the woods, that I effectively re-implemented it from scratch with more features 😅
Current features are:
class Foo::Bar::Baz
current_user
,sign_in_and_redirect
, etc)request
,response
,params
, etc.where
,or
, etc)You can access it at https://github.com/alisnic/solargraph-arc. Feedback is welcome. My hope is to attract more contributors so we can collectively make editor experience for Rails more awesome.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions