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