Comment tracking criteria is used to identify which iteration context the thread has been tracked to (if any) along with some detail about the original position and filename.

interface CommentTrackingCriteria {
    firstComparingIteration?: number;
    origFilePath?: string;
    origLeftFileEnd?: CommentPosition;
    origLeftFileStart?: CommentPosition;
    origRightFileEnd?: CommentPosition;
    origRightFileStart?: CommentPosition;
    secondComparingIteration?: number;
}

Properties

firstComparingIteration?: number

The iteration of the file on the left side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0.

origFilePath?: string

Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration.

origLeftFileEnd?: CommentPosition

Original position of last character of the thread's span in left file.

origLeftFileStart?: CommentPosition

Original position of first character of the thread's span in left file.

origRightFileEnd?: CommentPosition

Original position of last character of the thread's span in right file.

origRightFileStart?: CommentPosition

Original position of first character of the thread's span in right file.

secondComparingIteration?: number

The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0.