Code highlighting in Linq queries

Hi

When writing Linq queries I expect that when selecting the alias for a table the IDE would highlight its uses throughout the Linq query, that seems to not be working consistently in the current version of Rider, for example:

var q = from x in _context.MyTable 
where x == 1
select new {
x.Id,
x.Description
};

In the above, clicking on x would highlight its uses throughout the query. It does happen in Rider but sporadically, I generally have issues when using the into keyword on joins, for example:

var q = from x in _context.MyTable 
  join y in _context.MyTable2 on x.Id equals y.JoinId into yJoin
  from y in yJoin.DefaultIfEmpty()
where x == 1 
select new { 
  x.Id, 
  x.Description,
  y.Description
};

In this example, clicking on y in either the join or the from highlights nothing but is valid syntax.

Could this be added in at some later date, or looked at so it works consistently as its a great feature when debugging Linq queries.

Many thanks

Graham

Please sign in to leave a comment.