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

Function isWithinChunk

src/rmarkdown/chunks.ts:222–224  ·  view source on GitHub ↗
(chunk: RMarkdownChunk, line: number = _getStartLine())

Source from the content-addressed store, hash-verified

220 return textEditor.selection.start.line;
221}
222export function isWithinChunk(chunk: RMarkdownChunk, line: number = _getStartLine()): boolean {
223 return (line >= chunk.startLine && line <= chunk.endLine);
224}
225
226export async function runCurrentChunk(chunks: RMarkdownChunk[] = _getChunks(),
227 line: number = _getStartLine()): Promise<void> {

Callers 2

selectCurrentChunkFunction · 0.85

Calls 1

_getStartLineFunction · 0.85

Tested by

no test coverage detected