-
Notifications
You must be signed in to change notification settings - Fork 767
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Is there any way to disable "useImportHeuristic"? #3592
Comments
There's currently no way to disable this behavior. Whey you say it "confuses you", what do you mean? Pylance will always attempt to resolve the import first based on import resolution paths configured in your Python environment (the Is this behavior leading to false negatives in your code base? Or how else do you find the behavior confusing or undesirable? |
yeah, as i said, "I am working on a big python project", so there could be hundreds of .py files and the working tree is sort of complicated. for example:
The |
I'd prefer not to expose a configuration knob to control this behavior, but that's an option if this turns out to be a common enough request. I recommend moving this to the discussion forum to see what additional feedback we receive from other pylance users. |
Moving this issue to discussion as an enhancement request for comments and upvotes. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I am working on a big python project (a lot modules and only one main) and "resolving imports relative to each file" does confuse me when importing modules.
I found #253 which is the cause of it. Its seems that "useImportHeuristic" has been enabled by default:
Is there any way to disable it?
The text was updated successfully, but these errors were encountered: