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

fix(inline): do not offer changeless inline refactor, backed by test #30

Merged

Conversation

YotamAlon
Copy link
Contributor

Hi!

I am using pylsp rope as an extension in vscode and encountered a situation where inline refactor is offered on a function parameter, which (I think) is not valid for inlining.

I have added a test to verify the issue and created a fix.

I thought fixing it here is more appropriate than in rope itself since technically there is nothing wrong with an empty refactor, it is simply not interesting to offer from the language server point-of-view.

Please let me know if I should change anything!

@lieryan
Copy link
Member

lieryan commented Nov 17, 2024

@YotamAlon thanks for the contribution, the change looks good to me.

@lieryan lieryan merged commit 2b62689 into python-rope:main Nov 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants