Closed askpatrickw closed 4 years ago
Am I correct in saying this only happens when adding micropy to a pre-existing workspace?
If so, then the solution would likely be to add a check to TemplateProvider
somewhere around here to see if the settings file already exists, and if so update it as it does usually (post-creation).
I'll have a look at this... but first figuring out how to build... I'll open a separate Issue on how to build
Describe the bug
micropy init
will overwrite.vscode/settings.json
in a workspace with existing settingsExpected Behavior Micropy should add itself to the workspace settings, only overwriting specific settings entries.
Current Behavior micropy over writes the existing
.vscode/settings.json
loosing user preferences.Steps to Reproduce
code .
micropy init .
and include the VS Code settings in your choices. I now have the follwing settings.json file:Possible Solution NOTE: If you have a main.py already in the workspace it will not be overwritten for that init option.
Logs N\A
Context (Environment)