pylance-release
pylance-release copied to clipboard
`Add XXX to extraPaths` code action adds path to settings.json even a config file is present
Environment data
- Pylance version: 2024.8.104
Repro Steps
- Clone
pylance-release
- Open
pylance-release\testing\single
folder in VS Code - Open
codeaction.py
, place cursor onouterModule
- Execute the
Add "./outsideLib" to extraPaths
code action
Expected behavior
extraPaths
is added to pyrightconfig.json
Actual behavior
extraPaths
is added to settings.json
Also, although the warning 'python.analysis.extraPaths' cannot be set...
shows up, the diagnostic disappears after executing the code action.