()
| 213 | return getChunks(textEditor.document); |
| 214 | } |
| 215 | function _getStartLine(): number { |
| 216 | const textEditor = vscode.window.activeTextEditor; |
| 217 | if (!textEditor) { |
| 218 | return 0; |
| 219 | } |
| 220 | return textEditor.selection.start.line; |
| 221 | } |
| 222 | export function isWithinChunk(chunk: RMarkdownChunk, line: number = _getStartLine()): boolean { |
| 223 | return (line >= chunk.startLine && line <= chunk.endLine); |
| 224 | } |
no outgoing calls
no test coverage detected