private static Solution GetFixedSolution( FixAllState fixAllState, Workspace workspace, string title, string waitDialogMessage, CancellationToken cancellationToken) { var fixMultipleCodeAction = new FixMultipleCodeAction( fixAllState, title, waitDialogMessage); Solution newSolution = null; var extensionManager = workspace.Services.GetService <IExtensionManager>(); extensionManager.PerformAction(fixAllState.FixAllProvider, () => { // We don't need to post process changes here as the inner code action created for Fix multiple code fix already executes. newSolution = fixMultipleCodeAction.GetChangedSolutionInternalAsync( postProcessChanges: false, cancellationToken: cancellationToken).WaitAndGetResult(cancellationToken); }); return(newSolution); }