(chunk: RMarkdownChunk)
| 355 | } |
| 356 | |
| 357 | async function goToChunk(chunk: RMarkdownChunk) { |
| 358 | // Move cursor 1 line below 'chunk start line' |
| 359 | const line = chunk.startLine + 1; |
| 360 | const editor = vscode.window.activeTextEditor; |
| 361 | if (!editor) { |
| 362 | return; |
| 363 | } |
| 364 | editor.selection = new vscode.Selection(line, 0, line, 0); |
| 365 | await vscode.commands.executeCommand('revealLine', { lineNumber: line, at: 'center' }); |
| 366 | } |
| 367 | |
| 368 | export function goToPreviousChunk(chunks: RMarkdownChunk[] = _getChunks(), |
| 369 | line: number = _getStartLine()): void { |
no outgoing calls
no test coverage detected