(chunks: RMarkdownChunk[] = _getChunks())
| 339 | } |
| 340 | |
| 341 | export async function runAllChunks(chunks: RMarkdownChunk[] = _getChunks()): Promise<void> { |
| 342 | |
| 343 | const firstChunkId = 1; |
| 344 | const lastChunkId = chunks.length; |
| 345 | |
| 346 | const codeRanges: vscode.Range[] = []; |
| 347 | |
| 348 | for (let i = firstChunkId; i <= lastChunkId; i++) { |
| 349 | const chunk = chunks.find(e => e.id === i); |
| 350 | if (chunk?.eval) { |
| 351 | codeRanges.push(chunk.codeRange); |
| 352 | } |
| 353 | } |
| 354 | await runChunksInTerm(codeRanges); |
| 355 | } |
| 356 | |
| 357 | async function goToChunk(chunk: RMarkdownChunk) { |
| 358 | // Move cursor 1 line below 'chunk start line' |
nothing calls this directly
no test coverage detected