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

Highlight references to symbol under caret not working for symbols used in tuple types (value tuples) #36742

Closed
vsfeedback opened this issue Jun 25, 2019 · 1 comment
Labels
Area-IDE Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Resolution-Duplicate The described behavior is tracked in another issue

Comments

@vsfeedback
Copy link

VSF_TYPE_MARKDOWNWhen a variable (local variable or class field) is used in a value tuple, placing the cursor on the symbol in value tuple, does not highlight the other references. This only happens when the symbol is used as a single value in a member of a value tuple. When the symbol is used in an expression, the highlighting works correctly.

Code example:

var value = 1; // #1
var x = (value, 2); // #2

If the cursor is on value in line #2, the other value in line #1 is not highlighted, and the shortcut keys for navigation between highlighted references (Ctrl+Shift+Up/Down arrow) will do nothing.
If the cursor is placed on the first usage (line #1) it works correctly.

Also this code sample works with no problem:

var value = 1;
var x = (value + 1, 2);

because value is used in an expression.

It just happens in VS 2019.
It is all fine in VS 2017.

This issue has been moved from https://developercommunity.visualstudio.com/content/problem/620242/highlight-references-to-symbol-under-caret-not-wor.html
VSTS ticketId: 937020

These are the original issue comments:

Visual Studio Feedback System on 6/25/2019, 04:00 AM (7 hours ago):

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.



These are the original issue solutions:
(no solutions)

@jcouv
Copy link
Member

jcouv commented Jun 27, 2019

Closing as duplicate of #20115

@jcouv jcouv closed this as completed Jun 27, 2019
@jcouv jcouv added Area-IDE Resolution-Duplicate The described behavior is tracked in another issue labels Jun 27, 2019
@sharwell sharwell added the Developer Community The issue was originally reported on https://developercommunity.visualstudio.com label Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

3 participants