vscode-circuitpython icon indicating copy to clipboard operation
vscode-circuitpython copied to clipboard

[BUG] Extension overwrites python.analysis.extraPaths at startup

Open wenkokke opened this issue 4 years ago • 0 comments

Describe the bug On startup, VSCode CircuitPython overwrites .vscode/settings.json to remove any manually added extra paths, and insert another copy of the adafruit bundle.

To Reproduce Steps to reproduce the behavior:

  1. Open a CircuitPython project;
  2. Run "Choose CircuitPython Board" and choose Keybow 2040;
  3. Modify .vscode/settings.json to add an extra directory to python.analysis.extraPaths, e.g., "./lib";
  4. Restart VSCode;
  5. .vscode/settings.json is modified, removing "./lib" and adding another copy of, e.g., "$HOME/Library/Application Support/Code/User/globalStorage/joedevivo.vscode-circuitpython/bundle/20211208/adafruit-circuitpython-bundle-py-20211208/lib";

Expected behavior I'd expect the addition of "./lib" to be preserved, and no additional copies of the extra path to be added (see above).

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS (11.6)

wenkokke avatar Dec 08 '21 16:12 wenkokke