Skip to content

Migrate rename to use Rubydex - #4033

Merged
vinistock merged 1 commit into
rubydex_adoption_feature_branchfrom
vs_migrate_rename
Mar 31, 2026
Merged

Migrate rename to use Rubydex#4033
vinistock merged 1 commit into
rubydex_adoption_feature_branchfrom
vs_migrate_rename

Conversation

@vinistock

Copy link
Copy Markdown
Member

Motivation

Migrate rename to use Rubydex. We currently only support constants, but we can easily expand to global, class and instance variables once we finish adding indexing for them.

Implementation

The main changes are actually simplifications. We don't need the ReferenceFinder because Rubydex tracks references. We can just access it directly, which makes the implementation more straight forward.

Automated Tests

The rename tests were pretty messy and difficult to write. I refactored the tests a bit and added a couple more scenarios.

@vinistockvinistock self-assigned this Mar 26, 2026
@vinistock
vinistock requested a review from a team as a code ownerMarch 26, 2026 21:07
@vinistockvinistock added server This pull request should be included in the server gem's release notes other Changes that aren't bugfixes, enhancements or breaking changes labels Mar 26, 2026
@vinistockvinistock mentioned this pull request Mar 26, 2026
19 tasks
@vinistock
vinistockforce-pushed the rubydex_adoption_feature_branch branch from 4a0f2a1 to 37cddf3CompareMarch 30, 2026 14:02
@vinistock
vinistock requested a review from MorriarMarch 30, 2026 15:12
Comment threadlib/ruby_lsp/requests/rename.rb Outdated
@vinistock
vinistock merged commit c6c2a82 into rubydex_adoption_feature_branchMar 31, 2026
38 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

otherChanges that aren't bugfixes, enhancements or breaking changesserverThis pull request should be included in the server gem's release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vinistock@alexcrocha