Open StellaHuang95 opened 2 months ago
I'm pretty sure we already have this one. I remember finding it too.
Yeah this one: https://github.com/microsoft/pylance-release/issues/5195
It's slightly different than the other bug. The expected behavior here is that adding to the settings.json
shouldn't affect the diagnostics since now the pyrightconfig.json takes precedence?
Environment data
Repro Steps
pylance-release
pylance-release\testing\single
folder in VS Codecodeaction.py
, place cursor onouterModule
Add "./outsideLib" to extraPaths
code actionExpected behavior
extraPaths
is added topyrightconfig.json
Actual behavior
extraPaths
is added tosettings.json
Also, although the warning
'python.analysis.extraPaths' cannot be set...
shows up, the diagnostic disappears after executing the code action.