Shopify / Shopify/ruby-lsp

Add references support for local variables

Open
#2,642 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help-wanted pinned server
Dominant language
Ruby
Stars
2k
Forks
281
Avg merge
2h 14m
Merged PRs (30d)
6

Description

Build on top of #2632 to add support for finding local variable references. Note that in order to implement this, the reference finder must now keep track of lexical scopes so that we appropriately identify local variables and their occurrences.

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 issue #2632 and the existing reference finder. Trace how references are currently found, then determine where lexical scopes must be tracked to identify local variables and their occurrences. Done means local variable references are found correctly without confusing variables from different scopes.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.