Hi,
Is there an amount of time that the ‘textreview’ callback must return within? I notice that if I don’t return any result within 3 seconds, I receive the following error:
Error: Text review plugins must call on('textreview') upon running
The logic of my plugin is as follows:
figma.on('textreview', async ({ text }) => {
// Send message to UI to instantiate a websocket that receives text review suggestions
// Register figma.ui.onmessage handler to receive text suggestions and websocket status from UI
// await for 'idle' response from websocket running within the UI
// return suggestions
}
At first I thought the issue was my handler receiving messages but then realised I get the same message if I wait on the plugin callback message for longer than 3s.
-Simon