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

[WIP] Allow two symbols to be found at position in tuple (FAR, Highlighting) #24363

Closed
wants to merge 7 commits into from

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Jan 21, 2018

Here's what FAR looks like with the current PR:

image

image

image

image

image

image

image

Customer scenario

In tuple syntax, such as (Alice, Bob), positioning the cursor on Alice is both referencing the declaration of a tuple field (so t.Alice and t.Item1) and the usage of local Alice.

Bugs this fixes

Fixes #20115

Risk

Performance impact

Is this a regression from a previous update?

No

Root cause analysis

How was the bug found?

Known issue from 15.0 (when tuples shipped in C# 7.0 and VB 15.0) and also reported by customers since.

Note: I noticed that highlighting doesn't recompute when the cursor is placed on a highlight. This used to make sense as placing the cursor on the highlight previously did not affect what would be highlighted (it was symmetrical). I think that is ok to leave as-is.

Note 2: I'm still debating whether tuples equivalence should factor or ignore tuple names. This PR modified the logic of a common component (to identify if two symbols are "equivalent") so that tuples names would be factored. This results in fewer and more selective highlights. If we choose to ignore tuple names, then highlighting the first element of tuple (Alice: alice, Bob: 3) would also highlight the first element of tuple (Alice, alice, Carol: 2).

@jcouv jcouv added the Area-IDE label Jan 21, 2018
@jcouv jcouv added this to the Unknown milestone Jan 21, 2018
@jcouv jcouv self-assigned this Jan 21, 2018
@jcouv jcouv requested a review from a team as a code owner January 21, 2018 08:20
@jcouv jcouv added the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label Jan 21, 2018
@jcouv jcouv requested a review from a team as a code owner February 24, 2018 20:29
@jcouv jcouv modified the milestones: Unknown, 15.8 Mar 12, 2018
@jinujoseph jinujoseph modified the milestones: 15.8, Unknown Jun 15, 2018
@agocke agocke closed this Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it.
Projects
Development

Successfully merging this pull request may close these issues.

3 participants