vscode-circuitpython
vscode-circuitpython copied to clipboard
[BUG] Extension overwrites python.analysis.extraPaths at startup
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:
- Open a CircuitPython project;
- Run "Choose CircuitPython Board" and choose Keybow 2040;
- Modify
.vscode/settings.jsonto add an extra directory topython.analysis.extraPaths, e.g., "./lib"; - Restart VSCode;
.vscode/settings.jsonis 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)