Hey team! Love your work with the plugin API!
Just reporting the following issue: I batch import all the variables from my design system’s library on launch of my plugin using a combination of:
1. getAvailableLibraryVariableCollectionsAsync()
2. getVariablesInLibraryCollectionAsync()
3. importVariableByKeyAsync()
I would love to use scopes to determine which variables can be applied where. Unfortunately, every variable’s .scope
property returns the array ['ALL_SCOPES']
regardless of what the variable’s actual scopes are configured to. I know the scopes are configured correctly because the variables available in the Variable Picker UI inside of the editor are constrained as I would expect, but the plugin API is consistently just returning ALL_SCOPES
.
Let me know if I can provide any more info! Thanks!