PTVS
PTVS copied to clipboard
Refactor rename incorrect when the referenced method is defined in another project.
Describe the bug
Steps to Reproduce
- Create python application named PythonAppication1
- Create python application named PythonAppication2
- Right-click in PythonAppication1 and select Add->reference..., select PythonApplication2 as referenced
- Typing code in PythonApplication2.py
def add(a, b):
print(a + b)
- Typing code in PythonAppication1.py
import PythonApplication2
PythonApplication2.add(1,2)
- Open PythonApplication2.py and select function name add and right-click to select rename...
- Input a new name addTest in rename dialog and press enter
Expected behavior
The name add can be renamed as addTest both in PythonApplication2.py and PythonApplication1.py
Actual behavior
Only renamed in PythonApplication2.py. the name of the place where this method is called has not changed.