coc-pyright icon indicating copy to clipboard operation
coc-pyright copied to clipboard

Is there a way to refactor and move a variable to a new file and update imports?

Open himat opened this issue 1 year ago • 1 comments

Ex. I want to move foo to a new file a2.py and have the import in b.py auto update to use that new path. Is this possible?

# a.py

def foo():
    pass
# b.py

from a import foo

def bar():
    return foo()

himat avatar Oct 12 '22 05:10 himat

No such feature yet.

fannheyward avatar Oct 12 '22 08:10 fannheyward