pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

`Add XXX to extraPaths` code action adds path to settings.json even a config file is present

Open StellaHuang95 opened this issue 5 months ago • 2 comments

Environment data

  • Pylance version: 2024.8.104

Repro Steps

  1. Clone pylance-release
  2. Open pylance-release\testing\single folder in VS Code
  3. Open codeaction.py, place cursor on outerModule
  4. 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.

StellaHuang95 avatar Aug 29 '24 22:08 StellaHuang95