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

Clean up code.

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