Lander
Lander

Reputation: 51

Roslyn code fix C# - How to disable 'Document', 'Project', 'Solution' level updates in preview

I have implemented roslyn fix without preview as per suggestions in Roslyn analyser code fix - Disable preview option

However would like to know if I can disable the 'Document' 'Project' and 'Solution' options presented.

Upvotes: 0

Views: 142

Answers (1)

Kris Vandermotten
Kris Vandermotten

Reputation: 10201

Those options are there because you have a FixAllProvider, probably something like

public override FixAllProvider GetFixAllProvider() => WellKnownFixAllProviders.BatchFixer;

Remove that, and those options are gone.

Upvotes: 1

Related Questions