INNER CODE UNIT · TypeScript
start_pos
bioSyntax/bioSyntax · vscode/src/extension.ts:139
let start_pos = activeEditor.document.positionAt(index+offset);
let end_pos = activeEditor.document.positionAt(index+offset+1);
let decoration = {range: new vscode.Range(start_pos, end_pos)};
updateDecorationArrays(key, decoration);
}
}
offset += (line.length+1);
}
} else if (lang === "fastq") {
let lines = text.split("\n");
let offset: number = 0;
let nu: number = 0;
for (let line_n in lines) {
let line = lines[line_n];
if (nu%4===1) {
for (let index = 0; index < line.length; index++) {
let key = line[index].toUpperCase();
let start_pos = activeEditor.document.positionAt(index+offset);