Open BaconPancakes opened 1 week ago
This is likely related to #6446 . This behavior really ought to reverted or at least configurable.
Even without overriding pyrightconfig.json
, I'm still getting these missing file errors from the python.analysis.include
directories:
File or directory "/<default workspace root>/my_dir_redacted" does not exist
This error message is expected and can be ignored. It's for the 'default' workspace that we always create in the background. It's just some logging that we need to cleanup and has no impact on anything.
File or directory "/<default workspace root>/my_dir_redacted"
But yes, you are correct. Pyrightconfig.json now takes precedence over everything.
Environment data
Code Snippet
pyrightconfig.json
in base workspace.code-workspace
file:The workspace above is currently open.
Repro Steps
Expected behavior
Only the directories specified in
python.analysis.include
via workspace settings are indexed/analyzed.Actual behavior
The entire repo is included (as such, hits the indexing limit), because it was "assumed" due to
pyrightconfig.json
not specifying any includes. Errors are thrown on includes from python.analysis.includeFile or directory "/<default workspace root>/my_dir_redacted" does not exist
Logs