Function computeDirtyDiff

  • Returns an eventually consistent result. E.g. it can happen, that lines are deleted during the computation, which will internally produce 'line out of bound' errors, then it will return undefined.

    ContentLines are to avoid copying contents which improves the performance, therefore handling of the undefined result, and rescheduling of the computation should be done by caller.

    Parameters

    • previous: ContentLines
    • current: ContentLines

    Returns DirtyDiff | undefined