Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.16k stars 125 forks source link

">" problem in Rider #497

Open NiroEnvy opened 3 weeks ago

NiroEnvy commented 3 weeks ago

Describe the bug I'm trying to format my axaml pages with Avalonia and when I try to apply a style it incorrectly formats the styles where ">" is used

To Reproduce

  1. When formatting any style line with ">" it change it to ">"

Expected behavior ">" should remain unchanged

Screenshots Before: image

After: image

Version Info :

grochocki commented 3 weeks ago

This is a possible candidate for surfacing in some sort of error/warning UI in the future as part of #271, but there is a case to consider this otherwise by design due to XAML language spec. Here is some more information on XML Character Entities and XAML. Is this a delta between XAML language spec and AXAML?

NiroEnvy commented 3 weeks ago

This is a possible candidate for surfacing in some sort of error/warning UI in the future as part of #271, but there is a case to consider this otherwise by design due to XAML language spec. Here is some more information on XML Character Entities and XAML. Is this a delta between XAML language spec and AXAML?

There were no problems on the last version (2023.3.1 rider) and (N, last for 2023 rider i think) version of styler However, just after the update, this problem appeared. I am also not sure that there may be some delta here, however I do not have enough knowledge to answer this question. Avalonia version unchanged

I also thought the problem was in my configuration but reinstalling the plugin also didn't help.

Also, it happens only for "Style" section. Close brackets remain fine.

grochocki commented 3 weeks ago

Hmm, interesting. Thanks for the info; will need to investigate further.