Help creating custom variable plugin

Hello folks!

My apologies in advance if this question has been asked already. I have searched for a while but haven’t found anything.

I am creating a custom variable type plugin I need to read some configuration for the plugin in the ‘custom’ section which I will use in the variable resolver. However, if that configuration has variables (e.g. foo: bar-${opt:stage}.json) I get them unresolved at constructor time and when my plugin’s variables start to get resolved. What is the proper way to get the “resolved” configuration before the variable resolver starts resolving.

I already marked the resolver with isDisabledAtPrepopulation = true and that didn’t work.

Thanks in advance!