You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a small extension that relies on built-in JSON language features. My extension monitors changes to the file that looks like following:
{"configs": ["file1.json","file2.json"]// other properties}
Where configs is an array of relative paths to files that share a common schema. I want to register/remove schema associations for these files when the array changes, but so far I haven't found a way to do this besides the jsonValidation contribution. But jsonValidation cannot be used there because the fileMatch pattern is not known at package time (users can structure their projects however they like).
It would be nice to have an API to add/remove schema associations at runtime, like in the XML extension. Or am I missing something and there is already a way to achieve the described behavior?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I'm developing a small extension that relies on built-in JSON language features. My extension monitors changes to the file that looks like following:
Where
configs
is an array of relative paths to files that share a common schema. I want to register/remove schema associations for these files when the array changes, but so far I haven't found a way to do this besides thejsonValidation
contribution. ButjsonValidation
cannot be used there because thefileMatch
pattern is not known at package time (users can structure their projects however they like).It would be nice to have an API to add/remove schema associations at runtime, like in the XML extension. Or am I missing something and there is already a way to achieve the described behavior?
Thanks in advance!
The text was updated successfully, but these errors were encountered: