After further debugging my issues, I found the bug. The keys for objectLocal are all the shorter versions without the trailing comma values as set here with the slice:
On subsequent lookups, the extension is looking for style matches using the full string and not the sliced version. Doing the same slice on those values fixes the problem
After further debugging my issues, I found the bug. The keys for
objectLocal
are all the shorter versions without the trailing comma values as set here with theslice
:https://github.com/glmrvn/Appearance-figma-plugin/blob/fa2589403aea2a4dbd9ac31ee2379747ded9838e/code.js#L167-L169
On subsequent lookups, the extension is looking for style matches using the full string and not the sliced version. Doing the same slice on those values fixes the problem