84
85
public translateToInputOffset(outputLineIndex: number, outputOffset: number): number {
87
>
outputOffset = Math.max(0, outputOffset - this.wrappedTextIndentLength);
88
>
}
89
>
90
>
const offsetInInputWithInjection = outputLineIndex === 0 ? outputOffset : this.breakOffsets[outputLineIndex - 1] + outputOffset;
91
>
let offsetInInput = offsetInInputWithInjection;
92
>
93
>
if (this.injectionOffsets !== null) {
94
>
for (let i = 0; i < this.injectionOffsets.length; i++) {
95
if (offsetInInput > this.injectionOffsets[i]) {
96
if (offsetInInput < this.injectionOffsets[i] + this.injectionOptions![i].content.length) {