monaco-editor-core
Version:
A browser based code editor
28 lines (27 loc) • 1.04 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export class LinesDiff {
constructor(changes,
/**
* Sorted by original line ranges.
* The original line ranges and the modified line ranges must be disjoint (but can be touching).
*/
moves,
/**
* Indicates if the time out was reached.
* In that case, the diffs might be an approximation and the user should be asked to rerun the diff with more time.
*/
hitTimeout) {
this.changes = changes;
this.moves = moves;
this.hitTimeout = hitTimeout;
}
}
export class MovedText {
constructor(lineRangeMapping, changes) {
this.lineRangeMapping = lineRangeMapping;
this.changes = changes;
}
}