(chunks: RMarkdownChunk[] = _getChunks(),
line: number = _getStartLine())
| 259 | } |
| 260 | |
| 261 | export async function runNextChunk(chunks: RMarkdownChunk[] = _getChunks(), |
| 262 | line: number = _getStartLine()): Promise<void> { |
| 263 | const currentChunk = getCurrentChunk(chunks, line); |
| 264 | const nextChunk = getNextChunk(chunks, line); |
| 265 | |
| 266 | // Case: currentChunk is not the last chunk, so run nextChunk |
| 267 | if (nextChunk && nextChunk !== currentChunk) { |
| 268 | await runChunksInTerm([nextChunk.codeRange]); |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | export async function runAboveChunks(chunks: RMarkdownChunk[] = _getChunks(), |
| 273 | line: number = _getStartLine()): Promise<void> { |
nothing calls this directly
no test coverage detected