I'm writing a VSCode custom editor extension.
The extension should be activated for component.yaml
files.
However I realize that there could be files named component.yaml
with completely different formats.
I want to detect that the file is not in expected format and bail out, skipping my extension, so that the file opens in the default text editor or another registered extension.
How can my extension refuse/skip opening a file?