lineOffsetToPosition(line, offset, allowEdits) {
    if (!this.useScriptVersionCacheIfValidOrOpen()) {
      return computePositionOfLineAndCharacter(this.getLineMap(), line - 1, offset - 1, this.text, allowEdits);
    }
    return this.svc.lineOffsetToPosition(line, offset);
  }
@param line 1 based index
@param offset 1 based index