Andy Waite
Andy Waite
We ran into this for Prism: https://github.com/Shopify/ruby-lsp/pull/1953#discussion_r1572697529
Could a Bundler plugin be an alternative? There's an `after-install` hook which runs after each gem is installed. https://bundler.io/guides/bundler_plugins.html
It could be distributed as a gem which Ruby LSP installs in the `.ruby-lsp` bundle.
I verified these work when called from the command menu: - testing.runAtCursor - testing.debugAtCursor - testing.runCurrentFile - testing.reRunFailTests (odd that it's `fail` and not `failed`) - testing.reRunLastRun `testing.runAll` also works,...
There is also an experimental Ruby API for coverage: https://rubyapi.org/o/coverage
Hi @giovannism20, At the minimal, I think we'd want to test against having no `Gemfile`, and against a Rails app `Gemfile`. Checking with @vinistock, he suggested the approach shown below....
Yes, e.g. `test/full_integration_test.rb`
Another situation which this would have probably caught: https://github.com/Shopify/ruby-lsp/pull/1068
Not a priority, so let's close for now.
You can enable the `code` command by following the instructions here: https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line