INNER CODE UNIT · TypeScript
lastLine
yoav-lavi/melody · playground/src/editors/index.ts:57
const lastLine = lines[lines.length - 1];
const column = lastLine.length + 1;
melodyEditor.setPosition({ lineNumber, column });
melodyEditor.focus();
melodyEditor.revealLineInCenter(lineNumber);
const regexEditor = editor.create(regexEditorTarget, {
value: '',
readOnly: true,
...DEFAULT_EDITOR_SETTINGS,
});
await init();
const syncEditors = () => {
try {
window.currentEditorContent = melodyEditor.getValue();