Rename Symbol skips unreachable code #2431
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
All references to the same symbol are renamed, even those that are otherwise unreachable.
Actual behaviour
Unreachable symbols aren't renamed. If the line causing code to be unreachable is removed after rename, then you have undefined variables caused by the renamer.
Apologies in advance if this is working as intended, it just seemed like odd behavior to me.
Logs
Python Language Server Log
Code Snippet / Additional information
Renaming
a
->b
doesn't rename unreachable symbolThe text was updated successfully, but these errors were encountered: