diff --git a/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureCodeStyle/ConfigureCodeStyleOptionCodeFixProvider.cs b/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureCodeStyle/ConfigureCodeStyleOptionCodeFixProvider.cs index 9224b8e1dab6e..e5ca0698b33c2 100644 --- a/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureCodeStyle/ConfigureCodeStyleOptionCodeFixProvider.cs +++ b/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureCodeStyle/ConfigureCodeStyleOptionCodeFixProvider.cs @@ -55,12 +55,12 @@ public bool IsFixableDiagnostic(Diagnostic diagnostic) => null; public Task> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable diagnostics, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) - => Task.FromResult(GetConfigurations(document.Project, diagnostics, cancellationToken)); + => Task.FromResult(GetConfigurations(document.Project, diagnostics)); public Task> GetFixesAsync(Project project, IEnumerable diagnostics, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken) - => Task.FromResult(GetConfigurations(project, diagnostics, cancellationToken)); + => Task.FromResult(GetConfigurations(project, diagnostics)); - private static ImmutableArray GetConfigurations(Project project, IEnumerable diagnostics, CancellationToken cancellationToken) + private static ImmutableArray GetConfigurations(Project project, IEnumerable diagnostics) { var result = ArrayBuilder.GetInstance(); foreach (var diagnostic in diagnostics) @@ -150,7 +150,7 @@ void AddCodeActionWithOptionValue(ICodeStyleOption codeStyleOption, object newVa nestedActions.Add( SolutionChangeAction.Create( optionValue, - solution => ConfigurationUpdater.ConfigureCodeStyleOptionAsync(optionName, optionValue, diagnostic, option.IsPerLanguage, project, cancellationToken), + cancellationToken => ConfigurationUpdater.ConfigureCodeStyleOptionAsync(optionName, optionValue, diagnostic, option.IsPerLanguage, project, cancellationToken), optionValue)); } } diff --git a/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureSeverity/ConfigureSeverityLevelCodeFixProvider.cs b/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureSeverity/ConfigureSeverityLevelCodeFixProvider.cs index 665b5778718d2..986c592da2fce 100644 --- a/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureSeverity/ConfigureSeverityLevelCodeFixProvider.cs +++ b/src/Features/Core/Portable/CodeFixes/Configuration/ConfigureSeverity/ConfigureSeverityLevelCodeFixProvider.cs @@ -62,7 +62,7 @@ private static ImmutableArray GetConfigurations(Project project, IEnume nestedActions.Add( SolutionChangeAction.Create( title, - solution => ConfigurationUpdater.ConfigureSeverityAsync(value, diagnostic, project, cancellationToken), + cancellationToken => ConfigurationUpdater.ConfigureSeverityAsync(value, diagnostic, project, cancellationToken), value)); }