Skip to content

Limit the search range of auto import #309

@Weijiang-Xiong

Description

@Weijiang-Xiong

Hello, thanks for developing this great extension.

I like its fast and informative type checking and type hints.

But I feel the current auto import strategy is too aggresive (I can turn it off though), is it possible to limit the search range to the workspace, e.g., my own code or the libraries that I explicitly imports in my own code.

For example, if I imported numpy in some other file in my project, and I type sqrt which is both availabe in numpy and math. Then I would want ty to put numpy at the top since this is what I frequently use.

In this screenshot, I typed hello and ty gives me tons of suggestions, and that's the time I feel most suggestions are irrelavant.
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions