copy-python-path icon indicating copy to clipboard operation
copy-python-path copied to clipboard

fix: handle parenthesized imports in getImportedSymbolMap

Open ranihorev opened this issue 1 month ago • 0 comments

Fixes a bug where imports with parentheses (both single-line and multi-line) were not properly parsed, causing the extension to fail to copy the full import path. For example:

from file.path import (MyClass, OtherClass)

a = MyClass()

Copying MyClass before ended up with file.path vs now file.path.MyClass

ranihorev avatar Dec 15 '25 13:12 ranihorev