Don't show stubPath xxx is not a valid directory
warning when using config default
#4917
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Repro Steps
python.analysis.stubPath
is not set in VS Code settings.typings
subdirExpected behavior
Pylance (or Pyright) log does not contain the following warning. The warning should only be shown if the user explicitly provided a
stubPath
and that directory is not found.Actual behavior
The warning is present.
This was discussed in the comments of microsoft/pyright#777. Suggested fix is to modify the
workspace/configuration
logic in the Pylance/Pyright client to return empty string forpython.analysis.stubPath
if it is not set, rather than returning the default value.The text was updated successfully, but these errors were encountered: