@@ -6,22 +6,22 @@ const targetLineIsEmptyOrWhitespace = (
66) => ! document . lineAt ( line ) . isEmptyOrWhitespace ;
77
88enum LineOperation {
9- Up = 1 ,
10- Down = 2 ,
9+ up = 1 ,
10+ down = 2 ,
1111}
1212
1313function getNextLine ( editor : vscode . TextEditor , op : LineOperation ) {
1414 let document = editor . document ;
1515 let line = editor . selection . active . line ;
1616
1717 switch ( op ) {
18- case LineOperation . Up :
18+ case LineOperation . up :
1919 {
2020 while ( line > 0 && targetLineIsEmptyOrWhitespace ( -- line , document ) ) { }
2121 }
2222 break ;
2323
24- case LineOperation . Down :
24+ case LineOperation . down :
2525 {
2626 while (
2727 line < document . lineCount - 1 &&
@@ -44,7 +44,7 @@ export function activate(context: vscode.ExtensionContext) {
4444 let paragraphJumpUp = vscode . commands . registerTextEditorCommand (
4545 "paragraphjump.up" ,
4646 ( editor : vscode . TextEditor ) => {
47- let targetLine : vscode . TextLine = getNextLine ( editor , LineOperation . Up ) ;
47+ let targetLine : vscode . TextLine = getNextLine ( editor , LineOperation . up ) ;
4848 const newPosition = new vscode . Position ( targetLine . lineNumber , 0 ) ;
4949 moveCursor ( editor , newPosition ) ;
5050 }
@@ -53,7 +53,7 @@ export function activate(context: vscode.ExtensionContext) {
5353 let paragraphJumpDown = vscode . commands . registerTextEditorCommand (
5454 "paragraphjump.down" ,
5555 ( editor : vscode . TextEditor ) => {
56- let targetLine : vscode . TextLine = getNextLine ( editor , LineOperation . Down ) ;
56+ let targetLine : vscode . TextLine = getNextLine ( editor , LineOperation . down ) ;
5757 const newPosition = new vscode . Position ( targetLine . lineNumber , 0 ) ;
5858 moveCursor ( editor , newPosition ) ;
5959 }
0 commit comments