Investigate the possibility of add-ons enhancing find references
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by cataloguing the DSL reference use cases described in the issue, including Rails associations such as has_many :posts. Then investigate the indexing enhancements and the proposed merge of the reference finder with the declaration listener; done means an agreed design and implementation path for recognizing these references.
Written by the indexing model from the issue text.
Description
There are certain situations where references to declarations may exist in a DSL form. For example, in Rails, if you were to rename/find references for a model, then associations made to that model should be included as well.
class Post
end
class User
has_many :posts # <<< this should be counted as a reference to the `Post` class, despite being a symbol
end
We will need to study what use cases exist and how to allow for this. Maybe this should be a concern of indexing enhancements and we should expedite the work to merge the reference finder with the declaration listener.
- Dominant language
- Ruby
- Stars
- 2k
- Forks
- 281
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/ruby-lsp
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug help-wanted pinned
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug pinned
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Shopify/ruby-lsp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheOdinProject/curriculum#31417 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
glossarist/glossarist-ruby#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·