XAML Styler not working with new Avalonia for Visual Studio extension
Describe the bug
I am using XAML Styler for Visual Studio 2022 v3.2501.8 (https://github.com/Xavalon/XamlStyler). After upgrading to the new Avalonia for Visual Studio v11.10.4.0, XAML Styler stopped working for *.axaml files. I can select Format XAML in the context menu, but the XAML file does not change.
XAML Styler still works for Avalonia XAML files with the .xaml extension.
To Reproduce
- Install the Avalonia for Visual Studio extension in Visual Studio 2022.
- Install the XAML Styler extension in Visual Studio 2022.
- Open a .axaml file from any Avalonia project.
- Select Format XAML from the document context menu.
Expected result: The XAML document should be reformatted based on the XAML styler settings.
AvaloniaVS plugin version
11.10.4.0
Avalonia version
11.3.6
Visual Studio version
17.14.16
Relevant log output
-
Additional context
XAML Styler worked fine with the previous Avalonia Visual Studio extension. Therefore, I hope that this can be fixed in the new extension.
Same here. XAML Styler works, if I activate the Avalonia extension it stops working.
XAML Styler still works for Avalonia XAML files
if I activate the Avalonia extension it stops working
Same here. Has anyone been able to solve the problem?
The issue is with how they determine which documents can be formatted.
Please upvote the issue on their repository and encourage them to accept this PR which fixes the issue for them.
XAMLStyler have merged the fix, hopefully they'll release an updated version soon.
Looking forward to a new version with this fix.