Open riknoll opened 1 year ago
I don't think this can be done at the moment; looks like we need https://github.com/microsoft/vscode/issues/88219 for programmatically setting expanded/collapsed state.
My reading is that if we want we could add "visibility": "collapsed"
here so that all the {assetType}Explorer
s start collapsed (& which only sets the default for when first opening workspace / until first interaction by user), but I don't think that's what we want (well, it is, but we would want that to be used here ish https://github.com/microsoft/pxt-vscode-web/blob/main/src/web/jres.ts#L44)
When we open the asset explorer, we should collapse all of the empty entries to give more room for the asset actions. I'm sure there must be a vscode command for this somewhere.
We should also not expand anything automatically, as that would be annoying. Just collapse the empty ones.