Shopify / Shopify/ruby-lsp-rails

Add ability to configure the BASE_COMMAND

Open
#295 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
688
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Currently, the BASE_COMMAND is hardcoded to bin/rails test.

It would be wonderful to be able to configure this command to something else.

Use case

Using tilt, docker-compose or similar solution requires prefixing most of the commands in order to execute them in the container.

Having the ability to configure this command would allow for easier integration with the tools mentioned above.

One could have a custom bin/docker-rails script available that would do the path transformation and run the bin/rails test command in the correct container.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading lib/ruby_lsp/ruby_lsp_rails/code_lens.rb at the referenced line to see how BASE_COMMAND is used. Trace the existing configuration entry points and make the command configurable so a wrapper such as bin/docker-rails can prefix the Rails test command for container execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.