MicroPico icon indicating copy to clipboard operation
MicroPico copied to clipboard

After creating new project, entries in `settings.json` appear grayed out

Open MarByteBeep opened this issue 1 year ago • 2 comments

I just created a new project as per instructions and when looking at the settings.json I noticed a number of settings being grayed out:

image

These are the warnings generated by each of the grayed out options:

"python.linting.enabled": Unknown Configuration Setting
"python.languageServer": This setting cannot be applied in this workspace. It will be applied when you open the containing workspace folder directly.
"micropico.syncFolder": This setting cannot be applied in this workspace. It will be applied when you open the containing workspace folder directly.
"micropico.openOnStart": This setting can only be applied in user settings in local window or in remote settings in remote window.

So I'm guessing these options don't seem to work?

Furthermore, I specified src as syncFolder but as can be observed in the Pico Remote Workspace, the src folder is synced including the src folder itself, which shouldn't be the case.

Expected

  • No options should be grayed out
  • The "micropico.syncFolder" setting should sync the contents of said folder so they appear in the root folder on the Pico.

MarByteBeep avatar Dec 05 '23 18:12 MarByteBeep

The settings are greyed out because of the open virtual workspace. As four your other concerns, I'll look into it.

paulober avatar Dec 05 '23 21:12 paulober

I have similar setup as you @MarByteBeep but the "Upload project to pico" command uploads all files in the project, not just the source. I think if you would add a small file at root it would also be uploaded.

I would also guess if syncFolder is set to src the content of that folder is uploaded

micropicostack avatar Mar 11 '24 13:03 micropicostack