Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
#146: Fix equivalenceKey for explicit conversion code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarypiatek committed Nov 11, 2020
1 parent 24d7e55 commit c92ad2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)

if (assignmentExpression.Parent is InitializerExpressionSyntax || assignmentExpression.Parent is StatementSyntax)
{
context.RegisterCodeFix(CodeAction.Create(title: title2, createChangedDocument: c => GenerateExplicitConversion(context.Document, assignmentExpression, true, c), equivalenceKey: title), diagnostic);
context.RegisterCodeFix(CodeAction.Create(title: title2, createChangedDocument: c => GenerateExplicitConversion(context.Document, assignmentExpression, true, c), equivalenceKey: title2), diagnostic);
}
break;
case ReturnStatementSyntax returnStatement:
Expand Down

0 comments on commit c92ad2e

Please sign in to comment.