Add scrolling into view to insertAtCursor syscall
parent
9ccfe13818
commit
12d5f0beba
|
@ -272,8 +272,11 @@ export function moveCursorToLine(
|
||||||
* Insert text at the cursor position in the editor
|
* Insert text at the cursor position in the editor
|
||||||
* @param text the text to insert
|
* @param text the text to insert
|
||||||
*/
|
*/
|
||||||
export function insertAtCursor(text: string): Promise<void> {
|
export function insertAtCursor(
|
||||||
return syscall("editor.insertAtCursor", text);
|
text: string,
|
||||||
|
scrollIntoView = false,
|
||||||
|
): Promise<void> {
|
||||||
|
return syscall("editor.insertAtCursor", text, scrollIntoView);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue