Skip to content

Commit

Permalink
Fix rare crash with multiple method overloads with various parameters…
Browse files Browse the repository at this point in the history
… quantity
  • Loading branch information
Dreamescaper committed Jan 2, 2019
1 parent 633ca90 commit 3e31ace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IntelliSenseExtender/Extensions/SemanticModelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ private static IList<IParameterSymbol> GetParameters(this SemanticModel semantic

methodSymbol = methodInfo.CandidateSymbols
.OfType<IMethodSymbol>()
.Where(s => s.Parameters.Length >= argumentListSyntax.Arguments.Count)
.FirstOrDefault(s =>
{
for (int i = 0; i < presentArguments.Count; i++)
Expand Down

0 comments on commit 3e31ace

Please sign in to comment.