55
*/
56
public setAnnotations(annotations: AnnotationsUpdate<T>): void {
57
>
for (const annotation of annotations.annotations) {
annotations.ts
58
>
const startIndex = this._getStartIndexOfIntersectingAnnotation(annotation.range.start);
59
>
const endIndexExclusive = this._getEndIndexOfIntersectingAnnotation(annotation.range.endExclusive);
60
>
if (annotation.annotation !== undefined) {
61
this._annotations.splice(startIndex, endIndexExclusive - startIndex, { range: annotation.range, annotation: annotation.annotation });
63
this._annotations.splice(startIndex, endIndexExclusive - startIndex);
64
}
66
>
}
67
68
/**