@@ -10,7 +10,7 @@ export class TableFinder {
1010 private readonly _tableValidator : TableValidator
1111 ) { }
1212
13- public getNextRange ( document : Document , startLine : number ) : Range {
13+ public getNextRange ( document : Document , startLine : number ) : Range | null {
1414 // look for the separator row, assume table starts 1 row before & ends when invalid
1515 let rowIndex = startLine ;
1616 let isInIgnoreBlock = false ;
@@ -24,7 +24,7 @@ export class TableFinder {
2424
2525 if ( ! isInIgnoreBlock ) {
2626 const isValidSeparatorRow = this . _tableValidator . lineIsValidSeparator ( document . lines [ rowIndex ] . value ) ;
27- const nextRangeResult : { range : Range , ignoreBlockStarted : boolean } = isValidSeparatorRow
27+ const nextRangeResult : { range : Range | null , ignoreBlockStarted : boolean } = isValidSeparatorRow
2828 ? this . getNextValidTableRange ( document , rowIndex )
2929 : { range : null , ignoreBlockStarted : isInIgnoreBlock } ;
3030
@@ -40,7 +40,7 @@ export class TableFinder {
4040 return null ;
4141 }
4242
43- private getNextValidTableRange ( document : Document , separatorRowIndex : number ) : { range : Range , ignoreBlockStarted : boolean } {
43+ private getNextValidTableRange ( document : Document , separatorRowIndex : number ) : { range : Range | null , ignoreBlockStarted : boolean } {
4444 let firstTableFileRow = separatorRowIndex - 1 ;
4545 let lastTableFileRow = separatorRowIndex ;
4646 let selection = null ;
0 commit comments