diff --git a/plug-api/syscalls/editor.ts b/plug-api/syscalls/editor.ts index 57ead963..57245611 100644 --- a/plug-api/syscalls/editor.ts +++ b/plug-api/syscalls/editor.ts @@ -272,8 +272,11 @@ export function moveCursorToLine( * Insert text at the cursor position in the editor * @param text the text to insert */ -export function insertAtCursor(text: string): Promise { - return syscall("editor.insertAtCursor", text); +export function insertAtCursor( + text: string, + scrollIntoView = false, +): Promise { + return syscall("editor.insertAtCursor", text, scrollIntoView); } /**