Skip to content

Commit fd78dd1

Browse files
committed
"Not equivalent" nodes which have the same "ToFullString()" value will crash the IDE
1 parent 389d7c2 commit fd78dd1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

OpenStackNetAnalyzers/OpenStackNetAnalyzers/RenderAsMarkdownCodeFix.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ private async Task<Document> CreateChangedDocument(CodeFixContext context, Docum
130130
if (documentationCommentTriviaSyntax.IsEquivalentTo(contentsOnly))
131131
return context.Document;
132132

133+
if (documentationCommentTriviaSyntax.ToFullString().Equals(contentsOnly.ToFullString(), StringComparison.Ordinal))
134+
return context.Document;
135+
133136
return context.Document.WithSyntaxRoot(newRoot);
134137
}
135138

0 commit comments

Comments
 (0)