celador/ForceCode

Possibilty for Lightning Message Service

jgallagants opened this issue · 3 comments

With the new Winter 20', Salesforce has created a Message service to be able to send messages between components.

Unluckily, I already need to use this service. Reading about how to create one, It seems that you need to deploy it with SFDX.

Could be possible to add this new feature to ForceCode to create and deploy Lightning Message Services?

Thank you very much.

This should already be supported. In order to use LMS, you need to make sure the org you're logged into has an apiVersion of 47.0. Once you have changed to 47.0, click save, then restart vscode and you'll have access to LMS:
image
image
image

Reopening, as I did find an issue while saving.

In order to save an LMS channel through Forcecode it will need to be in the messageChannels folder and have a .messageChannel extension:
image