提交 4fc85918 编写于 作者: C Cyrus Najmabadi

Remove unused method.

上级 a6136f9e
......@@ -44,22 +44,6 @@ public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
return suggestedAction.GetChangedSolution(cancellationToken);
}
public void ComputeAndApplyFix(
ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix,
Workspace workspace,
CodeFixProvider fixProvider,
FixAllProvider fixAllProvider,
string equivalenceKey,
string title,
string waitDialogMessage,
bool showPreviewChangesDialog,
CancellationToken cancellationToken)
{
var fixMultipleContext = FixMultipleContext.Create(diagnosticsToFix, fixProvider, equivalenceKey, cancellationToken);
var suggestedAction = GetSuggestedAction(fixMultipleContext, workspace, fixAllProvider, title, waitDialogMessage, showPreviewChangesDialog, cancellationToken);
suggestedAction.Invoke(cancellationToken);
}
public Solution GetFix(
ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix,
Workspace workspace,
......
......@@ -89,7 +89,7 @@ public override void Invoke(CancellationToken cancellationToken)
else
{
Func<Document> getDocument = () => _triggerDocumentOpt;
base.InvokeCore(getDocument, cancellationToken);
InvokeCore(getDocument, cancellationToken);
}
}
}
......
......@@ -22,21 +22,6 @@ internal interface IFixMultipleOccurrencesService : IWorkspaceService
string waitDialogMessage,
CancellationToken cancellationToken);
/// <summary>
/// Computes the fix multiple occurrences code fix for the given diagnostics without any source location, brings up the preview changes dialog for the fix and
/// apply the code action operations corresponding to the fix.
/// </summary>
void ComputeAndApplyFix(
ImmutableDictionary<Project, ImmutableArray<Diagnostic>> diagnosticsToFix,
Workspace workspace,
CodeFixProvider fixProvider,
FixAllProvider fixAllProvider,
string equivalenceKey,
string waitDialogAndPreviewChangesTitle,
string waitDialogMessage,
bool showPreviewChangesDialog,
CancellationToken cancellationToken);
/// <summary>
/// Get the fix multiple occurrences code fix for the given diagnostics with source locations.
/// NOTE: This method does not apply the fix to the workspace.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册