Open adriangaro opened 3 months ago
Definitions in inline script files are not yet to be indexed
So what you want is (are) ?
1 and 2 would be the most ideal, making 3 not needed at all. 4 on its own could be useful for compatibility, to not have to make dummy declarations.
It is often the case to avoid boilerplate code i have to call to using inline_scripts to avoid repetitive definitions, especially for stuff life game_concepts, economic categories and so on.
For example i have the below inline
and it is invoked as
But due to its nature of using interpolation and inlines, the concepts will no be available for autocomplete in localisation, and will show errors.
Would be nice to somehow be able to say that if this inline is called, expect this definitions to exist, maybe by providing a string template for the name, although probably hard. Alternatively maybe just infer new definitions from inlines.... but that might need them to actually be evaluated more thoroughly which seems more complicated (should be doable since technically the parameters are static)