INNER CODE UNIT · TypeScript

start_pos

bioSyntax/bioSyntax · vscode/src/extension.ts:121

                            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) {
                let line = lines[line_n];
                if (!line.startsWith(">")) {
                    for (let index = 0; index < line.length; index++) {
                        let key = line[index].toUpperCase();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…