244
const options = injectionOptions![currentInjectedOffset];
245
if (options.inlineClassName) {
246
>
const wrappedTextIndentLength = this.context.getWrappedTextIndentLength(modelLineNumber);
inlineDecorations.ts
247
>
const offset = (outputLineIndex > 0 ? wrappedTextIndentLength : 0);
248
>
const start = offset + Math.max(injectedTextStartOffsetInInputWithInjections - lineStartOffsetInInputWithInjections, 0);
249
>
const end = offset + Math.min(injectedTextEndOffsetInInputWithInjections - lineStartOffsetInInputWithInjections, lineEndOffsetInInputWithInjections - lineStartOffsetInInputWithInjections);
250
>
if (start !== end) {
251
>
const viewLineNumber = this.context.getBaseViewLineNumber(modelLineNumber) + outputLineIndex;
252
>
const range = new Range(viewLineNumber, start + 1, viewLineNumber, end + 1);
253
>
const type: InlineDecorationType = options.inlineClassNameAffectsLetterSpacing ? InlineDecorationType.RegularAffectingLetterSpacing : InlineDecorationType.Regular;
254
>
inlineDecorations.push(new InlineDecoration(range, options.inlineClassName, type));
255
>
}
256
>
}
257
}
258
if (injectedTextEndOffsetInInputWithInjections <= lineEndOffsetInInputWithInjections) {