MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / runCurrentChunkAndMove

Function runCurrentChunkAndMove

src/rmarkdown/chunks.ts:234–244  ·  view source on GitHub ↗
(chunks: RMarkdownChunk[] = _getChunks(),
    line: number = _getStartLine())

Source from the content-addressed store, hash-verified

232}
233
234export async function runCurrentChunkAndMove(chunks: RMarkdownChunk[] = _getChunks(),
235 line: number = _getStartLine()): Promise<void> {
236 const currentChunk = getCurrentChunk(chunks, line);
237 if (currentChunk) {
238 await runChunksInTerm([currentChunk.codeRange]);
239 }
240 const nextChunk = getNextChunk(chunks, line);
241 if (nextChunk) {
242 void goToChunk(nextChunk);
243 }
244}
245
246export async function runPreviousChunk(chunks: RMarkdownChunk[] = _getChunks(),
247 line: number = _getStartLine()): Promise<void> {

Callers

nothing calls this directly

Calls 6

runChunksInTermFunction · 0.90
_getChunksFunction · 0.85
_getStartLineFunction · 0.85
getCurrentChunkFunction · 0.85
getNextChunkFunction · 0.85
goToChunkFunction · 0.85

Tested by

no test coverage detected