Reputation: 743
I have a class attribute account_values
that occurs multiple times in class MyClass
, all in the same the file file1.py. It is also referenced multiple times in file2.py. All the references in file1.py are in class method definitions and are of the form self.account_value
. The references in file2.py are of the form instance.account_value
. If I hit F2 on the an occurrence in file1.py I can rename all the occurrences of the attribute, but the occurrences are unchanged in file2.py. If I go to file2.py in the editor and hit F2, I get a message that the symbol cannot be renamed. (I can just type a new name in place, however). The files are in a workspace, in the same folder on the file system. Language server is Pylance.
Is there any way to get renaming across the entire workspace in cases like this?
Upvotes: 1
Views: 43