Buggy autocomplete for relative local imports #1479
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Describe the bug
Autocomplete is providing incorrect options when importing from local directories with a relative import.
At first, only the already imported top-level import is listed as an option. Then, once the first character of any of the actual sub-directories or modules is typed, the autocomplete will refresh with appropriate options.
The issue is that one cannot lazily rely on autocomplete for writing relative imports.
I'm using pyright in sublime text, but the issue is reproducible in VS Code. See sublimelsp/LSP-pyright#76 (comment)
See screenshots below for demonstration.
To Reproduce
The text was updated successfully, but these errors were encountered: