I have written a Roslyn code Analyzer and related CodeFixProvider, which works. When I use it against individual lightbulbs it works perfectly, when I choose to do the whole document, it seems to be getting corrupted results as if several fixes were merged together.
I am using the WellKnownFixAllProviders to provide the infrastructure for fixing the problem. Debugging the code and what is happening, all looks fine, but the previewed (and accepted) document seems to have some duplicated or corrupted results.