I tested on a newer version but I faced a similar ERROR message command ‘cmd.leaf.pkg.fetch’ not found at first. I realized later on that it was because I was trying to refresh the leaf package in VSCODE interface before opening or creating a workspace.
See step 3 in below page:
3 . Open a folder as your Legato workspace. Ctrl + K + 0
a . Make or choose a folder to use as a workspace and click Ok
After that I can update the available leaf packages and add to a profile. hope it help.
- VSCODE: 1.38.1
- Code legato plug-in: 0.8.0
- leaf: 2.1