Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rename support for constants #2626

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vinistock
Copy link
Member

Motivation

Closes #57

This PR adds rename support for constants, modules and classes.

Implementation

  1. Created a ReferenceFinder. This is essentially a simplified copy of our declaration listener. I believe that either the declaration listener can be modified to support collecting references or we can extract some abstraction for both to use. However, I would like to start with a copy, so that we can see the patterns emerge as we add support for more renames
  2. Then I added the rename request

Automated Tests

Added tests.

@vinistock vinistock added enhancement New feature or request server This pull request should be included in the server gem's release notes labels Sep 25, 2024
@vinistock vinistock self-assigned this Sep 25, 2024
@vinistock vinistock requested a review from a team as a code owner September 25, 2024 19:24
@vinistock

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server This 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.

Add rename support to the ruby-lsp
1 participant