INNER CODE UNIT · TypeScript
start_pos
bioSyntax/bioSyntax · vscode/src/extension.ts:180
let start_pos = activeEditor.document.positionAt(index+offset+sub_offset);
let end_pos = activeEditor.document.positionAt(index+offset+sub_offset+1);
let decoration = {range: new vscode.Range(start_pos, end_pos)};
updateDecorationArrays(key, decoration);
}
}else{
break;
}
tmp_probe += 1;
}
}
offset += (line.length+1);
}
} else {
return;
}
activeEditor.setDecorations(style.ntADecorationType, ntAs);
activeEditor.setDecorations(style.ntTDecorationType, ntTs);