Skip to content

Commit

Permalink
Log GoToDefinition ProjectionResult null (dotnet#5667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbrandenburg authored Oct 29, 2021
1 parent 7a15c3f commit ad92296
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ public async Task<Location[]> HandleRequestAsync(TextDocumentPositionParams requ
documentSnapshot,
request.Position,
cancellationToken).ConfigureAwait(false);
if (projectionResult == null)
if (projectionResult is null)
{
_logger.LogWarning($"Projection result was null");
return null;
}

Expand Down

0 comments on commit ad92296

Please sign in to comment.