sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.55k stars 68 forks source link

Can't select individual refactorings when multiple ones are suggested for given code block #285

Closed cyril-schroeder-ox closed 1 year ago

cyril-schroeder-ox commented 2 years ago

Checklist

Description

When multiple refactorings for the block of code are suggested, can only implement all of them at the same time, as opposed to being able to select each one individually.

Debug Information

IDE Version: VSCode 1.71.2

Sourcery Version: v0.12.9

Operating system and Version: Ubuntu 22.04

bm424 commented 2 years ago

Hey @cyril-schroeder-ox, thanks for reporting the issue. Would it be possible for you to share a code snippet illustrating the problem? On the whole what you've described seems to work for me.

In the screenshot below you can see two lines in the function body highlighted, one to refactor the try/except bit and one to refactor the summation loop. Both can be accepted individually.

Screenshot from 2022-09-28 09-46-59

Hellebore commented 1 year ago

Closing as stale.