Roslyn Fix Provider Check if Fix is From Preview Window
问题 I have written a fix provider which adds members elements resx file. I noticed when visual studio generates the expected changes it calls the method in which add the resource keys to the file. I'm registering my FixProvider I'm looking for a way to tell if the fix was called from a preview public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context) { var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); // TODO: Replace the