MCPcopy
hub / github.com/VSCodeVim/Vim / getCurrentMatchRange

Method getCurrentMatchRange

src/cmd_line/commandLine.ts:448–455  ·  view source on GitHub ↗

* @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)

Source from the content-addressed store, hash-verified

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(

Callers 4

getDecorationsMethod · 0.95
advanceCurrentMatchMethod · 0.95
runMethod · 0.80
updateViewMethod · 0.80

Calls 2

Tested by

no test coverage detected