Please sign in to comment.
Fix in-memory cache issue and add some nice minor utilities (#57)
* Add `rake console` and `rake spec` commands Running `rake console` will automatically start an IRB session with the library loaded. Running `rake spec` will run all the specs in the project. * By default do not process the `.bundle` It's a common HUGE directoy that we have in big codebases using `bundler` and can slow everything down. * Fix initialization of maps and stores inside Solargraph::ApiMap It seems like they are not playing nice with autoload. After this change I was able to achieve close-to-instantenous Go To Definition on a very big Rails project using Solargraph's VSCode extension. * Improve the `rake console` task to use Pry instead of IRB Pry is a much better Ruby REPL! :D
- Loading branch information...
Showing with 30 additions and 16 deletions.
|@@ -1,3 +1,14 @@|
|desc "Open a Pry session preloaded with this library"|
|task :console do|
|sh "pry -I lib -r solargraph.rb"|