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

Port reference highlighting tests #18585

Merged
merged 2 commits into from
Apr 12, 2017

Conversation

rchande
Copy link
Contributor

@rchande rchande commented Apr 10, 2017

tag @dotnet/roslyn-ide for review

{
void M<T>({|reference:C|} c) where T : {|reference:C|}
{
{|reference:C|} c = new {|reference:C|}();
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to very the written reference versus reference stuff.

FeatureAttribute.ReferenceHighlighting));

AssertEx.SetEqual(spans["reference"], VisualStudio.Editor.GetTagSpans(ReferenceHighlightTag.TagId));
AssertEx.SetEqual(spans["definition"], VisualStudio.Editor.GetTagSpans(DefinitionHighlightTag.TagId));
Copy link
Member

Choose a reason for hiding this comment

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

The existing C# test verifies navigation via the next/prev reference command. We should preserve that.

{
}

[Fact, Trait(Traits.Feature, Traits.Features.Classification)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Traits.Features.ReferenceHighlighting?

@rchande
Copy link
Contributor Author

rchande commented Apr 12, 2017

Test failures look unrelated to this change.

@rchande rchande merged commit 22f3800 into dotnet:master Apr 12, 2017
@rchande rchande deleted the referencehighlightingtests branch April 12, 2017 18:00
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