* @returns The current match range and its rank in the document's matches * * NOTE: This method does not take the search offset into account
(vimState: VimState)
| 446 | * NOTE: This method does not take the search offset into account |
| 447 | */ |
| 448 | public getCurrentMatchRange(vimState: VimState): IndexedRange | undefined { |
| 449 | return this.searchState.getNextSearchMatchRange( |
| 450 | vimState, |
| 451 | vimState.cursorStopPosition, |
| 452 | SearchDirection.Forward, |
| 453 | this.getCurrentMatchRelativeIndex(vimState), |
| 454 | ); |
| 455 | } |
| 456 | |
| 457 | public getDecorations(vimState: VimState): SearchDecorations | undefined { |
| 458 | return getDecorationsForSearchMatchRanges( |
no test coverage detected