Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to exclude some auto-import options #3466

Closed
yuuuxt opened this issue Oct 12, 2022 · 2 comments
Closed

option to exclude some auto-import options #3466

yuuuxt opened this issue Oct 12, 2022 · 2 comments
Assignees
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@yuuuxt
Copy link

yuuuxt commented Oct 12, 2022

Can we have the option to exclude some auto-import options?

  • some auto-import options will possibly never make sense to me, e.g. (an arbitrary example) adm -> from msilib.schema import AdminExecuteSequence
  • Hope there is an ignore list setting, e.g. adding msilib to that list will eliminate all auto-import options from msilib.

ref

@judej judej added the needs investigation Could be an issue - needs investigation label Oct 12, 2022
@heejaechang
Copy link
Contributor

in next release, you can configure python.analysis.packageIndexDepths to exclude certain packages from indexing.

ex)

    "python.analysis.packageIndexDepths": [
        ...
        {
            "name": "msilib",
            "depth": 0
        }
    ]

this will exclude msilib from indexing. so it won't suggest anything from that package in add import or auto import

@heejaechang heejaechang added fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed needs investigation Could be an issue - needs investigation labels Dec 8, 2022
@heejaechang
Copy link
Contributor

This issue has been fixed in prerelease version 2023.1.11, which we've just released. You can find the changelog here: CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants