import * as vscode from 'vscode' ; function editorScroll ( to , by ) { vscode . commands . executeCommand ( 'editorScroll' , { to : to , by : by , } ) ; } export function scrollDownHalfPage ( ) { editorScroll ( 'down' , 'halfPage' ) ; } export function scrollUpHalfPage ( ) { editorScroll ( 'up' , 'halfPage' ) ; } export function scrollDownPage ( ) { editorScroll ( 'down' , 'page' ) ; } export function scrollUpPage ( ) { editorScroll ( 'up' , 'page' ) ; }