MCPcopy Index your code
hub / github.com/VSCodeVim/Vim / getCurrentMatchPosition

Method getCurrentMatchPosition

src/cmd_line/commandLine.ts:434–441  ·  view source on GitHub ↗

* @returns The start of the current match range (after applying the search offset) and its rank in the document's matches

(vimState: VimState)

Source from the content-addressed store, hash-verified

432 * @returns The start of the current match range (after applying the search offset) and its rank in the document's matches
433 */
434 public getCurrentMatchPosition(vimState: VimState): IndexedPosition | undefined {
435 return this.searchState.getNextSearchMatchPosition(
436 vimState,
437 vimState.cursorStopPosition,
438 SearchDirection.Forward,
439 this.getCurrentMatchRelativeIndex(vimState),
440 );
441 }
442
443 /**
444 * @returns The current match range and its rank in the document's matches

Callers 1

runMethod · 0.95

Tested by

no test coverage detected