Could you please add a new method that returns a Promise?
setValueForModeAsync(modeId: string, newValue: VariableValue): Promise<void>
I’m working with hundreds of variables applied across complex layers in my plugin, so applying changes can take some time, and the next modification in the queue might already be out of date when it finishes. Being able to await each change would ensure they finish before the next step.
Thanks for considering!