Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't add nested code actions *and* their parent to the smart tag list. #6797

Merged
merged 1 commit into from
Nov 16, 2015

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #6753

Tagging @dotnet/roslyn-ide

@@ -220,6 +220,7 @@ private SuggestedActionSet InlineActions(SuggestedActionSet actionSet)
}

newActions.AddRange(childActionSets[0].Actions);
continue;
}

newActions.Add(action);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not remove the continue and wrap this line in an else { }? It (should) accomplish the same thing and it's easier to look at.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stylistically, i prefer the above. I literally cannot explain why as it's purely subjective.

If it's important to you, i can change though as i don't really care that much :)

@brettfo
Copy link
Member

brettfo commented Nov 16, 2015

:shipit:

@Pilchie
Copy link
Member

Pilchie commented Nov 16, 2015

👍

CyrusNajmabadi added a commit that referenced this pull request Nov 16, 2015
Don't add nested code actions *and* their parent to the smart tag list.
@CyrusNajmabadi CyrusNajmabadi merged commit 2094b28 into dotnet:master Nov 16, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the smartTagDuplication branch November 16, 2015 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants