提交 23945d92 编写于 作者: C CyrusNajmabadi

Clean up code.

上级 72dc4e19
......@@ -359,8 +359,7 @@ private CodeRefactoring FilterOnUIThread(CodeRefactoring refactoring, Workspace
codeAction => GetFixAllSuggestedActionSet(
codeAction, fixCount, fixCollection.FixAllState,
fixCollection.SupportedScopes, fixCollection.FirstDiagnostic,
workspace, _subjectBuffer, _owner._editHandler,
_owner._waitIndicator, _owner._listener);
workspace);
foreach (var fix in fixes)
{
......@@ -445,18 +444,15 @@ private CodeRefactoring FilterOnUIThread(CodeRefactoring refactoring, Workspace
/// If the provided fix all context is non-null and the context's code action Id matches the given code action's Id then,
/// returns the set of fix all occurrences actions associated with the code action.
/// </summary>
internal static SuggestedActionSet GetFixAllSuggestedActionSet(
internal SuggestedActionSet GetFixAllSuggestedActionSet(
CodeAction action,
int actionCount,
FixAllState fixAllState,
IEnumerable<FixAllScope> supportedScopes,
Diagnostic firstDiagnostic,
Workspace workspace,
ITextBuffer subjectBuffer,
ICodeActionEditHandlerService editHandler,
IWaitIndicator waitIndicator,
IAsynchronousOperationListener operationListener)
Workspace workspace)
{
if (fixAllState == null)
{
return null;
......@@ -473,8 +469,9 @@ private CodeRefactoring FilterOnUIThread(CodeRefactoring refactoring, Workspace
var fixAllStateForScope = fixAllState.WithScopeAndEquivalenceKey(scope, action.EquivalenceKey);
var fixAllSuggestedAction = new FixAllSuggestedAction(
workspace, subjectBuffer, editHandler, waitIndicator,
fixAllStateForScope, firstDiagnostic, operationListener);
workspace, _subjectBuffer, _owner._editHandler,
_owner._waitIndicator, fixAllStateForScope, firstDiagnostic,
_owner._listener);
fixAllSuggestedActions.Add(fixAllSuggestedAction);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册