120
121
public getDecorationsInRange(range: Range, ownerId?: number, filterOutValidation?: boolean, filterFontDecorations?: boolean, onlyMinimapDecorations?: boolean): IModelDecoration[] {
123
>
const endOffsetOfRange = this.textModel.getOffsetAt(range.getEndPosition());
124
>
const annotations = this._fontAnnotatedString.getAnnotationsIntersecting(new OffsetRange(startOffsetOfRange, endOffsetOfRange));
125
>
126
>
const decorations: IModelDecoration[] = [];
127
>
for (const annotation of annotations) {
128
const anno = annotation.annotation;
129
const affectsFont = !!(anno.fontToken.fontFamily || anno.fontToken.fontSizeMultiplier);