(vimState: VimState, offset: number)
| 20 | } |
| 21 | |
| 22 | export function scrollView(vimState: VimState, offset: number) { |
| 23 | if (offset !== 0) { |
| 24 | vimState.postponedCodeViewChanges.push({ |
| 25 | command: 'editorScroll', |
| 26 | args: { |
| 27 | to: offset > 0 ? 'up' : 'down', |
| 28 | by: 'line', |
| 29 | value: Math.abs(offset), |
| 30 | revealCursor: false, |
| 31 | select: false, |
| 32 | }, |
| 33 | }); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | export function assertDefined<X>(x: X | undefined, err: string): asserts x { |
| 38 | if (x === undefined) { |
no outgoing calls
no test coverage detected