Skip to content
New issue

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

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

Already on GitHub? # to your account

Feat: prepare rename request #27

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

Jeansidharta
Copy link
Contributor

@Jeansidharta Jeansidharta commented Dec 16, 2023

Implements the Prepare Rename Request.

The request handler is essentially a CTRL + C, CTRL + V of the rename request's beginning (can be seen here), but instead of showing an error message, it just returns null on most cases. I wanted to isolate the logic into a function (something like fn can_rename_node (node: &Node, bfile: &ParsedCode) -> bool) and reuse both in the Rename handler and the Prepare Rename Handler, but couldn't think of a good way to abstract it. So I'll just create this lazy PR and wait for feedback from the maintainer.

@Jeansidharta Jeansidharta force-pushed the feat/prepare-rename-request branch from 74d26b5 to 47f6a0b Compare December 16, 2023 04:44
@Leathong Leathong merged commit a968de2 into Leathong:master Jan 2, 2024
4 checks passed
@Leathong
Copy link
Owner

Leathong commented Jan 2, 2024

Thanks~

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants