How to open and edit lwc which belongs to unlocked package? In VScode it doesn't displayed and when I go to package in salesforce site code of component is not displayed as well. So VScode doesn't display source from unlocked packages?

1 Answer 1


You can retrieve the contents of the unlocked package from the command line using below command

sfdx force:source:retrieve -n "<package name>"

This will give a separate folder which you can take the contents and move to your working folder.

The VSCODE Extension pack for Salesforce has made some fixes but they are not yet out and may be in a week or so this is out. Till then you can use command line.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .