Skip to content

Commit

Permalink
Merge pull request #66766 from dotnet/merges/release/dev17.5-to-relea…
Browse files Browse the repository at this point in the history
…se/dev17.5-vs-deps

Merge release/dev17.5 to release/dev17.5-vs-deps
  • Loading branch information
dotnet-bot committed Feb 9, 2023
2 parents 30bf839 + 80e77a3 commit 6a5a63b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -160,11 +160,12 @@ protected static bool IdentifiersMatch(ISyntaxFactsService syntaxFacts, string n
FindReferencesDocumentState state,
CancellationToken cancellationToken)
{
if (symbol.IsAnonymousType())
if (identifier == "")
{
// Anonymous types don't have a name, so we return without further searching since the text-based index
// Certain symbols don't have a name, so we return without further searching since the text-based index
// and lookup never terminates if searching for an empty string.
// https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1655431
// https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1744118
return ImmutableArray<FinderLocation>.Empty;
}

Expand Down

0 comments on commit 6a5a63b

Please sign in to comment.