Skip to content

Commit 4aea26a

Browse files
Skip documentation node id remapping if node is not changed (#8876)
1 parent 969d7f1 commit 4aea26a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dotnet/APIView/APIViewWeb/Helpers/CodeFileHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ private static void RemapDocumentationLines(List<ReviewLine> activeLines, Dictio
509509
line.DiffKind = diffKind;
510510
var newHashId = line.GetTokenNodeIdHash(newParentId, idx);
511511

512-
if (documentationRowMap.ContainsKey(oldHashId))
512+
if (documentationRowMap.ContainsKey(oldHashId) && !newHashId.Equals(oldHashId))
513513
{
514514
documentationRowMap[newHashId] = documentationRowMap[oldHashId];
515515
documentationRowMap.Remove(oldHashId);

0 commit comments

Comments
 (0)