VSCode has the great feature of per-language user snippets (e.g. in xml.json).
Is there a way to map those snippets to file extensions?
My situation: I develop a lot of xml lately. We have roughly three xsd files and name instances of them with file extensions (so an instance of foo.xsd is named my-instance.foo rather than my-instance.xml). I build the most common parts as user snippets to save my time. However the different xsds create similar elements with different meanings (e.g. one creates <foo bar="baz"/>, one creates <foo baz="bar"/>), so defining a user snippet with prefix "foo" for the xml language would be ambique.
I could prefix the prefixes (creating e.g. afoo and bfoo), but this feels unnatural. Is there a better way to say "although both foos belong to the xml language, one belongs to files of type x and one to y"?