Shopify / Shopify/ruby-lsp-rails

Reveal schema when hovering on an association

Open
#359 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good-first-issue help-wanted
Dominant language
Ruby
Stars
688
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Currently, you can reveal a model's schema by hovering over it. It would be nice if you could also see this when hovering over an association, e.g. belongs_to :user,

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 locating the existing model-hover implementation in the ruby-lsp-rails codebase and then trace how associations such as belongs_to :user are represented. Done means hovering over an association reveals the associated model's schema, matching the existing model-hover behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
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.