The "Format XAML" context menu option, which appears upon right-clicking the code editor, does so irrespective of the language of the document being edited (which makes it available (but useless) when languages other than XAML are edited).
While it should appear in the XAML editor,

...it shouldn't when other languages are being edited,

Is it possible to conditionally add the option to the context menu?
The "Format XAML" context menu option, which appears upon right-clicking the code editor, does so irrespective of the language of the document being edited (which makes it available (but useless) when languages other than XAML are edited).
While it should appear in the XAML editor,
...it shouldn't when other languages are being edited,
Is it possible to conditionally add the option to the context menu?