mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-14617 Update references to modules imported via relative imports inside the moved module
Current solution is very crude, because we can't use standard IDE facilities to find usages of the import element in the a file, once that file was moved. And exactly that API MoveFileHandler offers to us.
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
import pkg.m2
|
||||
import pkg.subpkg.m3
|
||||
|
||||
|
||||
print(pkg.m2, pkg.subpkg.m3.VAR)
|
||||
+1
@@ -0,0 +1 @@
|
||||
VAR = 42
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import m2
|
||||
import subpkg.m3
|
||||
|
||||
|
||||
print(m2, subpkg.m3.VAR)
|
||||
+1
@@ -0,0 +1 @@
|
||||
VAR = 42
|
||||
Reference in New Issue
Block a user