Skip to content

Commit

Permalink
Code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Jul 30, 2024
1 parent f04ec04 commit 7658918
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ public TestRuleCodeFix(Func<Document, SyntaxNode, Task<Document>> createChangedD
{
CreateChangedDocument = createChangedDocument;
}

protected override Task RegisterCodeFixesAsync(SyntaxNode root, SonarCodeFixContext context)
{
context.RegisterCodeFix("TestTitle", async c => await CreateChangedDocument(
context.RegisterCodeFix("TestTitle", async x => await CreateChangedDocument(
context.Document,
(await context.Document.GetSyntaxRootAsync(c)).FindNode(context.Span)),
(await context.Document.GetSyntaxRootAsync(x)).FindNode(context.Span)),
context.Diagnostics);
return Task.CompletedTask;
}
Expand Down

0 comments on commit 7658918

Please sign in to comment.