Skip to content

Auto-import can show redundant completions when the same item is exposed from multiple modules #1857

@BurntSushi

Description

@BurntSushi

A good example of this is read_csv from Pandas. The first result is the one we want:

2025-12-11T12.55.16-05.00.mp4

But it also shows read_csv from a bunch of other sub-modules. Indeed, these are all the same symbol. They all share the same definition in pandas/io/parsers/readers.py.

I think we should show only one of them, and probably the one from the top-most module. This seems to be what pylance does:

2025-12-11T12.57.30-05.00.mp4

Metadata

Metadata

Assignees

Labels

completionsBugs or features relating to autocomplete suggestionsserverRelated to the LSP server

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions